diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/CHANGELOG.md b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/CHANGELOG.md index efbd8b646085..fd89fc7b11cd 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/CHANGELOG.md +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 4.0.0 (2023-05-22) +### Breaking Changes + +- `IdentityTypeSystemAssigned` from enum `IdentityType` has been removed + +### Features Added + +- New field `Network` in struct `ServerPropertiesForUpdate` + + ## 3.0.0 (2023-04-28) ### Breaking Changes diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/administrators_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/administrators_client_example_test.go deleted file mode 100644 index b10e5b87f471..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/administrators_client_example_test.go +++ /dev/null @@ -1,159 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/AdministratorAdd.json -func ExampleAdministratorsClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewAdministratorsClient().BeginCreate(ctx, "testrg", "testserver", "oooooooo-oooo-oooo-oooo-oooooooooooo", armpostgresqlflexibleservers.ActiveDirectoryAdministratorAdd{ - Properties: &armpostgresqlflexibleservers.AdministratorPropertiesForAdd{ - PrincipalName: to.Ptr("testuser1@microsoft.com"), - PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), - TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ActiveDirectoryAdministrator = armpostgresqlflexibleservers.ActiveDirectoryAdministrator{ - // Name: to.Ptr("testuser1@microsoft.com"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo"), - // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ - // ObjectID: to.Ptr("oooooooo-oooo-oooo-oooo-oooooooooooo"), - // PrincipalName: to.Ptr("testuser1@microsoft.com"), - // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/AdministratorDelete.json -func ExampleAdministratorsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewAdministratorsClient().BeginDelete(ctx, "testrg", "testserver", "oooooooo-oooo-oooo-oooo-oooooooooooo", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/AdministratorGet.json -func ExampleAdministratorsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewAdministratorsClient().Get(ctx, "testrg", "pgtestsvc1", "oooooooo-oooo-oooo-oooo-oooooooooooo", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ActiveDirectoryAdministrator = armpostgresqlflexibleservers.ActiveDirectoryAdministrator{ - // Name: to.Ptr("testuser1@microsoft.com"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo"), - // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ - // ObjectID: to.Ptr("oooooooo-oooo-oooo-oooo-oooooooooooo"), - // PrincipalName: to.Ptr("testuer1@microsoft.com"), - // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), - // TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/AdministratorsListByServer.json -func ExampleAdministratorsClient_NewListByServerPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewAdministratorsClient().NewListByServerPager("testrg", "pgtestsvc1", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.AdministratorListResult = armpostgresqlflexibleservers.AdministratorListResult{ - // Value: []*armpostgresqlflexibleservers.ActiveDirectoryAdministrator{ - // { - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo"), - // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ - // ObjectID: to.Ptr("oooooooo-oooo-oooo-oooo-oooooooooooo"), - // PrincipalName: to.Ptr("testuer1@microsoft.com"), - // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), - // TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), - // }, - // }, - // { - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/gggggggg-gggg-gggg-gggg-gggggggggggg"), - // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ - // ObjectID: to.Ptr("gggggggg-gggg-gggg-gggg-gggggggggggg"), - // PrincipalName: to.Ptr("testgroup1@microsoft.com"), - // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeGroup), - // TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/autorest.md b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/autorest.md index 92e5e2c3ef16..7d4bec8917c8 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/autorest.md +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/autorest.md @@ -5,10 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/readme.go.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/postgresql/resource-manager/readme.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/postgresql/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 3.0.0 +module-version: 4.0.0 package-flexibleservers: true -tag: package-flexibleserver-2022-12-01 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/backups_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/backups_client_example_test.go deleted file mode 100644 index 259167aa6b14..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/backups_client_example_test.go +++ /dev/null @@ -1,186 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/BackupGet.json -func ExampleBackupsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewBackupsClient().Get(ctx, "TestGroup", "postgresqltestserver", "daily_20210615T160516", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ServerBackup = armpostgresqlflexibleservers.ServerBackup{ - // Name: to.Ptr("daily_20210615T160516"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210615T160516"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T16:05:19.902522+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/BackupListByServer.json -func ExampleBackupsClient_NewListByServerPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewBackupsClient().NewListByServerPager("TestGroup", "postgresqltestserver", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ServerBackupListResult = armpostgresqlflexibleservers.ServerBackupListResult{ - // Value: []*armpostgresqlflexibleservers.ServerBackup{ - // { - // Name: to.Ptr("daily_20210615T160516"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210615T160516"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T16:05:19.902522+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // }, - // { - // Name: to.Ptr("daily_20210616T160520"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210616T160520"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-16T16:05:23.9243453+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // }, - // { - // Name: to.Ptr("daily_20210617T160525"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210617T160525"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-17T16:05:28.1247488+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // }, - // { - // Name: to.Ptr("daily_20210618T160529"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210618T160529"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-18T16:05:32.2736701+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // }, - // { - // Name: to.Ptr("daily_20210619T160533"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210619T160533"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-19T16:05:36.8603354+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // }, - // { - // Name: to.Ptr("daily_20210620T160538"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210620T160538"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-20T16:05:41.9200138+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // }, - // { - // Name: to.Ptr("daily_20210621T160543"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210621T160543"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-21T16:05:48.8528447+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // }, - // { - // Name: to.Ptr("daily_20210622T160803"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210622T160803"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-22T16:08:06.3121688+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // }, - // { - // Name: to.Ptr("daily_20210622T210807"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210622T210807"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-22T21:08:10.5057354+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // }, - // { - // Name: to.Ptr("daily_20210623T212413"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210623T212413"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-23T21:24:16.9401531+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // }, - // { - // Name: to.Ptr("daily_20210624T061328"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210624T061328"), - // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ - // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), - // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-24T06:13:31.4962137+00:00"); return t}()), - // Source: to.Ptr("Automatic"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailability_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailability_client_example_test.go deleted file mode 100644 index 1973bfd79235..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailability_client_example_test.go +++ /dev/null @@ -1,48 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/CheckNameAvailability.json -func ExampleCheckNameAvailabilityClient_Execute() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCheckNameAvailabilityClient().Execute(ctx, armpostgresqlflexibleservers.CheckNameAvailabilityRequest{ - Name: to.Ptr("name1"), - Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.NameAvailability = armpostgresqlflexibleservers.NameAvailability{ - // Message: to.Ptr(""), - // NameAvailable: to.Ptr(true), - // Name: to.Ptr("name1"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailabilitywithlocation_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailabilitywithlocation_client_example_test.go deleted file mode 100644 index 9df7ef73a914..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailabilitywithlocation_client_example_test.go +++ /dev/null @@ -1,48 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/CheckNameAvailabilityLocationBased.json -func ExampleCheckNameAvailabilityWithLocationClient_Execute() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCheckNameAvailabilityWithLocationClient().Execute(ctx, "westus", armpostgresqlflexibleservers.CheckNameAvailabilityRequest{ - Name: to.Ptr("name1"), - Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.NameAvailability = armpostgresqlflexibleservers.NameAvailability{ - // Message: to.Ptr(""), - // NameAvailable: to.Ptr(true), - // Name: to.Ptr("name1"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/configurations_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/configurations_client_example_test.go deleted file mode 100644 index 008eb514c18e..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/configurations_client_example_test.go +++ /dev/null @@ -1,2007 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ConfigurationListByServer.json -func ExampleConfigurationsClient_NewListByServerPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewConfigurationsClient().NewListByServerPager("testrg", "testserver", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ConfigurationListResult = armpostgresqlflexibleservers.ConfigurationListResult{ - // Value: []*armpostgresqlflexibleservers.Configuration{ - // { - // Name: to.Ptr("application_name"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/application_name"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the application name to be reported in statistics and logs."), - // AllowedValues: to.Ptr("[A-Za-z0-9._-]*"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), - // DefaultValue: to.Ptr(""), - // Source: to.Ptr("system-default"), - // Value: to.Ptr(""), - // }, - // }, - // { - // Name: to.Ptr("array_nulls"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/array_nulls"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables input of NULL elements in arrays."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("autovacuum"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Starts the autovacuum subprocess."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("autovacuum_analyze_scale_factor"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_analyze_scale_factor"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Number of tuple inserts, updates, or deletes prior to analyze as a fraction of reltuples."), - // AllowedValues: to.Ptr("0-100"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("0.1"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0.1"), - // }, - // }, - // { - // Name: to.Ptr("autovacuum_analyze_threshold"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_analyze_threshold"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Minimum number of tuple inserts, updates, or deletes prior to analyze."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("50"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("50"), - // }, - // }, - // { - // Name: to.Ptr("autovacuum_naptime"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_naptime"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Time to sleep between autovacuum runs."), - // AllowedValues: to.Ptr("1-2147483"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("60"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("60"), - // }, - // }, - // { - // Name: to.Ptr("autovacuum_vacuum_cost_delay"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_cost_delay"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Vacuum cost delay in milliseconds, for autovacuum."), - // AllowedValues: to.Ptr("-1-100"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("2"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("2"), - // }, - // }, - // { - // Name: to.Ptr("autovacuum_vacuum_cost_limit"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_cost_limit"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Vacuum cost amount available before napping, for autovacuum."), - // AllowedValues: to.Ptr("-1-10000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("-1"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("-1"), - // }, - // }, - // { - // Name: to.Ptr("autovacuum_vacuum_scale_factor"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_scale_factor"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Number of tuple updates or deletes prior to vacuum as a fraction of reltuples."), - // AllowedValues: to.Ptr("0-100"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("0.2"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0.2"), - // }, - // }, - // { - // Name: to.Ptr("autovacuum_vacuum_threshold"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_threshold"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Minimum number of tuple updates or deletes prior to vacuum."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("50"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("50"), - // }, - // }, - // { - // Name: to.Ptr("autovacuum_work_mem"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_work_mem"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum memory to be used by each autovacuum worker process."), - // AllowedValues: to.Ptr("-1-2097151"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("-1"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("-1"), - // }, - // }, - // { - // Name: to.Ptr("backend_flush_after"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/backend_flush_after"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Number of pages after which previously performed writes are flushed to disk."), - // AllowedValues: to.Ptr("0-256"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("0"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0"), - // }, - // }, - // { - // Name: to.Ptr("backslash_quote"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/backslash_quote"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets whether \"\\'\" is allowed in string literals."), - // AllowedValues: to.Ptr("safe_encoding,on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("safe_encoding"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("safe_encoding"), - // }, - // }, - // { - // Name: to.Ptr("bgwriter_delay"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_delay"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Background writer sleep time between rounds."), - // AllowedValues: to.Ptr("10-10000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("200"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("200"), - // }, - // }, - // { - // Name: to.Ptr("bgwriter_flush_after"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_flush_after"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Number of pages after which previously performed writes are flushed to disk."), - // AllowedValues: to.Ptr("0-256"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("64"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("64"), - // }, - // }, - // { - // Name: to.Ptr("bgwriter_lru_maxpages"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_lru_maxpages"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Background writer maximum number of LRU pages to flush per round."), - // AllowedValues: to.Ptr("0-1073741823"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("100"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("100"), - // }, - // }, - // { - // Name: to.Ptr("bgwriter_lru_multiplier"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_lru_multiplier"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Multiple of the average buffer usage to free per round."), - // AllowedValues: to.Ptr("0-10"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("2"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("2"), - // }, - // }, - // { - // Name: to.Ptr("bytea_output"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bytea_output"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the output format for bytea."), - // AllowedValues: to.Ptr("escape,hex"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("hex"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("hex"), - // }, - // }, - // { - // Name: to.Ptr("check_function_bodies"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/check_function_bodies"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Checks function bodies during CREATE FUNCTION."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("checkpoint_completion_target"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_completion_target"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval."), - // AllowedValues: to.Ptr("0-1"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("0.5"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0.5"), - // }, - // }, - // { - // Name: to.Ptr("checkpoint_timeout"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_timeout"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum time between automatic WAL checkpoints."), - // AllowedValues: to.Ptr("30-86400"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("300"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("300"), - // }, - // }, - // { - // Name: to.Ptr("checkpoint_warning"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_warning"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables warnings if checkpoint segments are filled more frequently than this."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("30"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("30"), - // }, - // }, - // { - // Name: to.Ptr("client_encoding"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/client_encoding"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the client's character set encoding."), - // AllowedValues: to.Ptr("BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("sql_ascii"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("sql_ascii"), - // }, - // }, - // { - // Name: to.Ptr("client_min_messages"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/client_min_messages"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the message levels that are sent to the client."), - // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,log,notice,warning,error"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("notice"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("notice"), - // }, - // }, - // { - // Name: to.Ptr("commit_delay"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/commit_delay"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the delay in microseconds between transaction commit and flushing WAL to disk."), - // AllowedValues: to.Ptr("0-100000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("0"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0"), - // }, - // }, - // { - // Name: to.Ptr("commit_siblings"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/commit_siblings"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the minimum concurrent open transactions before performing commit_delay."), - // AllowedValues: to.Ptr("0-1000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("5"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("5"), - // }, - // }, - // { - // Name: to.Ptr("constraint_exclusion"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/constraint_exclusion"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner to use constraints to optimize queries."), - // AllowedValues: to.Ptr("partition,on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("partition"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("partition"), - // }, - // }, - // { - // Name: to.Ptr("cpu_index_tuple_cost"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_index_tuple_cost"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the planner's estimate of the cost of processing each index entry during an index scan."), - // AllowedValues: to.Ptr("0-1.79769e+308"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("0.005"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0.005"), - // }, - // }, - // { - // Name: to.Ptr("cpu_operator_cost"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_operator_cost"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the planner's estimate of the cost of processing each operator or function call."), - // AllowedValues: to.Ptr("0-1.79769e+308"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("0.0025"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0.0025"), - // }, - // }, - // { - // Name: to.Ptr("cpu_tuple_cost"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_tuple_cost"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the planner's estimate of the cost of processing each tuple (row)."), - // AllowedValues: to.Ptr("0-1.79769e+308"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("0.01"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0.01"), - // }, - // }, - // { - // Name: to.Ptr("cursor_tuple_fraction"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cursor_tuple_fraction"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the planner's estimate of the fraction of a cursor's rows that will be retrieved."), - // AllowedValues: to.Ptr("0-1"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("0.1"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0.1"), - // }, - // }, - // { - // Name: to.Ptr("DateStyle"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/DateStyle"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the display format for date and time values."), - // AllowedValues: to.Ptr("(ISO|POSTGRES|SQL|GERMAN)(, (DMY|MDY|YMD))?"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), - // DefaultValue: to.Ptr("ISO, MDY"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("ISO, MDY"), - // }, - // }, - // { - // Name: to.Ptr("deadlock_timeout"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/deadlock_timeout"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock."), - // AllowedValues: to.Ptr("1-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("1000"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("1000"), - // }, - // }, - // { - // Name: to.Ptr("debug_pretty_print"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_pretty_print"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Indents parse and plan tree displays."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("debug_print_parse"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_parse"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Logs each query's parse tree."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("debug_print_plan"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_plan"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Logs each query's execution plan."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("debug_print_rewritten"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_rewritten"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Logs each query's rewritten parse tree."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("default_statistics_target"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_statistics_target"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the default statistics target."), - // AllowedValues: to.Ptr("1-10000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("100"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("100"), - // }, - // }, - // { - // Name: to.Ptr("default_tablespace"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_tablespace"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the default tablespace to create tables and indexes in."), - // AllowedValues: to.Ptr("[A-Za-z._]*"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), - // DefaultValue: to.Ptr(""), - // Source: to.Ptr("system-default"), - // Value: to.Ptr(""), - // }, - // }, - // { - // Name: to.Ptr("default_text_search_config"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_text_search_config"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets default text search configuration."), - // AllowedValues: to.Ptr("[A-Za-z._]+"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), - // DefaultValue: to.Ptr("pg_catalog.english"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("pg_catalog.english"), - // }, - // }, - // { - // Name: to.Ptr("default_transaction_deferrable"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_deferrable"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the default deferrable status of new transactions."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("default_transaction_isolation"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_isolation"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the transaction isolation level of each new transaction."), - // AllowedValues: to.Ptr("serializable,repeatable read,read committed,read uncommitted"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("read committed"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("read committed"), - // }, - // }, - // { - // Name: to.Ptr("default_transaction_read_only"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_read_only"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the default read-only status of new transactions."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("default_with_oids"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_with_oids"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Creates new tables with OIDs by default."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("effective_cache_size"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/effective_cache_size"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the planner's assumption about the size of the disk cache."), - // AllowedValues: to.Ptr("1-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("3145728"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("3145728"), - // }, - // }, - // { - // Name: to.Ptr("enable_bitmapscan"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_bitmapscan"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of bitmap-scan plans."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("enable_gathermerge"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_gathermerge"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of gather merge plans."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("enable_hashagg"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_hashagg"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of hashed aggregation plans."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("enable_hashjoin"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_hashjoin"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of hash join plans."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("enable_indexonlyscan"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_indexonlyscan"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of index-only-scan plans."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("enable_indexscan"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_indexscan"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of index-scan plans."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("enable_material"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_material"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of materialization."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("enable_mergejoin"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_mergejoin"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of merge join plans."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("enable_nestloop"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_nestloop"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of nested loop join plans."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("enable_seqscan"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_seqscan"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of sequential-scan plans."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("enable_sort"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_sort"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of explicit sort steps."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("enable_tidscan"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_tidscan"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables the planner's use of TID scan plans."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("escape_string_warning"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/escape_string_warning"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Warns about backslash escapes in ordinary string literals."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("exit_on_error"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/exit_on_error"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Terminates session on any error."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("extra_float_digits"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/extra_float_digits"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the number of digits displayed for floating-point values."), - // AllowedValues: to.Ptr("-15-3"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("1"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("1"), - // }, - // }, - // { - // Name: to.Ptr("force_parallel_mode"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/force_parallel_mode"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Forces use of parallel query facilities."), - // AllowedValues: to.Ptr("off,on,regress"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("from_collapse_limit"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/from_collapse_limit"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the FROM-list size beyond which subqueries are not collapsed."), - // AllowedValues: to.Ptr("1-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("8"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("8"), - // }, - // }, - // { - // Name: to.Ptr("geqo"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables genetic query optimization."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("geqo_effort"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_effort"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("GEQO: effort is used to set the default for other GEQO parameters."), - // AllowedValues: to.Ptr("1-10"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("5"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("5"), - // }, - // }, - // { - // Name: to.Ptr("geqo_generations"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_generations"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("GEQO: number of iterations of the algorithm."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("0"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0"), - // }, - // }, - // { - // Name: to.Ptr("geqo_pool_size"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_pool_size"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("GEQO: number of individuals in the population."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("0"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0"), - // }, - // }, - // { - // Name: to.Ptr("geqo_seed"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_seed"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("GEQO: seed for random path selection."), - // AllowedValues: to.Ptr("0-1"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("0"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0"), - // }, - // }, - // { - // Name: to.Ptr("geqo_selection_bias"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_selection_bias"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("GEQO: selective pressure within the population."), - // AllowedValues: to.Ptr("1.5-2"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("2"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("2"), - // }, - // }, - // { - // Name: to.Ptr("geqo_threshold"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_threshold"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the threshold of FROM items beyond which GEQO is used."), - // AllowedValues: to.Ptr("2-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("12"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("12"), - // }, - // }, - // { - // Name: to.Ptr("gin_fuzzy_search_limit"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/gin_fuzzy_search_limit"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum allowed result for exact search by GIN."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("0"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0"), - // }, - // }, - // { - // Name: to.Ptr("gin_pending_list_limit"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/gin_pending_list_limit"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum size of the pending list for GIN index."), - // AllowedValues: to.Ptr("64-2097151"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("4096"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("4096"), - // }, - // }, - // { - // Name: to.Ptr("idle_in_transaction_session_timeout"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/idle_in_transaction_session_timeout"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum allowed duration of any idling transaction."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("0"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0"), - // }, - // }, - // { - // Name: to.Ptr("IntervalStyle"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/IntervalStyle"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the display format for interval values."), - // AllowedValues: to.Ptr("postgres,postgres_verbose,sql_standard,iso_8601"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("postgres"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("postgres"), - // }, - // }, - // { - // Name: to.Ptr("join_collapse_limit"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/join_collapse_limit"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the FROM-list size beyond which JOIN constructs are not flattened."), - // AllowedValues: to.Ptr("1-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("8"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("8"), - // }, - // }, - // { - // Name: to.Ptr("lc_monetary"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_monetary"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the locale for formatting monetary amounts."), - // AllowedValues: to.Ptr("[A-Za-z0-9._ -]+"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), - // DefaultValue: to.Ptr("en_US.utf-8"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("en_US.utf-8"), - // }, - // }, - // { - // Name: to.Ptr("lc_numeric"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_numeric"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the locale for formatting numbers."), - // AllowedValues: to.Ptr("[A-Za-z0-9._ -]+"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), - // DefaultValue: to.Ptr("en_US.utf-8"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("en_US.utf-8"), - // }, - // }, - // { - // Name: to.Ptr("lo_compat_privileges"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lo_compat_privileges"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables backward compatibility mode for privilege checks on large objects."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("lock_timeout"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lock_timeout"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum allowed duration (in milliseconds) of any wait for a lock. 0 turns this off."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("0"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0"), - // }, - // }, - // { - // Name: to.Ptr("log_autovacuum_min_duration"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_autovacuum_min_duration"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the minimum execution time above which autovacuum actions will be logged."), - // AllowedValues: to.Ptr("-1-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("-1"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("-1"), - // }, - // }, - // { - // Name: to.Ptr("log_checkpoints"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_checkpoints"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Logs each checkpoint."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("log_connections"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_connections"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Logs each successful connection."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("log_destination"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_destination"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the destination for server log output."), - // AllowedValues: to.Ptr("stderr,csvlog"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("stderr"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("stderr"), - // }, - // }, - // { - // Name: to.Ptr("log_disconnections"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_disconnections"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Logs end of a session, including duration."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("log_duration"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_duration"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Logs the duration of each completed SQL statement."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("log_error_verbosity"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_error_verbosity"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the verbosity of logged messages."), - // AllowedValues: to.Ptr("terse,default,verbose"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("default"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("default"), - // }, - // }, - // { - // Name: to.Ptr("log_lock_waits"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_lock_waits"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Logs long lock waits."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("log_min_duration_statement"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_duration_statement"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the minimum execution time (in milliseconds) above which statements will be logged. -1 disables logging statement durations."), - // AllowedValues: to.Ptr("-1-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("-1"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("-1"), - // }, - // }, - // { - // Name: to.Ptr("log_min_error_statement"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_error_statement"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Causes all statements generating error at or above this level to be logged."), - // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("error"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("error"), - // }, - // }, - // { - // Name: to.Ptr("log_min_messages"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_messages"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the message levels that are logged."), - // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("warning"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("warning"), - // }, - // }, - // { - // Name: to.Ptr("log_replication_commands"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_replication_commands"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Logs each replication command."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("log_statement"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_statement"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the type of statements logged."), - // AllowedValues: to.Ptr("none,ddl,mod,all"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("none"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("none"), - // }, - // }, - // { - // Name: to.Ptr("log_statement_stats"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_statement_stats"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("For each query, writes cumulative performance statistics to the server log."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("log_temp_files"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_temp_files"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Logs the use of temporary files larger than this number of kilobytes."), - // AllowedValues: to.Ptr("-1-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("-1"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("-1"), - // }, - // }, - // { - // Name: to.Ptr("maintenance_work_mem"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/maintenance_work_mem"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum memory to be used for maintenance operations."), - // AllowedValues: to.Ptr("1024-2097151"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("332800"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("332800"), - // }, - // }, - // { - // Name: to.Ptr("max_parallel_workers"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_parallel_workers"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum number of parallel workers than can be active at one time."), - // AllowedValues: to.Ptr("0-1024"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("8"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("8"), - // }, - // }, - // { - // Name: to.Ptr("max_parallel_workers_per_gather"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_parallel_workers_per_gather"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum number of parallel processes per executor node."), - // AllowedValues: to.Ptr("0-1024"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("2"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("2"), - // }, - // }, - // { - // Name: to.Ptr("max_pred_locks_per_page"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_pred_locks_per_page"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum number of predicate-locked tuples per page."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("2"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("2"), - // }, - // }, - // { - // Name: to.Ptr("max_pred_locks_per_relation"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_pred_locks_per_relation"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum number of predicate-locked pages and tuples per relation."), - // AllowedValues: to.Ptr("-2147483648-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("-2"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("-2"), - // }, - // }, - // { - // Name: to.Ptr("max_standby_archive_delay"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_standby_archive_delay"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum delay before canceling queries when a hot standby server is processing archived WAL data."), - // AllowedValues: to.Ptr("-1-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("30000"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("30000"), - // }, - // }, - // { - // Name: to.Ptr("max_standby_streaming_delay"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_standby_streaming_delay"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum delay before canceling queries when a hot standby server is processing streamed WAL data."), - // AllowedValues: to.Ptr("-1-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("30000"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("30000"), - // }, - // }, - // { - // Name: to.Ptr("max_sync_workers_per_subscription"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_sync_workers_per_subscription"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Maximum number of table synchronization workers per subscription."), - // AllowedValues: to.Ptr("0-262143"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("2"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("2"), - // }, - // }, - // { - // Name: to.Ptr("max_wal_size"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_wal_size"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the WAL size that triggers a checkpoint."), - // AllowedValues: to.Ptr("2-2097151"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("1024"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("1024"), - // }, - // }, - // { - // Name: to.Ptr("min_parallel_index_scan_size"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_parallel_index_scan_size"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the minimum amount of index data for a parallel scan."), - // AllowedValues: to.Ptr("0-715827882"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("64"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("64"), - // }, - // }, - // { - // Name: to.Ptr("min_parallel_table_scan_size"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_parallel_table_scan_size"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the minimum amount of table data for a parallel scan."), - // AllowedValues: to.Ptr("0-715827882"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("1024"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("1024"), - // }, - // }, - // { - // Name: to.Ptr("min_wal_size"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_wal_size"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the minimum size to shrink the WAL to."), - // AllowedValues: to.Ptr("2-2097151"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("80"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("80"), - // }, - // }, - // { - // Name: to.Ptr("operator_precedence_warning"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/operator_precedence_warning"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Emits a warning for constructs that changed meaning since PostgreSQL 9.4."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("parallel_setup_cost"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/parallel_setup_cost"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the planner's estimate of the cost of starting up worker processes for parallel query."), - // AllowedValues: to.Ptr("0-1.79769e+308"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("1000"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("1000"), - // }, - // }, - // { - // Name: to.Ptr("parallel_tuple_cost"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/parallel_tuple_cost"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the planner's estimate of the cost of passing each tuple (row) from worker to master backend."), - // AllowedValues: to.Ptr("0-1.79769e+308"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("0.1"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0.1"), - // }, - // }, - // { - // Name: to.Ptr("quote_all_identifiers"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/quote_all_identifiers"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("When generating SQL fragments, quotes all identifiers."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("random_page_cost"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/random_page_cost"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the planner's estimate of the cost of a nonsequentially fetched disk page."), - // AllowedValues: to.Ptr("0-1.79769e+308"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("4"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("4"), - // }, - // }, - // { - // Name: to.Ptr("row_security"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/row_security"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables row security."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("search_path"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/search_path"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the schema search order for names that are not schema-qualified."), - // AllowedValues: to.Ptr("[A-Za-z.\"$, ]+"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), - // DefaultValue: to.Ptr("\"$user\", public"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("\"$user\", public"), - // }, - // }, - // { - // Name: to.Ptr("seq_page_cost"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/seq_page_cost"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the planner's estimate of the cost of a sequentially fetched disk page."), - // AllowedValues: to.Ptr("0-1.79769e+308"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), - // DefaultValue: to.Ptr("1"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("1"), - // }, - // }, - // { - // Name: to.Ptr("session_replication_role"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/session_replication_role"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the session's behavior for triggers and rewrite rules."), - // AllowedValues: to.Ptr("origin,replica,local"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("origin"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("origin"), - // }, - // }, - // { - // Name: to.Ptr("standard_conforming_strings"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/standard_conforming_strings"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Causes '...' strings to treat backslashes literally."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("statement_timeout"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/statement_timeout"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum allowed duration (in milliseconds) of any statement. 0 turns this off."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("0"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0"), - // }, - // }, - // { - // Name: to.Ptr("synchronize_seqscans"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/synchronize_seqscans"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enables synchronized sequential scans."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("synchronous_commit"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/synchronous_commit"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the current transaction's synchronization level."), - // AllowedValues: to.Ptr("local,remote_write,on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("tcp_keepalives_count"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_count"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Maximum number of TCP keepalive retransmits."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("9"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("9"), - // }, - // }, - // { - // Name: to.Ptr("tcp_keepalives_idle"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_idle"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Time between issuing TCP keepalives."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("120"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("120"), - // }, - // }, - // { - // Name: to.Ptr("tcp_keepalives_interval"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_interval"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Time between TCP keepalive retransmits."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("30"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("30"), - // }, - // }, - // { - // Name: to.Ptr("temp_buffers"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/temp_buffers"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum number of temporary buffers used by each database session."), - // AllowedValues: to.Ptr("100-1073741823"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("1024"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("1024"), - // }, - // }, - // { - // Name: to.Ptr("temp_tablespaces"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/temp_tablespaces"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the tablespace(s) to use for temporary tables and sort files."), - // AllowedValues: to.Ptr("[A-Za-z._]*"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), - // DefaultValue: to.Ptr(""), - // Source: to.Ptr("system-default"), - // Value: to.Ptr(""), - // }, - // }, - // { - // Name: to.Ptr("TimeZone"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/TimeZone"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the time zone for displaying and interpreting time stamps."), - // AllowedValues: to.Ptr("[A-Za-z0-9/+_-]+"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), - // DefaultValue: to.Ptr("UTC"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("UTC"), - // }, - // }, - // { - // Name: to.Ptr("track_activities"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_activities"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Collects information about executing commands."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("track_counts"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_counts"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Collects statistics on database activity."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // }, - // { - // Name: to.Ptr("track_functions"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_functions"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Collects function-level statistics on database activity."), - // AllowedValues: to.Ptr("none,pl,all"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("none"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("none"), - // }, - // }, - // { - // Name: to.Ptr("track_io_timing"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_io_timing"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Collects timing statistics for database I/O activity."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("transform_null_equals"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/transform_null_equals"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Treats \"expr=NULL\" as \"expr IS NULL\"."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("off"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("off"), - // }, - // }, - // { - // Name: to.Ptr("vacuum_cost_delay"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_delay"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Vacuum cost delay in milliseconds."), - // AllowedValues: to.Ptr("0-100"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("0"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0"), - // }, - // }, - // { - // Name: to.Ptr("vacuum_cost_limit"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_limit"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Vacuum cost amount available before napping."), - // AllowedValues: to.Ptr("1-10000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("200"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("200"), - // }, - // }, - // { - // Name: to.Ptr("vacuum_cost_page_dirty"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_dirty"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Vacuum cost for a page dirtied by vacuum."), - // AllowedValues: to.Ptr("0-10000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("20"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("20"), - // }, - // }, - // { - // Name: to.Ptr("vacuum_cost_page_hit"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_hit"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Vacuum cost for a page found in the buffer cache."), - // AllowedValues: to.Ptr("0-10000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("1"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("1"), - // }, - // }, - // { - // Name: to.Ptr("vacuum_cost_page_miss"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_miss"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Vacuum cost for a page not found in the buffer cache."), - // AllowedValues: to.Ptr("0-10000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("10"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("10"), - // }, - // }, - // { - // Name: to.Ptr("vacuum_defer_cleanup_age"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_defer_cleanup_age"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Number of transactions by which VACUUM and HOT cleanup should be deferred, if any."), - // AllowedValues: to.Ptr("0-1000000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("0"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("0"), - // }, - // }, - // { - // Name: to.Ptr("vacuum_freeze_min_age"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_freeze_min_age"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Minimum age at which VACUUM should freeze a table row."), - // AllowedValues: to.Ptr("0-1000000000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("50000000"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("50000000"), - // }, - // }, - // { - // Name: to.Ptr("vacuum_freeze_table_age"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_freeze_table_age"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Age at which VACUUM should scan whole table to freeze tuples."), - // AllowedValues: to.Ptr("0-2000000000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("150000000"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("150000000"), - // }, - // }, - // { - // Name: to.Ptr("vacuum_multixact_freeze_min_age"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_multixact_freeze_min_age"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Minimum age at which VACUUM should freeze a MultiXactId in a table row."), - // AllowedValues: to.Ptr("0-1000000000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("5000000"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("5000000"), - // }, - // }, - // { - // Name: to.Ptr("vacuum_multixact_freeze_table_age"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_multixact_freeze_table_age"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Multixact age at which VACUUM should scan whole table to freeze tuples."), - // AllowedValues: to.Ptr("0-2000000000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("150000000"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("150000000"), - // }, - // }, - // { - // Name: to.Ptr("wal_receiver_status_interval"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_receiver_status_interval"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the maximum interval between WAL receiver status reports to the primary."), - // AllowedValues: to.Ptr("0-2147483"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("10"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("10"), - // }, - // }, - // { - // Name: to.Ptr("wal_writer_delay"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_writer_delay"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Time between WAL flushes performed in the WAL writer."), - // AllowedValues: to.Ptr("1-10000"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("200"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("200"), - // }, - // }, - // { - // Name: to.Ptr("wal_writer_flush_after"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_writer_flush_after"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Amount of WAL written out by WAL writer that triggers a flush."), - // AllowedValues: to.Ptr("0-2147483647"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("128"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("128"), - // }, - // }, - // { - // Name: to.Ptr("work_mem"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/work_mem"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files."), - // AllowedValues: to.Ptr("4096-2097151"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), - // DefaultValue: to.Ptr("115712"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("115712"), - // }, - // }, - // { - // Name: to.Ptr("xmlbinary"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/xmlbinary"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets how binary values are to be encoded in XML."), - // AllowedValues: to.Ptr("base64,hex"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("base64"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("base64"), - // }, - // }, - // { - // Name: to.Ptr("xmloption"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/xmloption"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragments."), - // AllowedValues: to.Ptr("content,document"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("content"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("content"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ConfigurationGet.json -func ExampleConfigurationsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewConfigurationsClient().Get(ctx, "testrg", "testserver", "array_nulls", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Configuration = armpostgresqlflexibleservers.Configuration{ - // Name: to.Ptr("array_nulls"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/array_nulls"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Enable input of NULL elements in arrays."), - // AllowedValues: to.Ptr("on,off"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), - // DefaultValue: to.Ptr("on"), - // Source: to.Ptr("system-default"), - // Value: to.Ptr("on"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ConfigurationUpdate.json -func ExampleConfigurationsClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewConfigurationsClient().BeginUpdate(ctx, "testrg", "testserver", "event_scheduler", armpostgresqlflexibleservers.ConfigurationForUpdate{ - Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - Source: to.Ptr("user-override"), - Value: to.Ptr("on"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Configuration = armpostgresqlflexibleservers.Configuration{ - // Name: to.Ptr("event_scheduler"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/event_scheduler"), - // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ - // Description: to.Ptr("Indicates the status of the Event Scheduler."), - // AllowedValues: to.Ptr("ON,OFF,DISABLED"), - // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), - // DefaultValue: to.Ptr("OFF"), - // Source: to.Ptr("user-override"), - // Value: to.Ptr("ON"), - // }, - // } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/constants.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/constants.go index ca5375f8494a..6f6593722774 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/constants.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/constants.go @@ -11,7 +11,7 @@ package armpostgresqlflexibleservers const ( moduleName = "armpostgresqlflexibleservers" - moduleVersion = "v3.0.0" + moduleVersion = "v4.0.0" ) // ActiveDirectoryAuthEnum - If Enabled, Azure Active Directory authentication is enabled. @@ -200,16 +200,14 @@ func PossibleHighAvailabilityModeValues() []HighAvailabilityMode { type IdentityType string const ( - IdentityTypeNone IdentityType = "None" - IdentityTypeSystemAssigned IdentityType = "SystemAssigned" - IdentityTypeUserAssigned IdentityType = "UserAssigned" + IdentityTypeNone IdentityType = "None" + IdentityTypeUserAssigned IdentityType = "UserAssigned" ) // PossibleIdentityTypeValues returns the possible values for the IdentityType const type. func PossibleIdentityTypeValues() []IdentityType { return []IdentityType{ IdentityTypeNone, - IdentityTypeSystemAssigned, IdentityTypeUserAssigned, } } diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/databases_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/databases_client_example_test.go deleted file mode 100644 index dce86e13dd64..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/databases_client_example_test.go +++ /dev/null @@ -1,153 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabaseCreate.json -func ExampleDatabasesClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewDatabasesClient().BeginCreate(ctx, "TestGroup", "testserver", "db1", armpostgresqlflexibleservers.Database{ - Properties: &armpostgresqlflexibleservers.DatabaseProperties{ - Charset: to.Ptr("utf8"), - Collation: to.Ptr("en_US.utf8"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Database = armpostgresqlflexibleservers.Database{ - // Name: to.Ptr("db1"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1"), - // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ - // Charset: to.Ptr("utf8"), - // Collation: to.Ptr("en_US.utf8"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabaseDelete.json -func ExampleDatabasesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewDatabasesClient().BeginDelete(ctx, "TestGroup", "testserver", "db1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabaseGet.json -func ExampleDatabasesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDatabasesClient().Get(ctx, "TestGroup", "testserver", "db1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Database = armpostgresqlflexibleservers.Database{ - // Name: to.Ptr("db1"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1"), - // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ - // Charset: to.Ptr("utf8"), - // Collation: to.Ptr("en_US.utf8"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabasesListByServer.json -func ExampleDatabasesClient_NewListByServerPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDatabasesClient().NewListByServerPager("TestGroup", "testserver", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DatabaseListResult = armpostgresqlflexibleservers.DatabaseListResult{ - // Value: []*armpostgresqlflexibleservers.Database{ - // { - // Name: to.Ptr("db1"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1"), - // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ - // Charset: to.Ptr("utf8"), - // Collation: to.Ptr("en_US.utf8"), - // }, - // }, - // { - // Name: to.Ptr("db2"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db2"), - // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ - // Charset: to.Ptr("utf8"), - // Collation: to.Ptr("en_US.utf8"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/firewallrules_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/firewallrules_client_example_test.go deleted file mode 100644 index bcfb3df8a20f..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/firewallrules_client_example_test.go +++ /dev/null @@ -1,153 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleCreate.json -func ExampleFirewallRulesClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewFirewallRulesClient().BeginCreateOrUpdate(ctx, "testrg", "testserver", "rule1", armpostgresqlflexibleservers.FirewallRule{ - Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ - EndIPAddress: to.Ptr("255.255.255.255"), - StartIPAddress: to.Ptr("0.0.0.0"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.FirewallRule = armpostgresqlflexibleservers.FirewallRule{ - // Name: to.Ptr("rule1"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1"), - // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ - // EndIPAddress: to.Ptr("255.255.255.255"), - // StartIPAddress: to.Ptr("0.0.0.0"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleDelete.json -func ExampleFirewallRulesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewFirewallRulesClient().BeginDelete(ctx, "testrg", "testserver", "rule1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleGet.json -func ExampleFirewallRulesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewFirewallRulesClient().Get(ctx, "testrg", "testserver", "rule1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.FirewallRule = armpostgresqlflexibleservers.FirewallRule{ - // Name: to.Ptr("rule1"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1"), - // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ - // EndIPAddress: to.Ptr("255.255.255.255"), - // StartIPAddress: to.Ptr("0.0.0.0"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleListByServer.json -func ExampleFirewallRulesClient_NewListByServerPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewFirewallRulesClient().NewListByServerPager("testrg", "testserver", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.FirewallRuleListResult = armpostgresqlflexibleservers.FirewallRuleListResult{ - // Value: []*armpostgresqlflexibleservers.FirewallRule{ - // { - // Name: to.Ptr("rule1"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules/rule1"), - // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ - // EndIPAddress: to.Ptr("255.255.255.255"), - // StartIPAddress: to.Ptr("0.0.0.0"), - // }, - // }, - // { - // Name: to.Ptr("rule2"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules/rule2"), - // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ - // EndIPAddress: to.Ptr("255.0.0.0"), - // StartIPAddress: to.Ptr("1.0.0.0"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/getprivatednszonesuffix_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/getprivatednszonesuffix_client_example_test.go deleted file mode 100644 index 562f790e9696..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/getprivatednszonesuffix_client_example_test.go +++ /dev/null @@ -1,39 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/GetPrivateDnsZoneSuffix.json -func ExampleGetPrivateDNSZoneSuffixClient_Execute() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewGetPrivateDNSZoneSuffixClient().Execute(ctx, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Value = "postgres.database.azure.com" -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.mod b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.mod index 49eb252ae87e..abac0c4f0598 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.mod +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.mod @@ -1,21 +1,13 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3 +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4 go 1.18 -require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 // indirect - github.com/golang-jwt/jwt/v4 v4.5.0 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect - golang.org/x/crypto v0.6.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect golang.org/x/net v0.7.0 // indirect - golang.org/x/sys v0.5.0 // indirect golang.org/x/text v0.7.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.sum b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.sum index 8ba445a8c4da..b6bd7eaad1ba 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.sum +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.sum @@ -1,31 +1,15 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 h1:rTnT/Jrcm+figWlYz4Ixzt0SJVR2cMC8lvZcimipiEY= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0/go.mod h1:ON4tFdPTwRcgWEaVDrN3584Ef+b7GgSJaXxe5fW9t4M= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2 h1:uqM+VoHjVH6zdlkLF2b6O0ZANcHoj3rO0PoQ3jglUJA= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.2/go.mod h1:twTKAa1E6hLmSDjLhaCkbTMQKc7p/rNLU40rLxGEOCI= github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 h1:leh5DwKv6Ihwi+h60uHtn6UWAxBbZ0q8DwQVMzf61zw= github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0 h1:UE9n9rkJF62ArLb1F3DEjRt8O3jLwMWdSoypKV4f3MU= -github.com/AzureAD/microsoft-authentication-library-for-go v0.9.0/go.mod h1:kgDmCTgBzIEPFElEF+FK0SdjAor06dRq2Go927dnQ6o= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= -github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= -github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc= -golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/locationbasedcapabilities_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/locationbasedcapabilities_client_example_test.go deleted file mode 100644 index 86691275d2d1..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/locationbasedcapabilities_client_example_test.go +++ /dev/null @@ -1,8080 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/CapabilitiesByLocation.json -func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewLocationBasedCapabilitiesClient().NewExecutePager("westus", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CapabilitiesListResult = armpostgresqlflexibleservers.CapabilitiesListResult{ - // Value: []*armpostgresqlflexibleservers.CapabilityProperties{ - // { - // GeoBackupSupported: to.Ptr(true), - // Status: to.Ptr("Default"), - // SupportedFlexibleServerEditions: []*armpostgresqlflexibleservers.FlexibleServerEditionCapability{ - // { - // Name: to.Ptr("Burstable"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }, - // { - // Name: to.Ptr("GeneralPurpose"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }, - // { - // Name: to.Ptr("MemoryOptimized"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }}, - // SupportedHAMode: []*string{ - // to.Ptr("SameZone"), - // to.Ptr("ZoneRedundant")}, - // SupportedHyperscaleNodeEditions: []*armpostgresqlflexibleservers.HyperscaleNodeEditionCapability{ - // { - // Name: to.Ptr("GeneralPurpose"), - // Status: to.Ptr("Available"), - // SupportedNodeTypes: []*armpostgresqlflexibleservers.NodeTypeCapability{ - // { - // Name: to.Ptr("Coordinator"), - // NodeType: to.Ptr("Coordinator"), - // Status: to.Ptr("Default"), - // }}, - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](25600), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](51200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](80000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("11.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("11.2"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](25600), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](51200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](80000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("11.2.8"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](25600), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](51200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](80000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("33553408"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](33553408), - // SupportedIops: to.Ptr[int64](20000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }, - // { - // Name: to.Ptr("MemoryOptimized"), - // Status: to.Ptr("Available"), - // SupportedNodeTypes: []*armpostgresqlflexibleservers.NodeTypeCapability{ - // { - // Name: to.Ptr("Worker"), - // NodeType: to.Ptr("Worker"), - // Status: to.Ptr("Default"), - // }}, - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](25600), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](51200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](80000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](64), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("11.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](25600), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](51200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](80000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("11.2"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](25600), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](51200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](80000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("11.2.8"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](25600), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](51200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](80000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("33553408"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](33553408), - // SupportedIops: to.Ptr[int64](20000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }}, - // Zone: to.Ptr("none"), - // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(true), - // ZoneRedundantHaSupported: to.Ptr(true), - // }, - // { - // GeoBackupSupported: to.Ptr(true), - // Status: to.Ptr("Available"), - // SupportedFlexibleServerEditions: []*armpostgresqlflexibleservers.FlexibleServerEditionCapability{ - // { - // Name: to.Ptr("Burstable"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }, - // { - // Name: to.Ptr("GeneralPurpose"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }, - // { - // Name: to.Ptr("MemoryOptimized"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }}, - // SupportedHyperscaleNodeEditions: []*armpostgresqlflexibleservers.HyperscaleNodeEditionCapability{ - // }, - // Zone: to.Ptr("1"), - // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(true), - // ZoneRedundantHaSupported: to.Ptr(true), - // }, - // { - // GeoBackupSupported: to.Ptr(true), - // Status: to.Ptr("Available"), - // SupportedFlexibleServerEditions: []*armpostgresqlflexibleservers.FlexibleServerEditionCapability{ - // { - // Name: to.Ptr("Burstable"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }, - // { - // Name: to.Ptr("GeneralPurpose"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }, - // { - // Name: to.Ptr("MemoryOptimized"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }}, - // SupportedHyperscaleNodeEditions: []*armpostgresqlflexibleservers.HyperscaleNodeEditionCapability{ - // }, - // Zone: to.Ptr("2"), - // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(true), - // ZoneRedundantHaSupported: to.Ptr(true), - // }, - // { - // GeoBackupSupported: to.Ptr(true), - // Status: to.Ptr("Available"), - // SupportedFlexibleServerEditions: []*armpostgresqlflexibleservers.FlexibleServerEditionCapability{ - // { - // Name: to.Ptr("Burstable"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_B1ms"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](640), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](1), - // }, - // { - // Name: to.Ptr("Standard_B2s"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](1280), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), - // VCores: to.Ptr[int64](2), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }, - // { - // Name: to.Ptr("GeneralPurpose"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_D2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_D2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_D4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_D8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_D16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_D32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_D48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_D64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), - // VCores: to.Ptr[int64](64), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }, - // { - // Name: to.Ptr("MemoryOptimized"), - // Status: to.Ptr("Available"), - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14")}, - // }, - // { - // Name: to.Ptr("12"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.0"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("12.1"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }, - // { - // Name: to.Ptr("13"), - // Status: to.Ptr("Available"), - // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E32s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64s_v3"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }, - // { - // Name: to.Ptr("Standard_E2ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](3200), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](2), - // }, - // { - // Name: to.Ptr("Standard_E4ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](6400), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](4), - // }, - // { - // Name: to.Ptr("Standard_E8ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](12800), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](8), - // }, - // { - // Name: to.Ptr("Standard_E16ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](16), - // }, - // { - // Name: to.Ptr("Standard_E20ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](20), - // }, - // { - // Name: to.Ptr("Standard_E32ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](32), - // }, - // { - // Name: to.Ptr("Standard_E48ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), - // VCores: to.Ptr[int64](48), - // }, - // { - // Name: to.Ptr("Standard_E64ds_v4"), - // Status: to.Ptr("Available"), - // SupportedIops: to.Ptr[int64](18000), - // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), - // VCores: to.Ptr[int64](64), - // }}, - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // Status: to.Ptr("Default"), - // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ - // { - // Name: to.Ptr("32768"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int64](120), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("65536"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int64](240), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("131072"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int64](500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("262144"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int64](1100), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("524288"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int64](2300), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("1048576"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int64](5000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("2097152"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("4194304"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int64](7500), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("8388608"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int64](16000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }, - // { - // Name: to.Ptr("16777216"), - // Status: to.Ptr("Available"), - // StorageSizeMB: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int64](18000), - // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int64](120), - // IsBaseline: to.Ptr(true), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P4"), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int64](240), - // IsBaseline: to.Ptr(false), - // Status: to.Ptr("Available"), - // TierName: to.Ptr("P6"), - // }}, - // }}, - // }}, - // }}, - // SupportedHyperscaleNodeEditions: []*armpostgresqlflexibleservers.HyperscaleNodeEditionCapability{ - // }, - // Zone: to.Ptr("3"), - // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(true), - // ZoneRedundantHaSupported: to.Ptr(true), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models.go index 86a68732545e..abde730a9039 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models.go @@ -523,12 +523,16 @@ type NameAvailability struct { Type *string } -// Network properties of a server +// Network properties of a server. type Network struct { - // delegated subnet arm resource id. + // Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, + // i.e. Private access server. During update, pass this only if we want to + // update the value for Private DNS zone. DelegatedSubnetResourceID *string - // private dns zone arm resource id. + // Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, + // i.e. Private access server. During update, pass this only if we want to + // update the value for Private DNS zone. PrivateDNSZoneArmResourceID *string // READ-ONLY; public network access is enabled or not @@ -740,7 +744,8 @@ type ServerProperties struct { // Maintenance window properties of a server. MaintenanceWindow *MaintenanceWindow - // Network properties of a server. + // Network properties of a server. This Network property is required to be passed only in case you want the server to be Private + // access server. Network *Network // Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' @@ -795,6 +800,9 @@ type ServerPropertiesForUpdate struct { // Maintenance window properties of a server. MaintenanceWindow *MaintenanceWindow + // Network properties of a server. These are required to be passed only in case if server is a private access server. + Network *Network + // Replication role of the server ReplicationRole *ReplicationRole diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models_serde.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models_serde.go index e36c2722adf7..0fab9fc932b0 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models_serde.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models_serde.go @@ -1656,6 +1656,7 @@ func (s ServerPropertiesForUpdate) MarshalJSON() ([]byte, error) { populate(objectMap, "dataEncryption", s.DataEncryption) populate(objectMap, "highAvailability", s.HighAvailability) populate(objectMap, "maintenanceWindow", s.MaintenanceWindow) + populate(objectMap, "network", s.Network) populate(objectMap, "replicationRole", s.ReplicationRole) populate(objectMap, "storage", s.Storage) populate(objectMap, "version", s.Version) @@ -1692,6 +1693,9 @@ func (s *ServerPropertiesForUpdate) UnmarshalJSON(data []byte) error { case "maintenanceWindow": err = unpopulate(val, "MaintenanceWindow", &s.MaintenanceWindow) delete(rawMsg, key) + case "network": + err = unpopulate(val, "Network", &s.Network) + delete(rawMsg, key) case "replicationRole": err = unpopulate(val, "ReplicationRole", &s.ReplicationRole) delete(rawMsg, key) diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_client_example_test.go deleted file mode 100644 index 4643529e062b..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_client_example_test.go +++ /dev/null @@ -1,204 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/OperationList.json -func ExampleOperationsClient_List() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewOperationsClient().List(ctx, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.OperationListResult = armpostgresqlflexibleservers.OperationListResult{ - // Value: []*armpostgresqlflexibleservers.Operation{ - // { - // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/read"), - // Display: &armpostgresqlflexibleservers.OperationDisplay{ - // Description: to.Ptr("Return the list of servers or gets the properties for the specified server."), - // Operation: to.Ptr("List/Get PostgreSQL Servers"), - // Provider: to.Ptr("Microsoft DB for PostgreSQL"), - // Resource: to.Ptr("PostgreSQL Server"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/write"), - // Display: &armpostgresqlflexibleservers.OperationDisplay{ - // Description: to.Ptr("Creates a server with the specified parameters or update the properties or tags for the specified server."), - // Operation: to.Ptr("Create/Update PostgreSQL Server"), - // Provider: to.Ptr("Microsoft DB for PostgreSQL"), - // Resource: to.Ptr("PostgreSQL Server"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/delete"), - // Display: &armpostgresqlflexibleservers.OperationDisplay{ - // Description: to.Ptr("Deletes an existing server."), - // Operation: to.Ptr("Delete PostgreSQL Server"), - // Provider: to.Ptr("Microsoft DB for PostgreSQL"), - // Resource: to.Ptr("PostgreSQL Server"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules/read"), - // Display: &armpostgresqlflexibleservers.OperationDisplay{ - // Description: to.Ptr("Return the list of firewall rules for a server or gets the properties for the specified firewall rule."), - // Operation: to.Ptr("List/Get Firewall Rules"), - // Provider: to.Ptr("Microsoft DB for PostgreSQL"), - // Resource: to.Ptr("Firewall Rules"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules/write"), - // Display: &armpostgresqlflexibleservers.OperationDisplay{ - // Description: to.Ptr("Creates a firewall rule with the specified parameters or update an existing rule."), - // Operation: to.Ptr("Create/Update Firewall Rule"), - // Provider: to.Ptr("Microsoft DB for PostgreSQL"), - // Resource: to.Ptr("Firewall Rules"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules/delete"), - // Display: &armpostgresqlflexibleservers.OperationDisplay{ - // Description: to.Ptr("Deletes an existing firewall rule."), - // Operation: to.Ptr("Delete Firewall Rule"), - // Provider: to.Ptr("Microsoft DB for PostgreSQL"), - // Resource: to.Ptr("Firewall Rules"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/metricDefinitions/read"), - // Display: &armpostgresqlflexibleservers.OperationDisplay{ - // Description: to.Ptr("Return types of metrics that are available for databases"), - // Operation: to.Ptr("Get database metric definitions"), - // Provider: to.Ptr("Microsoft DB for PostgreSQL"), - // Resource: to.Ptr("Database Metric Definition"), - // }, - // Properties: map[string]any{ - // "serviceSpecification": map[string]any{ - // "metricSpecifications":[]any{ - // map[string]any{ - // "name": "cpu_percent", - // "aggregationType": "Average", - // "displayDescription": "CPU percent", - // "displayName": "CPU percent", - // "fillGapWithZero": true, - // "unit": "Percent", - // }, - // map[string]any{ - // "name": "compute_limit", - // "aggregationType": "Average", - // "displayDescription": "Compute Unit limit", - // "displayName": "Compute Unit limit", - // "unit": "Count", - // }, - // map[string]any{ - // "name": "compute_consumption_percent", - // "aggregationType": "Average", - // "displayDescription": "Compute Unit percentage", - // "displayName": "Compute Unit percentage", - // "fillGapWithZero": true, - // "unit": "Percent", - // }, - // map[string]any{ - // "name": "memory_percent", - // "aggregationType": "Average", - // "displayDescription": "Memory percent", - // "displayName": "Memory percent", - // "fillGapWithZero": true, - // "unit": "Percent", - // }, - // map[string]any{ - // "name": "io_consumption_percent", - // "aggregationType": "Average", - // "displayDescription": "IO percent", - // "displayName": "IO percent", - // "fillGapWithZero": true, - // "unit": "Percent", - // }, - // map[string]any{ - // "name": "storage_percent", - // "aggregationType": "Average", - // "displayDescription": "Storage percentage", - // "displayName": "Storage percentage", - // "unit": "Percent", - // }, - // map[string]any{ - // "name": "storage_used", - // "aggregationType": "Average", - // "displayDescription": "Storage used", - // "displayName": "Storage used", - // "unit": "Bytes", - // }, - // map[string]any{ - // "name": "storage_limit", - // "aggregationType": "Average", - // "displayDescription": "Storage limit", - // "displayName": "Storage limit", - // "unit": "Bytes", - // }, - // map[string]any{ - // "name": "active_connections", - // "aggregationType": "Average", - // "displayDescription": "Total active connections", - // "displayName": "Total active connections", - // "fillGapWithZero": true, - // "unit": "Count", - // }, - // map[string]any{ - // "name": "connections_failed", - // "aggregationType": "Average", - // "displayDescription": "Total failed connections", - // "displayName": "Total failed connections", - // "fillGapWithZero": true, - // "unit": "Count", - // }, - // }, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/read"), - // Display: &armpostgresqlflexibleservers.OperationDisplay{ - // Description: to.Ptr("Gets the disagnostic setting for the resource"), - // Operation: to.Ptr("Read diagnostic setting"), - // Provider: to.Ptr("Microsoft DB for PostgreSQL"), - // Resource: to.Ptr("Database Metric Definition"), - // }, - // }, - // { - // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/write"), - // Display: &armpostgresqlflexibleservers.OperationDisplay{ - // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), - // Operation: to.Ptr("Write diagnostic setting"), - // Provider: to.Ptr("Microsoft DB for PostgreSQL"), - // Resource: to.Ptr("Database Metric Definition"), - // }, - // }}, - // } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/replicas_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/replicas_client_example_test.go deleted file mode 100644 index 7048ba3b069c..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/replicas_client_example_test.go +++ /dev/null @@ -1,97 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ReplicasListByServer.json -func ExampleReplicasClient_NewListByServerPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewReplicasClient().NewListByServerPager("testrg", "sourcepgservername", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ServerListResult = armpostgresqlflexibleservers.ServerListResult{ - // Value: []*armpostgresqlflexibleservers.Server{ - // { - // Name: to.Ptr("pgtestsvc5rep"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5rep"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("2"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-27T00:28:17.7279547+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), - // }, - // FullyQualifiedDomainName: to.Ptr("pgtestsvc5rep.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), - // }, - // ReplicaCapacity: to.Ptr[int32](0), - // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRoleAsyncReplica), - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servers_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servers_client_example_test.go deleted file mode 100644 index f81cf6bdfab2..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servers_client_example_test.go +++ /dev/null @@ -1,1547 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreateGeoRestore.json -func ExampleServersClient_BeginCreate_createADatabaseAsAGeoRestoreInGeoPairedLocation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc5geo", armpostgresqlflexibleservers.Server{ - Location: to.Ptr("eastus"), - Properties: &armpostgresqlflexibleservers.ServerProperties{ - CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeGeoRestore), - PointInTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-27T00:04:59.4078005+00:00"); return t }()), - SourceServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc5geo"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5geo"), - // Location: to.Ptr("eastus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("2"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-27T00:28:17.7279547+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumEnabled), - // }, - // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), - // }, - // FullyQualifiedDomainName: to.Ptr("pgtestsvc5geo.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreatePointInTimeRestore.json -func ExampleServersClient_BeginCreate_createADatabaseAsAPointInTimeRestore() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc5", armpostgresqlflexibleservers.Server{ - Location: to.Ptr("westus"), - Properties: &armpostgresqlflexibleservers.ServerProperties{ - CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModePointInTimeRestore), - PointInTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-27T00:04:59.4078005+00:00"); return t }()), - SourceServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc5"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("2"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-27T00:28:17.7279547+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), - // }, - // FullyQualifiedDomainName: to.Ptr("pgtestsvc5.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreate.json -func ExampleServersClient_BeginCreate_createANewServer() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.Server{ - Location: to.Ptr("westus"), - Tags: map[string]*string{ - "ElasticServer": to.Ptr("1"), - }, - Properties: &armpostgresqlflexibleservers.ServerProperties{ - AdministratorLogin: to.Ptr("cloudsa"), - AdministratorLoginPassword: to.Ptr("password"), - AvailabilityZone: to.Ptr("1"), - Backup: &armpostgresqlflexibleservers.Backup{ - BackupRetentionDays: to.Ptr[int32](7), - GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - }, - CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeCreate), - HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - }, - Network: &armpostgresqlflexibleservers.Network{ - DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - }, - Storage: &armpostgresqlflexibleservers.Storage{ - StorageSizeGB: to.Ptr[int32](512), - }, - Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - }, - SKU: &armpostgresqlflexibleservers.SKU{ - Name: to.Ptr("Standard_D4s_v3"), - Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc4"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:08:06.7197478+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), - // }, - // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - // StandbyAvailabilityZone: to.Ptr("2"), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreateWithAadAuthEnabled.json -func ExampleServersClient_BeginCreate_createANewServerWithActiveDirectoryAuthenticationEnabled() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.Server{ - Location: to.Ptr("westus"), - Tags: map[string]*string{ - "ElasticServer": to.Ptr("1"), - }, - Properties: &armpostgresqlflexibleservers.ServerProperties{ - AdministratorLogin: to.Ptr("cloudsa"), - AdministratorLoginPassword: to.Ptr("password"), - AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), - PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), - }, - AvailabilityZone: to.Ptr("1"), - Backup: &armpostgresqlflexibleservers.Backup{ - BackupRetentionDays: to.Ptr[int32](7), - GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - }, - CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeCreate), - DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), - }, - HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - }, - Network: &armpostgresqlflexibleservers.Network{ - DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - }, - Storage: &armpostgresqlflexibleservers.Storage{ - StorageSizeGB: to.Ptr[int32](512), - }, - Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - }, - SKU: &armpostgresqlflexibleservers.SKU{ - Name: to.Ptr("Standard_D4s_v3"), - Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc4"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:08:06.7197478+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - // StandbyAvailabilityZone: to.Ptr("2"), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreateReplica.json -func ExampleServersClient_BeginCreate_serverCreateReplica() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc5rep", armpostgresqlflexibleservers.Server{ - Location: to.Ptr("westus"), - Properties: &armpostgresqlflexibleservers.ServerProperties{ - CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeReplica), - PointInTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-27T00:04:59.4078005+00:00"); return t }()), - SourceServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc5rep"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5rep"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("2"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-27T00:28:17.7279547+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), - // }, - // FullyQualifiedDomainName: to.Ptr("pgtestsvc5rep.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), - // }, - // ReplicaCapacity: to.Ptr[int32](0), - // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRoleAsyncReplica), - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreateWithDataEncryptionEnabled.json -func ExampleServersClient_BeginCreate_serverCreateWithDataEncryptionEnabled() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.Server{ - Location: to.Ptr("westus"), - Tags: map[string]*string{ - "ElasticServer": to.Ptr("1"), - }, - Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ - Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), - UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {}, - }, - }, - Properties: &armpostgresqlflexibleservers.ServerProperties{ - AdministratorLogin: to.Ptr("cloudsa"), - AdministratorLoginPassword: to.Ptr("password"), - AvailabilityZone: to.Ptr("1"), - Backup: &armpostgresqlflexibleservers.Backup{ - BackupRetentionDays: to.Ptr[int32](7), - GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - }, - CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeCreate), - DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), - PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787"), - PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), - }, - HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - }, - Network: &armpostgresqlflexibleservers.Network{ - DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - }, - Storage: &armpostgresqlflexibleservers.Storage{ - StorageSizeGB: to.Ptr[int32](512), - }, - Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - }, - SKU: &armpostgresqlflexibleservers.SKU{ - Name: to.Ptr("Standard_D4s_v3"), - Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc4"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ - // Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), - // UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ - // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": &armpostgresqlflexibleservers.UserIdentity{ - // ClientID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), - // PrincipalID: to.Ptr("0a4e0c6e-7751-4078-ae1f-a477306c11e9"), - // }, - // }, - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:08:06.7197478+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), - // PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787"), - // PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), - // }, - // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - // StandbyAvailabilityZone: to.Ptr("2"), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerUpdate.json -func ExampleServersClient_BeginUpdate_serverUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "TestGroup", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ - Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ - AdministratorLoginPassword: to.Ptr("newpassword"), - Backup: &armpostgresqlflexibleservers.Backup{ - BackupRetentionDays: to.Ptr[int32](20), - }, - CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), - Storage: &armpostgresqlflexibleservers.Storage{ - StorageSizeGB: to.Ptr[int32](1024), - }, - }, - SKU: &armpostgresqlflexibleservers.SKU{ - Name: to.Ptr("Standard_D8s_v3"), - Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc4"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](20), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.3723361+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), - // }, - // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - // StandbyAvailabilityZone: to.Ptr("2"), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](1024), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D8s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerUpdateWithAadAuthEnabled.json -func ExampleServersClient_BeginUpdate_serverUpdateWithAadAuthEnabled() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "TestGroup", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ - Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ - AdministratorLoginPassword: to.Ptr("newpassword"), - AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), - PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), - }, - Backup: &armpostgresqlflexibleservers.Backup{ - BackupRetentionDays: to.Ptr[int32](20), - }, - CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), - Storage: &armpostgresqlflexibleservers.Storage{ - StorageSizeGB: to.Ptr[int32](1024), - }, - }, - SKU: &armpostgresqlflexibleservers.SKU{ - Name: to.Ptr("Standard_D8s_v3"), - Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc4"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](20), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.3723361+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), - // }, - // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - // StandbyAvailabilityZone: to.Ptr("2"), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](1024), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D8s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json -func ExampleServersClient_BeginUpdate_serverUpdateWithCustomerMaintenanceWindow() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ - Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ - CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), - MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - CustomWindow: to.Ptr("Enabled"), - DayOfWeek: to.Ptr[int32](0), - StartHour: to.Ptr[int32](8), - StartMinute: to.Ptr[int32](0), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc4"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.3723361+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), - // }, - // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - // StandbyAvailabilityZone: to.Ptr("2"), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Enabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](8), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerUpdateWithDataEncryptionEnabled.json -func ExampleServersClient_BeginUpdate_serverUpdateWithDataEncryptionEnabled() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "TestGroup", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ - Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ - Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), - UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {}, - }, - }, - Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ - AdministratorLoginPassword: to.Ptr("newpassword"), - Backup: &armpostgresqlflexibleservers.Backup{ - BackupRetentionDays: to.Ptr[int32](20), - }, - CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), - DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), - PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787"), - PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), - }, - Storage: &armpostgresqlflexibleservers.Storage{ - StorageSizeGB: to.Ptr[int32](1024), - }, - }, - SKU: &armpostgresqlflexibleservers.SKU{ - Name: to.Ptr("Standard_D8s_v3"), - Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc4"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ - // Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), - // UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ - // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": &armpostgresqlflexibleservers.UserIdentity{ - // ClientID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), - // PrincipalID: to.Ptr("0a4e0c6e-7751-4078-ae1f-a477306c11e9"), - // }, - // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity-1": &armpostgresqlflexibleservers.UserIdentity{ - // ClientID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), - // PrincipalID: to.Ptr("90008082-e024-4cc3-8fcf-63bcdb9cf6b6"), - // }, - // }, - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](20), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.3723361+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), - // PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787"), - // PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), - // }, - // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - // StandbyAvailabilityZone: to.Ptr("2"), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](1024), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D8s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerUpdateWithMajorVersionUpgrade.json -func ExampleServersClient_BeginUpdate_serverUpdateWithMajorVersionUpgrade() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ - Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ - CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), - Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionFourteen), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc4"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.3723361+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ - // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), - // }, - // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - // StandbyAvailabilityZone: to.Ptr("2"), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionFourteen), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerDelete.json -func ExampleServersClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginDelete(ctx, "testrg", "testserver", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerGet.json -func ExampleServersClient_Get_serverGet() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewServersClient().Get(ctx, "testrg", "pgtestsvc1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc1"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T23:07:25.8166567+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // FullyQualifiedDomainName: to.Ptr("pgtestsvc1.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerGetWithVnet.json -func ExampleServersClient_Get_serverGetWithVnet() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewServersClient().Get(ctx, "testrg", "pgtestsvc4", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Server = armpostgresqlflexibleservers.Server{ - // Name: to.Ptr("pgtestsvc4"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.3723361+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - // StandbyAvailabilityZone: to.Ptr("2"), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), - // }, - // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ - // CustomWindow: to.Ptr("Disabled"), - // DayOfWeek: to.Ptr[int32](0), - // StartHour: to.Ptr[int32](0), - // StartMinute: to.Ptr[int32](0), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerListByResourceGroup.json -func ExampleServersClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewServersClient().NewListByResourceGroupPager("testrg", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ServerListResult = armpostgresqlflexibleservers.ServerListResult{ - // Value: []*armpostgresqlflexibleservers.Server{ - // { - // Name: to.Ptr("pgtestsvc4"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.3723361+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - // StandbyAvailabilityZone: to.Ptr("2"), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // }, - // { - // Name: to.Ptr("pgtestsvc1"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T23:15:38.8131437+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // FullyQualifiedDomainName: to.Ptr("pgtestsvc1.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerList.json -func ExampleServersClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewServersClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ServerListResult = armpostgresqlflexibleservers.ServerListResult{ - // Value: []*armpostgresqlflexibleservers.Server{ - // { - // Name: to.Ptr("pgtestsvc4"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.3723361+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), - // StandbyAvailabilityZone: to.Ptr("2"), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), - // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // }, - // { - // Name: to.Ptr("pgtestsvc1"), - // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), - // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1"), - // Location: to.Ptr("westus"), - // Tags: map[string]*string{ - // "ElasticServer": to.Ptr("1"), - // }, - // Properties: &armpostgresqlflexibleservers.ServerProperties{ - // AdministratorLogin: to.Ptr("cloudsa"), - // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ - // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), - // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), - // }, - // AvailabilityZone: to.Ptr("1"), - // Backup: &armpostgresqlflexibleservers.Backup{ - // BackupRetentionDays: to.Ptr[int32](7), - // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T23:15:38.8131437+00:00"); return t}()), - // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), - // }, - // FullyQualifiedDomainName: to.Ptr("pgtestsvc1.postgres.database.azure.com"), - // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ - // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), - // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), - // }, - // MinorVersion: to.Ptr("6"), - // Network: &armpostgresqlflexibleservers.Network{ - // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), - // }, - // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), - // Storage: &armpostgresqlflexibleservers.Storage{ - // StorageSizeGB: to.Ptr[int32](512), - // }, - // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), - // }, - // SKU: &armpostgresqlflexibleservers.SKU{ - // Name: to.Ptr("Standard_D4s_v3"), - // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerRestart.json -func ExampleServersClient_BeginRestart_serverRestart() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginRestart(ctx, "testrg", "testserver", &armpostgresqlflexibleservers.ServersClientBeginRestartOptions{Parameters: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerRestartWithFailover.json -func ExampleServersClient_BeginRestart_serverRestartWithFailover() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginRestart(ctx, "testrg", "testserver", &armpostgresqlflexibleservers.ServersClientBeginRestartOptions{Parameters: &armpostgresqlflexibleservers.RestartParameter{ - FailoverMode: to.Ptr(armpostgresqlflexibleservers.FailoverModeForcedFailover), - RestartWithFailover: to.Ptr(true), - }, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerStart.json -func ExampleServersClient_BeginStart() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginStart(ctx, "testrg", "testserver", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerStop.json -func ExampleServersClient_BeginStop() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewServersClient().BeginStop(ctx, "testrg", "testserver", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualnetworksubnetusage_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualnetworksubnetusage_client_example_test.go deleted file mode 100644 index 40f0a382c17a..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualnetworksubnetusage_client_example_test.go +++ /dev/null @@ -1,54 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armpostgresqlflexibleservers_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v3" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/VirtualNetworkSubnetUsage.json -func ExampleVirtualNetworkSubnetUsageClient_Execute() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewVirtualNetworkSubnetUsageClient().Execute(ctx, "westus", armpostgresqlflexibleservers.VirtualNetworkSubnetUsageParameter{ - VirtualNetworkArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/testvnet"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.VirtualNetworkSubnetUsageResult = armpostgresqlflexibleservers.VirtualNetworkSubnetUsageResult{ - // DelegatedSubnetsUsage: []*armpostgresqlflexibleservers.DelegatedSubnetUsage{ - // { - // SubnetName: to.Ptr("test-subnet-1"), - // Usage: to.Ptr[int64](2), - // }, - // { - // SubnetName: to.Ptr("test-subnet-2"), - // Usage: to.Ptr[int64](3), - // }}, - // Location: to.Ptr("westus"), - // SubscriptionID: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff"), - // } -}