diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/CHANGELOG.md b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/CHANGELOG.md index 507346edda21..22f69dc56f8c 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/CHANGELOG.md +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/CHANGELOG.md @@ -1,5 +1,180 @@ # Release History +## 4.0.0 (2025-01-04) +### Breaking Changes + +- Type of `CapabilitiesListResult.Value` has been changed from `[]*CapabilityProperties` to `[]*FlexibleServerCapability` +- Type of `FastProvisioningEditionCapability.SupportedStorageGb` has been changed from `*int64` to `*int32` +- Type of `FlexibleServerEditionCapability.Status` has been changed from `*string` to `*CapabilityStatus` +- Type of `ServerVersionCapability.Status` has been changed from `*string` to `*CapabilityStatus` +- Type of `StorageEditionCapability.Status` has been changed from `*string` to `*CapabilityStatus` +- Type of `StorageTierCapability.Iops` has been changed from `*int64` to `*int32` +- Type of `StorageTierCapability.Status` has been changed from `*string` to `*CapabilityStatus` +- Struct `CapabilityProperties` has been removed +- Struct `HyperscaleNodeEditionCapability` has been removed +- Struct `NodeTypeCapability` has been removed +- Struct `StorageMBCapability` has been removed +- Struct `VcoreCapability` has been removed +- Field `SupportedServerVersions` of struct `FlexibleServerEditionCapability` has been removed +- Field `SupportedVcores` of struct `ServerVersionCapability` has been removed +- Field `SupportedStorageMB` of struct `StorageEditionCapability` has been removed +- Field `IsBaseline`, `TierName` of struct `StorageTierCapability` has been removed + +### Features Added + +- New value `CreateModeReviveDropped` added to enum type `CreateMode` +- New value `OriginCustomerOnDemand` added to enum type `Origin` +- New value `ServerVersionFifteen`, `ServerVersionSixteen` added to enum type `ServerVersion` +- New enum type `AzureManagedDiskPerformanceTiers` with values `AzureManagedDiskPerformanceTiersP1`, `AzureManagedDiskPerformanceTiersP10`, `AzureManagedDiskPerformanceTiersP15`, `AzureManagedDiskPerformanceTiersP2`, `AzureManagedDiskPerformanceTiersP20`, `AzureManagedDiskPerformanceTiersP3`, `AzureManagedDiskPerformanceTiersP30`, `AzureManagedDiskPerformanceTiersP4`, `AzureManagedDiskPerformanceTiersP40`, `AzureManagedDiskPerformanceTiersP50`, `AzureManagedDiskPerformanceTiersP6`, `AzureManagedDiskPerformanceTiersP60`, `AzureManagedDiskPerformanceTiersP70`, `AzureManagedDiskPerformanceTiersP80` +- New enum type `CancelEnum` with values `CancelEnumFalse`, `CancelEnumTrue` +- New enum type `CapabilityStatus` with values `CapabilityStatusAvailable`, `CapabilityStatusDefault`, `CapabilityStatusDisabled`, `CapabilityStatusVisible` +- New enum type `ExecutionStatus` with values `ExecutionStatusCancelled`, `ExecutionStatusFailed`, `ExecutionStatusRunning`, `ExecutionStatusSucceeded` +- New enum type `FastProvisioningSupportedEnum` with values `FastProvisioningSupportedEnumDisabled`, `FastProvisioningSupportedEnumEnabled` +- New enum type `GeoBackupSupportedEnum` with values `GeoBackupSupportedEnumDisabled`, `GeoBackupSupportedEnumEnabled` +- New enum type `HaMode` with values `HaModeSameZone`, `HaModeZoneRedundant` +- New enum type `KeyStatusEnum` with values `KeyStatusEnumInvalid`, `KeyStatusEnumValid` +- New enum type `LogicalReplicationOnSourceDbEnum` with values `LogicalReplicationOnSourceDbEnumFalse`, `LogicalReplicationOnSourceDbEnumTrue` +- New enum type `MigrateRolesEnum` with values `MigrateRolesEnumFalse`, `MigrateRolesEnumTrue` +- New enum type `MigrationDbState` with values `MigrationDbStateCanceled`, `MigrationDbStateCanceling`, `MigrationDbStateFailed`, `MigrationDbStateInProgress`, `MigrationDbStateSucceeded`, `MigrationDbStateWaitingForCutoverTrigger` +- New enum type `MigrationListFilter` with values `MigrationListFilterActive`, `MigrationListFilterAll` +- New enum type `MigrationMode` with values `MigrationModeOffline`, `MigrationModeOnline` +- New enum type `MigrationNameAvailabilityReason` with values `MigrationNameAvailabilityReasonAlreadyExists`, `MigrationNameAvailabilityReasonInvalid` +- New enum type `MigrationOption` with values `MigrationOptionMigrate`, `MigrationOptionValidate`, `MigrationOptionValidateAndMigrate` +- New enum type `MigrationState` with values `MigrationStateCanceled`, `MigrationStateCleaningUp`, `MigrationStateFailed`, `MigrationStateInProgress`, `MigrationStateSucceeded`, `MigrationStateValidationFailed`, `MigrationStateWaitingForUserAction` +- New enum type `MigrationSubState` with values `MigrationSubStateCancelingRequestedDBMigrations`, `MigrationSubStateCompleted`, `MigrationSubStateCompletingMigration`, `MigrationSubStateMigratingData`, `MigrationSubStatePerformingPreRequisiteSteps`, `MigrationSubStateValidationInProgress`, `MigrationSubStateWaitingForCutoverTrigger`, `MigrationSubStateWaitingForDBsToMigrateSpecification`, `MigrationSubStateWaitingForDataMigrationScheduling`, `MigrationSubStateWaitingForDataMigrationWindow`, `MigrationSubStateWaitingForLogicalReplicationSetupRequestOnSourceDB`, `MigrationSubStateWaitingForTargetDBOverwriteConfirmation` +- New enum type `OnlineResizeSupportedEnum` with values `OnlineResizeSupportedEnumDisabled`, `OnlineResizeSupportedEnumEnabled` +- New enum type `OverwriteDbsInTargetEnum` with values `OverwriteDbsInTargetEnumFalse`, `OverwriteDbsInTargetEnumTrue` +- New enum type `PrivateEndpointConnectionProvisioningState` with values `PrivateEndpointConnectionProvisioningStateCreating`, `PrivateEndpointConnectionProvisioningStateDeleting`, `PrivateEndpointConnectionProvisioningStateFailed`, `PrivateEndpointConnectionProvisioningStateSucceeded` +- New enum type `PrivateEndpointServiceConnectionStatus` with values `PrivateEndpointServiceConnectionStatusApproved`, `PrivateEndpointServiceConnectionStatusPending`, `PrivateEndpointServiceConnectionStatusRejected` +- New enum type `ReadReplicaPromoteMode` with values `ReadReplicaPromoteModeStandalone`, `ReadReplicaPromoteModeSwitchover` +- New enum type `ReplicationPromoteOption` with values `ReplicationPromoteOptionForced`, `ReplicationPromoteOptionPlanned` +- New enum type `ReplicationState` with values `ReplicationStateActive`, `ReplicationStateBroken`, `ReplicationStateCatchup`, `ReplicationStateProvisioning`, `ReplicationStateReconfiguring`, `ReplicationStateUpdating` +- New enum type `RestrictedEnum` with values `RestrictedEnumDisabled`, `RestrictedEnumEnabled` +- New enum type `SSLMode` with values `SSLModePrefer`, `SSLModeRequire`, `SSLModeVerifyCA`, `SSLModeVerifyFull` +- New enum type `SourceType` with values `SourceTypeAWS`, `SourceTypeAWSAURORA`, `SourceTypeAWSEC2`, `SourceTypeAWSRDS`, `SourceTypeAzureVM`, `SourceTypeEDB`, `SourceTypeGCP`, `SourceTypeGCPAlloyDB`, `SourceTypeGCPCloudSQL`, `SourceTypeGCPCompute`, `SourceTypeOnPremises`, `SourceTypePostgreSQLSingleServer` +- New enum type `StartDataMigrationEnum` with values `StartDataMigrationEnumFalse`, `StartDataMigrationEnumTrue` +- New enum type `StorageAutoGrow` with values `StorageAutoGrowDisabled`, `StorageAutoGrowEnabled` +- New enum type `StorageAutoGrowthSupportedEnum` with values `StorageAutoGrowthSupportedEnumDisabled`, `StorageAutoGrowthSupportedEnumEnabled` +- New enum type `StorageType` with values `StorageTypePremiumLRS`, `StorageTypePremiumV2LRS` +- New enum type `ThreatProtectionName` with values `ThreatProtectionNameDefault` +- New enum type `ThreatProtectionState` with values `ThreatProtectionStateDisabled`, `ThreatProtectionStateEnabled` +- New enum type `TriggerCutoverEnum` with values `TriggerCutoverEnumFalse`, `TriggerCutoverEnumTrue` +- New enum type `ValidationState` with values `ValidationStateFailed`, `ValidationStateSucceeded`, `ValidationStateWarning` +- New enum type `VirtualEndpointType` with values `VirtualEndpointTypeReadWrite` +- New enum type `ZoneRedundantHaAndGeoBackupSupportedEnum` with values `ZoneRedundantHaAndGeoBackupSupportedEnumDisabled`, `ZoneRedundantHaAndGeoBackupSupportedEnumEnabled` +- New enum type `ZoneRedundantHaSupportedEnum` with values `ZoneRedundantHaSupportedEnumDisabled`, `ZoneRedundantHaSupportedEnumEnabled` +- New function `*BackupsClient.BeginCreate(context.Context, string, string, string, *BackupsClientBeginCreateOptions) (*runtime.Poller[BackupsClientCreateResponse], error)` +- New function `*BackupsClient.BeginDelete(context.Context, string, string, string, *BackupsClientBeginDeleteOptions) (*runtime.Poller[BackupsClientDeleteResponse], error)` +- New function `*ClientFactory.NewFlexibleServerClient() *FlexibleServerClient` +- New function `*ClientFactory.NewLogFilesClient() *LogFilesClient` +- New function `*ClientFactory.NewLtrBackupOperationsClient() *LtrBackupOperationsClient` +- New function `*ClientFactory.NewMigrationsClient() *MigrationsClient` +- New function `*ClientFactory.NewPostgreSQLServerManagementClient() *PostgreSQLServerManagementClient` +- New function `*ClientFactory.NewPrivateEndpointConnectionClient() *PrivateEndpointConnectionClient` +- New function `*ClientFactory.NewPrivateEndpointConnectionsClient() *PrivateEndpointConnectionsClient` +- New function `*ClientFactory.NewPrivateLinkResourcesClient() *PrivateLinkResourcesClient` +- New function `*ClientFactory.NewServerCapabilitiesClient() *ServerCapabilitiesClient` +- New function `*ClientFactory.NewServerThreatProtectionSettingsClient() *ServerThreatProtectionSettingsClient` +- New function `*ClientFactory.NewVirtualEndpointsClient() *VirtualEndpointsClient` +- New function `NewFlexibleServerClient(string, azcore.TokenCredential, *arm.ClientOptions) (*FlexibleServerClient, error)` +- New function `*FlexibleServerClient.BeginStartLtrBackup(context.Context, string, string, LtrBackupRequest, *FlexibleServerClientBeginStartLtrBackupOptions) (*runtime.Poller[FlexibleServerClientStartLtrBackupResponse], error)` +- New function `*FlexibleServerClient.TriggerLtrPreBackup(context.Context, string, string, LtrPreBackupRequest, *FlexibleServerClientTriggerLtrPreBackupOptions) (FlexibleServerClientTriggerLtrPreBackupResponse, error)` +- New function `NewLogFilesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*LogFilesClient, error)` +- New function `*LogFilesClient.NewListByServerPager(string, string, *LogFilesClientListByServerOptions) *runtime.Pager[LogFilesClientListByServerResponse]` +- New function `NewLtrBackupOperationsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*LtrBackupOperationsClient, error)` +- New function `*LtrBackupOperationsClient.Get(context.Context, string, string, string, *LtrBackupOperationsClientGetOptions) (LtrBackupOperationsClientGetResponse, error)` +- New function `*LtrBackupOperationsClient.NewListByServerPager(string, string, *LtrBackupOperationsClientListByServerOptions) *runtime.Pager[LtrBackupOperationsClientListByServerResponse]` +- New function `NewMigrationsClient(azcore.TokenCredential, *arm.ClientOptions) (*MigrationsClient, error)` +- New function `*MigrationsClient.Create(context.Context, string, string, string, string, MigrationResource, *MigrationsClientCreateOptions) (MigrationsClientCreateResponse, error)` +- New function `*MigrationsClient.Delete(context.Context, string, string, string, string, *MigrationsClientDeleteOptions) (MigrationsClientDeleteResponse, error)` +- New function `*MigrationsClient.Get(context.Context, string, string, string, string, *MigrationsClientGetOptions) (MigrationsClientGetResponse, error)` +- New function `*MigrationsClient.NewListByTargetServerPager(string, string, string, *MigrationsClientListByTargetServerOptions) *runtime.Pager[MigrationsClientListByTargetServerResponse]` +- New function `*MigrationsClient.Update(context.Context, string, string, string, string, MigrationResourceForPatch, *MigrationsClientUpdateOptions) (MigrationsClientUpdateResponse, error)` +- New function `PossibleStorageAutoGrowValues() []StorageAutoGrow` +- New function `NewPostgreSQLServerManagementClient(azcore.TokenCredential, *arm.ClientOptions) (*PostgreSQLServerManagementClient, error)` +- New function `*PostgreSQLServerManagementClient.CheckMigrationNameAvailability(context.Context, string, string, string, MigrationNameAvailabilityResource, *PostgreSQLServerManagementClientCheckMigrationNameAvailabilityOptions) (PostgreSQLServerManagementClientCheckMigrationNameAvailabilityResponse, error)` +- New function `NewPrivateEndpointConnectionClient(string, azcore.TokenCredential, *arm.ClientOptions) (*PrivateEndpointConnectionClient, error)` +- New function `*PrivateEndpointConnectionClient.BeginDelete(context.Context, string, string, string, *PrivateEndpointConnectionClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionClientDeleteResponse], error)` +- New function `*PrivateEndpointConnectionClient.BeginUpdate(context.Context, string, string, string, PrivateEndpointConnection, *PrivateEndpointConnectionClientBeginUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionClientUpdateResponse], error)` +- New function `NewPrivateEndpointConnectionsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error)` +- New function `*PrivateEndpointConnectionsClient.Get(context.Context, string, string, string, *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error)` +- New function `*PrivateEndpointConnectionsClient.NewListByServerPager(string, string, *PrivateEndpointConnectionsClientListByServerOptions) *runtime.Pager[PrivateEndpointConnectionsClientListByServerResponse]` +- New function `NewPrivateLinkResourcesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*PrivateLinkResourcesClient, error)` +- New function `*PrivateLinkResourcesClient.Get(context.Context, string, string, string, *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error)` +- New function `*PrivateLinkResourcesClient.NewListByServerPager(string, string, *PrivateLinkResourcesClientListByServerOptions) *runtime.Pager[PrivateLinkResourcesClientListByServerResponse]` +- New function `NewServerCapabilitiesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ServerCapabilitiesClient, error)` +- New function `*ServerCapabilitiesClient.NewListPager(string, string, *ServerCapabilitiesClientListOptions) *runtime.Pager[ServerCapabilitiesClientListResponse]` +- New function `NewServerThreatProtectionSettingsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ServerThreatProtectionSettingsClient, error)` +- New function `*ServerThreatProtectionSettingsClient.BeginCreateOrUpdate(context.Context, string, string, ThreatProtectionName, ServerThreatProtectionSettingsModel, *ServerThreatProtectionSettingsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ServerThreatProtectionSettingsClientCreateOrUpdateResponse], error)` +- New function `*ServerThreatProtectionSettingsClient.Get(context.Context, string, string, ThreatProtectionName, *ServerThreatProtectionSettingsClientGetOptions) (ServerThreatProtectionSettingsClientGetResponse, error)` +- New function `*ServerThreatProtectionSettingsClient.NewListByServerPager(string, string, *ServerThreatProtectionSettingsClientListByServerOptions) *runtime.Pager[ServerThreatProtectionSettingsClientListByServerResponse]` +- New function `NewVirtualEndpointsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*VirtualEndpointsClient, error)` +- New function `*VirtualEndpointsClient.BeginCreate(context.Context, string, string, string, VirtualEndpointResource, *VirtualEndpointsClientBeginCreateOptions) (*runtime.Poller[VirtualEndpointsClientCreateResponse], error)` +- New function `*VirtualEndpointsClient.BeginDelete(context.Context, string, string, string, *VirtualEndpointsClientBeginDeleteOptions) (*runtime.Poller[VirtualEndpointsClientDeleteResponse], error)` +- New function `*VirtualEndpointsClient.Get(context.Context, string, string, string, *VirtualEndpointsClientGetOptions) (VirtualEndpointsClientGetResponse, error)` +- New function `*VirtualEndpointsClient.NewListByServerPager(string, string, *VirtualEndpointsClientListByServerOptions) *runtime.Pager[VirtualEndpointsClientListByServerResponse]` +- New function `*VirtualEndpointsClient.BeginUpdate(context.Context, string, string, string, VirtualEndpointResourceForPatch, *VirtualEndpointsClientBeginUpdateOptions) (*runtime.Poller[VirtualEndpointsClientUpdateResponse], error)` +- New struct `AdminCredentials` +- New struct `BackupSettings` +- New struct `BackupStoreDetails` +- New struct `DbLevelValidationStatus` +- New struct `DbMigrationStatus` +- New struct `DbServerMetadata` +- New struct `FlexibleServerCapability` +- New struct `LogFile` +- New struct `LogFileListResult` +- New struct `LogFileProperties` +- New struct `LtrBackupOperationResponseProperties` +- New struct `LtrBackupRequest` +- New struct `LtrBackupResponse` +- New struct `LtrPreBackupRequest` +- New struct `LtrPreBackupResponse` +- New struct `LtrPreBackupResponseProperties` +- New struct `LtrServerBackupOperation` +- New struct `LtrServerBackupOperationList` +- New struct `MigrationNameAvailabilityResource` +- New struct `MigrationResource` +- New struct `MigrationResourceForPatch` +- New struct `MigrationResourceListResult` +- New struct `MigrationResourceProperties` +- New struct `MigrationResourcePropertiesForPatch` +- New struct `MigrationSecretParameters` +- New struct `MigrationStatus` +- New struct `MigrationSubStateDetails` +- New struct `PrivateEndpoint` +- New struct `PrivateEndpointConnection` +- New struct `PrivateEndpointConnectionListResult` +- New struct `PrivateEndpointConnectionProperties` +- New struct `PrivateLinkResource` +- New struct `PrivateLinkResourceListResult` +- New struct `PrivateLinkResourceProperties` +- New struct `PrivateLinkServiceConnectionState` +- New struct `Replica` +- New struct `ServerSKU` +- New struct `ServerSKUCapability` +- New struct `ServerThreatProtectionListResult` +- New struct `ServerThreatProtectionProperties` +- New struct `ServerThreatProtectionSettingsModel` +- New struct `StorageMbCapability` +- New struct `ValidationDetails` +- New struct `ValidationMessage` +- New struct `ValidationSummaryItem` +- New struct `VirtualEndpointResource` +- New struct `VirtualEndpointResourceForPatch` +- New struct `VirtualEndpointResourceProperties` +- New struct `VirtualEndpointsListResult` +- New field `GeoBackupEncryptionKeyStatus`, `GeoBackupKeyURI`, `GeoBackupUserAssignedIdentityID`, `PrimaryEncryptionKeyStatus` in struct `DataEncryption` +- New field `Reason`, `ServerCount`, `Status`, `SupportedTier` in struct `FastProvisioningEditionCapability` +- New field `DefaultSKUName`, `Reason`, `SupportedServerSKUs` in struct `FlexibleServerEditionCapability` +- New field `PrivateEndpointConnections`, `Replica` in struct `ServerProperties` +- New field `AdministratorLogin`, `Network`, `Replica` in struct `ServerPropertiesForUpdate` +- New field `Reason` in struct `ServerVersionCapability` +- New field `AutoGrow`, `Iops`, `Throughput`, `Tier`, `Type` in struct `Storage` +- New field `DefaultStorageSizeMb`, `Reason`, `SupportedStorageMb` in struct `StorageEditionCapability` +- New field `Reason` in struct `StorageTierCapability` +- New field `TenantID` in struct `UserAssignedIdentity` + + ## 4.0.0-beta.5 (2024-04-26) ### Features Added diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/administrators_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/administrators_client.go index b7e47a4b60e1..bdc195fa499f 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/administrators_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/administrators_client.go @@ -46,7 +46,7 @@ func NewAdministratorsClient(subscriptionID string, credential azcore.TokenCrede // BeginCreate - Creates a new server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - objectID - Guid of the objectId for the administrator. @@ -74,7 +74,7 @@ func (client *AdministratorsClient) BeginCreate(ctx context.Context, resourceGro // Create - Creates a new server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *AdministratorsClient) create(ctx context.Context, resourceGroupName string, serverName string, objectID string, parameters ActiveDirectoryAdministratorAdd, options *AdministratorsClientBeginCreateOptions) (*http.Response, error) { var err error const operationName = "AdministratorsClient.BeginCreate" @@ -120,7 +120,7 @@ func (client *AdministratorsClient) createCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -132,7 +132,7 @@ func (client *AdministratorsClient) createCreateRequest(ctx context.Context, res // BeginDelete - Deletes an Active Directory Administrator associated with the server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - objectID - Guid of the objectId for the administrator. @@ -159,7 +159,7 @@ func (client *AdministratorsClient) BeginDelete(ctx context.Context, resourceGro // Delete - Deletes an Active Directory Administrator associated with the server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *AdministratorsClient) deleteOperation(ctx context.Context, resourceGroupName string, serverName string, objectID string, options *AdministratorsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "AdministratorsClient.BeginDelete" @@ -205,7 +205,7 @@ func (client *AdministratorsClient) deleteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -214,7 +214,7 @@ func (client *AdministratorsClient) deleteCreateRequest(ctx context.Context, res // Get - Gets information about a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - objectID - Guid of the objectId for the administrator. @@ -265,7 +265,7 @@ func (client *AdministratorsClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -282,7 +282,7 @@ func (client *AdministratorsClient) getHandleResponse(resp *http.Response) (Admi // NewListByServerPager - List all the AAD administrators for a given server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - AdministratorsClientListByServerOptions contains the optional parameters for the AdministratorsClient.NewListByServerPager @@ -330,7 +330,7 @@ func (client *AdministratorsClient) listByServerCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/administrators_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/administrators_client_example_test.go index 805867bd5774..13c1cbf95438 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/administrators_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/administrators_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/AdministratorAdd.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/AdministratorAdd.json func ExampleAdministratorsClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -58,7 +58,7 @@ func ExampleAdministratorsClient_BeginCreate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/AdministratorDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/AdministratorDelete.json func ExampleAdministratorsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -79,7 +79,7 @@ func ExampleAdministratorsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/AdministratorGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/AdministratorGet.json func ExampleAdministratorsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -110,7 +110,7 @@ func ExampleAdministratorsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/AdministratorsListByServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/AdministratorsListByServer.json func ExampleAdministratorsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/assets.json b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/assets.json new file mode 100644 index 000000000000..3f9b11a55da8 --- /dev/null +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/postgresql/armpostgresqlflexibleservers", + "Tag": "go/resourcemanager/postgresql/armpostgresqlflexibleservers_f5b18b3729" +} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/autorest.md b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/autorest.md index 7bf352b05e7e..9f8dfc50a958 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/autorest.md +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/autorest.md @@ -5,10 +5,10 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 4.0.0-beta.5 +module-version: 4.0.0 package-flexibleservers: true -tag: package-flexibleserver-2023-12-01-preview +tag: package-flexibleserver-2024-08-01 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/backups_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/backups_client.go index 7e1da582697d..c9bbf8de721a 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/backups_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/backups_client.go @@ -43,10 +43,172 @@ func NewBackupsClient(subscriptionID string, credential azcore.TokenCredential, return client, nil } +// BeginCreate - Create a specific backup for PostgreSQL flexible server. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-08-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - serverName - The name of the server. +// - backupName - The name of the backup. +// - options - BackupsClientBeginCreateOptions contains the optional parameters for the BackupsClient.BeginCreate method. +func (client *BackupsClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *BackupsClientBeginCreateOptions) (*runtime.Poller[BackupsClientCreateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.create(ctx, resourceGroupName, serverName, backupName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[BackupsClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[BackupsClientCreateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Create - Create a specific backup for PostgreSQL flexible server. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-08-01 +func (client *BackupsClient) create(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *BackupsClientBeginCreateOptions) (*http.Response, error) { + var err error + const operationName = "BackupsClient.BeginCreate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createCreateRequest(ctx, resourceGroupName, serverName, backupName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createCreateRequest creates the Create request. +func (client *BackupsClient) createCreateRequest(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *BackupsClientBeginCreateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if serverName == "" { + return nil, errors.New("parameter serverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{serverName}", url.PathEscape(serverName)) + if backupName == "" { + return nil, errors.New("parameter backupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{backupName}", url.PathEscape(backupName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-08-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginDelete - Deletes a specific backup. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-08-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - serverName - The name of the server. +// - backupName - The name of the backup. +// - options - BackupsClientBeginDeleteOptions contains the optional parameters for the BackupsClient.BeginDelete method. +func (client *BackupsClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *BackupsClientBeginDeleteOptions) (*runtime.Poller[BackupsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, serverName, backupName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[BackupsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[BackupsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - Deletes a specific backup. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-08-01 +func (client *BackupsClient) deleteOperation(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *BackupsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "BackupsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, serverName, backupName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *BackupsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *BackupsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if serverName == "" { + return nil, errors.New("parameter serverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{serverName}", url.PathEscape(serverName)) + if backupName == "" { + return nil, errors.New("parameter backupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{backupName}", url.PathEscape(backupName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-08-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + // Get - Get specific backup for a given server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - backupName - The name of the backup. @@ -97,7 +259,7 @@ func (client *BackupsClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -114,7 +276,7 @@ func (client *BackupsClient) getHandleResponse(resp *http.Response) (BackupsClie // NewListByServerPager - List all the backups for a given server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - BackupsClientListByServerOptions contains the optional parameters for the BackupsClient.NewListByServerPager @@ -162,7 +324,7 @@ func (client *BackupsClient) listByServerCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/backups_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/backups_client_example_test.go index d3b968d6f3ac..c8d05f7bd8c5 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/backups_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/backups_client_example_test.go @@ -17,7 +17,62 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/BackupGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupCreate.json +func ExampleBackupsClient_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.NewBackupsClient().BeginCreate(ctx, "TestGroup", "postgresqltestserver", "backup_20210615T160516", 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.ServerBackup = armpostgresqlflexibleservers.ServerBackup{ + // Name: to.Ptr("backup_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/backup_20210615T160516"), + // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ + // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginCustomerOnDemand), + // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T16:05:19.902Z"); return t}()), + // Source: to.Ptr("Customer Initiated"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupDelete.json +func ExampleBackupsClient_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.NewBackupsClient().BeginDelete(ctx, "TestGroup", "testserver", "backup_20210615T160516", 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/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupGet.json func ExampleBackupsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -47,7 +102,7 @@ func ExampleBackupsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/BackupListByServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/BackupListByServer.json func ExampleBackupsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailability_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailability_client.go index 47cd4a4a8185..ffae1a920e6c 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailability_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailability_client.go @@ -46,7 +46,7 @@ func NewCheckNameAvailabilityClient(subscriptionID string, credential azcore.Tok // Execute - Check the availability of name for resource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - nameAvailabilityRequest - The required parameters for checking if resource name is available. // - options - CheckNameAvailabilityClientExecuteOptions contains the optional parameters for the CheckNameAvailabilityClient.Execute // method. @@ -84,7 +84,7 @@ func (client *CheckNameAvailabilityClient) executeCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, nameAvailabilityRequest); err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailability_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailability_client_example_test.go index 57a05cca01d2..549366066b47 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailability_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailability_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/CheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/CheckNameAvailability.json func ExampleCheckNameAvailabilityClient_Execute() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailabilitywithlocation_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailabilitywithlocation_client.go index 7931137a0033..72db5538417f 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailabilitywithlocation_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailabilitywithlocation_client.go @@ -46,7 +46,7 @@ func NewCheckNameAvailabilityWithLocationClient(subscriptionID string, credentia // Execute - Check the availability of name for resource // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - locationName - The name of the location. // - nameAvailabilityRequest - The required parameters for checking if resource name is available. // - options - CheckNameAvailabilityWithLocationClientExecuteOptions contains the optional parameters for the CheckNameAvailabilityWithLocationClient.Execute @@ -89,7 +89,7 @@ func (client *CheckNameAvailabilityWithLocationClient) executeCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, nameAvailabilityRequest); err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailabilitywithlocation_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailabilitywithlocation_client_example_test.go index 8e5bc0cf003f..934843c137eb 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailabilitywithlocation_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/checknameavailabilitywithlocation_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/CheckNameAvailabilityLocationBased.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/CheckNameAvailabilityLocationBased.json func ExampleCheckNameAvailabilityWithLocationClient_Execute() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ci.yml b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ci.yml index 08af8a238ed7..8342f6b4bfff 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ci.yml +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ci.yml @@ -26,3 +26,4 @@ extends: parameters: IncludeRelease: true ServiceDirectory: 'resourcemanager/postgresql/armpostgresqlflexibleservers' + UsePipelineProxy: false diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/client_factory.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/client_factory.go index 29e9b49c170a..945457b2a39b 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/client_factory.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/client_factory.go @@ -145,9 +145,9 @@ func (c *ClientFactory) NewOperationsClient() *OperationsClient { } } -// NewPostgreSQLManagementClient creates a new instance of PostgreSQLManagementClient. -func (c *ClientFactory) NewPostgreSQLManagementClient() *PostgreSQLManagementClient { - return &PostgreSQLManagementClient{ +// NewPostgreSQLServerManagementClient creates a new instance of PostgreSQLServerManagementClient. +func (c *ClientFactory) NewPostgreSQLServerManagementClient() *PostgreSQLServerManagementClient { + return &PostgreSQLServerManagementClient{ internal: c.internal, } } @@ -176,14 +176,6 @@ func (c *ClientFactory) NewPrivateLinkResourcesClient() *PrivateLinkResourcesCli } } -// NewQuotaUsagesClient creates a new instance of QuotaUsagesClient. -func (c *ClientFactory) NewQuotaUsagesClient() *QuotaUsagesClient { - return &QuotaUsagesClient{ - subscriptionID: c.subscriptionID, - internal: c.internal, - } -} - // NewReplicasClient creates a new instance of ReplicasClient. func (c *ClientFactory) NewReplicasClient() *ReplicasClient { return &ReplicasClient{ diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/configurations_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/configurations_client.go index 8a48aafb23d0..d47a9de89975 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/configurations_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/configurations_client.go @@ -46,7 +46,7 @@ func NewConfigurationsClient(subscriptionID string, credential azcore.TokenCrede // Get - Gets information about a configuration of server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - configurationName - The name of the server configuration. @@ -97,7 +97,7 @@ func (client *ConfigurationsClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -114,7 +114,7 @@ func (client *ConfigurationsClient) getHandleResponse(resp *http.Response) (Conf // NewListByServerPager - List all the configurations in a given server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - ConfigurationsClientListByServerOptions contains the optional parameters for the ConfigurationsClient.NewListByServerPager @@ -162,7 +162,7 @@ func (client *ConfigurationsClient) listByServerCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -180,7 +180,7 @@ func (client *ConfigurationsClient) listByServerHandleResponse(resp *http.Respon // BeginPut - Updates a configuration of a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - configurationName - The name of the server configuration. @@ -207,7 +207,7 @@ func (client *ConfigurationsClient) BeginPut(ctx context.Context, resourceGroupN // Put - Updates a configuration of a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *ConfigurationsClient) put(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration, options *ConfigurationsClientBeginPutOptions) (*http.Response, error) { var err error const operationName = "ConfigurationsClient.BeginPut" @@ -253,7 +253,7 @@ func (client *ConfigurationsClient) putCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -265,7 +265,7 @@ func (client *ConfigurationsClient) putCreateRequest(ctx context.Context, resour // BeginUpdate - Updates a configuration of a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - configurationName - The name of the server configuration. @@ -293,7 +293,7 @@ func (client *ConfigurationsClient) BeginUpdate(ctx context.Context, resourceGro // Update - Updates a configuration of a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *ConfigurationsClient) update(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters ConfigurationForUpdate, options *ConfigurationsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "ConfigurationsClient.BeginUpdate" @@ -339,7 +339,7 @@ func (client *ConfigurationsClient) updateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/configurations_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/configurations_client_example_test.go index 2388fac0899c..39555ccfadbf 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/configurations_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/configurations_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ConfigurationListByServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ConfigurationListByServer.json func ExampleConfigurationsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1931,7 +1931,7 @@ func ExampleConfigurationsClient_NewListByServerPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ConfigurationGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ConfigurationGet.json func ExampleConfigurationsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1964,7 +1964,7 @@ func ExampleConfigurationsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ConfigurationUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ConfigurationUpdate.json func ExampleConfigurationsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/constants.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/constants.go index a8ffe852f9e5..d05a2ae998ce 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/constants.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/constants.go @@ -10,7 +10,7 @@ package armpostgresqlflexibleservers const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers" - moduleVersion = "v4.0.0-beta.5" + moduleVersion = "v4.0.0" ) // ActiveDirectoryAuthEnum - If Enabled, Azure Active Directory authentication is enabled. @@ -347,14 +347,16 @@ func PossibleHighAvailabilityModeValues() []HighAvailabilityMode { type IdentityType string const ( - IdentityTypeNone IdentityType = "None" - IdentityTypeUserAssigned IdentityType = "UserAssigned" + IdentityTypeNone IdentityType = "None" + IdentityTypeSystemAssigned IdentityType = "SystemAssigned" + IdentityTypeUserAssigned IdentityType = "UserAssigned" ) // PossibleIdentityTypeValues returns the possible values for the IdentityType const type. func PossibleIdentityTypeValues() []IdentityType { return []IdentityType{ IdentityTypeNone, + IdentityTypeSystemAssigned, IdentityTypeUserAssigned, } } @@ -598,12 +600,14 @@ func PossibleOperationOriginValues() []OperationOrigin { type Origin string const ( - OriginFull Origin = "Full" + OriginCustomerOnDemand Origin = "Customer On-Demand" + OriginFull Origin = "Full" ) // PossibleOriginValues returns the possible values for the Origin const type. func PossibleOriginValues() []Origin { return []Origin{ + OriginCustomerOnDemand, OriginFull, } } diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/databases_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/databases_client.go index 91d53969805c..782a0185e72b 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/databases_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/databases_client.go @@ -46,7 +46,7 @@ func NewDatabasesClient(subscriptionID string, credential azcore.TokenCredential // BeginCreate - Creates a new database or updates an existing database. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - databaseName - The name of the database. @@ -73,7 +73,7 @@ func (client *DatabasesClient) BeginCreate(ctx context.Context, resourceGroupNam // Create - Creates a new database or updates an existing database. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *DatabasesClient) create(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database, options *DatabasesClientBeginCreateOptions) (*http.Response, error) { var err error const operationName = "DatabasesClient.BeginCreate" @@ -119,7 +119,7 @@ func (client *DatabasesClient) createCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -131,7 +131,7 @@ func (client *DatabasesClient) createCreateRequest(ctx context.Context, resource // BeginDelete - Deletes a database. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - databaseName - The name of the database. @@ -157,7 +157,7 @@ func (client *DatabasesClient) BeginDelete(ctx context.Context, resourceGroupNam // Delete - Deletes a database. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *DatabasesClient) deleteOperation(ctx context.Context, resourceGroupName string, serverName string, databaseName string, options *DatabasesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "DatabasesClient.BeginDelete" @@ -203,7 +203,7 @@ func (client *DatabasesClient) deleteCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -212,7 +212,7 @@ func (client *DatabasesClient) deleteCreateRequest(ctx context.Context, resource // Get - Gets information about a database. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - databaseName - The name of the database. @@ -263,7 +263,7 @@ func (client *DatabasesClient) getCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -280,7 +280,7 @@ func (client *DatabasesClient) getHandleResponse(resp *http.Response) (Databases // NewListByServerPager - List all the databases in a given server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - DatabasesClientListByServerOptions contains the optional parameters for the DatabasesClient.NewListByServerPager @@ -328,7 +328,7 @@ func (client *DatabasesClient) listByServerCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/databases_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/databases_client_example_test.go index 2feb992e6a72..f834888d0b38 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/databases_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/databases_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/DatabaseCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/DatabaseCreate.json func ExampleDatabasesClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,7 +56,7 @@ func ExampleDatabasesClient_BeginCreate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/DatabaseDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/DatabaseDelete.json func ExampleDatabasesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -77,7 +77,7 @@ func ExampleDatabasesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/DatabaseGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/DatabaseGet.json func ExampleDatabasesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -106,7 +106,7 @@ func ExampleDatabasesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/DatabasesListByServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/DatabasesListByServer.json func ExampleDatabasesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/backups_server.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/backups_server.go index ffc1de34f60b..2434c9b83f0a 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/backups_server.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/backups_server.go @@ -24,6 +24,14 @@ import ( // BackupsServer is a fake server for instances of the armpostgresqlflexibleservers.BackupsClient type. type BackupsServer struct { + // BeginCreate is the fake for method BackupsClient.BeginCreate + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted + BeginCreate func(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *armpostgresqlflexibleservers.BackupsClientBeginCreateOptions) (resp azfake.PollerResponder[armpostgresqlflexibleservers.BackupsClientCreateResponse], errResp azfake.ErrorResponder) + + // BeginDelete is the fake for method BackupsClient.BeginDelete + // HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent + BeginDelete func(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *armpostgresqlflexibleservers.BackupsClientBeginDeleteOptions) (resp azfake.PollerResponder[armpostgresqlflexibleservers.BackupsClientDeleteResponse], errResp azfake.ErrorResponder) + // Get is the fake for method BackupsClient.Get // HTTP status codes to indicate success: http.StatusOK Get func(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *armpostgresqlflexibleservers.BackupsClientGetOptions) (resp azfake.Responder[armpostgresqlflexibleservers.BackupsClientGetResponse], errResp azfake.ErrorResponder) @@ -39,6 +47,8 @@ type BackupsServer struct { func NewBackupsServerTransport(srv *BackupsServer) *BackupsServerTransport { return &BackupsServerTransport{ srv: srv, + beginCreate: newTracker[azfake.PollerResponder[armpostgresqlflexibleservers.BackupsClientCreateResponse]](), + beginDelete: newTracker[azfake.PollerResponder[armpostgresqlflexibleservers.BackupsClientDeleteResponse]](), newListByServerPager: newTracker[azfake.PagerResponder[armpostgresqlflexibleservers.BackupsClientListByServerResponse]](), } } @@ -47,6 +57,8 @@ func NewBackupsServerTransport(srv *BackupsServer) *BackupsServerTransport { // Don't use this type directly, use NewBackupsServerTransport instead. type BackupsServerTransport struct { srv *BackupsServer + beginCreate *tracker[azfake.PollerResponder[armpostgresqlflexibleservers.BackupsClientCreateResponse]] + beginDelete *tracker[azfake.PollerResponder[armpostgresqlflexibleservers.BackupsClientDeleteResponse]] newListByServerPager *tracker[azfake.PagerResponder[armpostgresqlflexibleservers.BackupsClientListByServerResponse]] } @@ -62,6 +74,10 @@ func (b *BackupsServerTransport) Do(req *http.Request) (*http.Response, error) { var err error switch method { + case "BackupsClient.BeginCreate": + resp, err = b.dispatchBeginCreate(req) + case "BackupsClient.BeginDelete": + resp, err = b.dispatchBeginDelete(req) case "BackupsClient.Get": resp, err = b.dispatchGet(req) case "BackupsClient.NewListByServerPager": @@ -77,6 +93,102 @@ func (b *BackupsServerTransport) Do(req *http.Request) (*http.Response, error) { return resp, nil } +func (b *BackupsServerTransport) dispatchBeginCreate(req *http.Request) (*http.Response, error) { + if b.srv.BeginCreate == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginCreate not implemented")} + } + beginCreate := b.beginCreate.get(req) + if beginCreate == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DBforPostgreSQL/flexibleServers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/backups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + serverNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("serverName")]) + if err != nil { + return nil, err + } + backupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("backupName")]) + if err != nil { + return nil, err + } + respr, errRespr := b.srv.BeginCreate(req.Context(), resourceGroupNameParam, serverNameParam, backupNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginCreate = &respr + b.beginCreate.add(req, beginCreate) + } + + resp, err := server.PollerResponderNext(beginCreate, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusOK, http.StatusCreated, http.StatusAccepted}, resp.StatusCode) { + b.beginCreate.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated, http.StatusAccepted", resp.StatusCode)} + } + if !server.PollerResponderMore(beginCreate) { + b.beginCreate.remove(req) + } + + return resp, nil +} + +func (b *BackupsServerTransport) dispatchBeginDelete(req *http.Request) (*http.Response, error) { + if b.srv.BeginDelete == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginDelete not implemented")} + } + beginDelete := b.beginDelete.get(req) + if beginDelete == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DBforPostgreSQL/flexibleServers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/backups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + serverNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("serverName")]) + if err != nil { + return nil, err + } + backupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("backupName")]) + if err != nil { + return nil, err + } + respr, errRespr := b.srv.BeginDelete(req.Context(), resourceGroupNameParam, serverNameParam, backupNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginDelete = &respr + b.beginDelete.add(req, beginDelete) + } + + resp, err := server.PollerResponderNext(beginDelete, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + b.beginDelete.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + } + if !server.PollerResponderMore(beginDelete) { + b.beginDelete.remove(req) + } + + return resp, nil +} + func (b *BackupsServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { if b.srv.Get == nil { return nil, &nonRetriableError{errors.New("fake for method Get not implemented")} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/postgresqlmanagement_server.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/postgresqlservermanagement_server.go similarity index 68% rename from sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/postgresqlmanagement_server.go rename to sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/postgresqlservermanagement_server.go index bdb33a1752a8..d5405100ba16 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/postgresqlmanagement_server.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/postgresqlservermanagement_server.go @@ -21,28 +21,28 @@ import ( "regexp" ) -// PostgreSQLManagementServer is a fake server for instances of the armpostgresqlflexibleservers.PostgreSQLManagementClient type. -type PostgreSQLManagementServer struct { - // CheckMigrationNameAvailability is the fake for method PostgreSQLManagementClient.CheckMigrationNameAvailability +// PostgreSQLServerManagementServer is a fake server for instances of the armpostgresqlflexibleservers.PostgreSQLServerManagementClient type. +type PostgreSQLServerManagementServer struct { + // CheckMigrationNameAvailability is the fake for method PostgreSQLServerManagementClient.CheckMigrationNameAvailability // HTTP status codes to indicate success: http.StatusOK - CheckMigrationNameAvailability func(ctx context.Context, subscriptionID string, resourceGroupName string, targetDbServerName string, parameters armpostgresqlflexibleservers.MigrationNameAvailabilityResource, options *armpostgresqlflexibleservers.PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions) (resp azfake.Responder[armpostgresqlflexibleservers.PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse], errResp azfake.ErrorResponder) + CheckMigrationNameAvailability func(ctx context.Context, subscriptionID string, resourceGroupName string, targetDbServerName string, parameters armpostgresqlflexibleservers.MigrationNameAvailabilityResource, options *armpostgresqlflexibleservers.PostgreSQLServerManagementClientCheckMigrationNameAvailabilityOptions) (resp azfake.Responder[armpostgresqlflexibleservers.PostgreSQLServerManagementClientCheckMigrationNameAvailabilityResponse], errResp azfake.ErrorResponder) } -// NewPostgreSQLManagementServerTransport creates a new instance of PostgreSQLManagementServerTransport with the provided implementation. -// The returned PostgreSQLManagementServerTransport instance is connected to an instance of armpostgresqlflexibleservers.PostgreSQLManagementClient via the +// NewPostgreSQLServerManagementServerTransport creates a new instance of PostgreSQLServerManagementServerTransport with the provided implementation. +// The returned PostgreSQLServerManagementServerTransport instance is connected to an instance of armpostgresqlflexibleservers.PostgreSQLServerManagementClient via the // azcore.ClientOptions.Transporter field in the client's constructor parameters. -func NewPostgreSQLManagementServerTransport(srv *PostgreSQLManagementServer) *PostgreSQLManagementServerTransport { - return &PostgreSQLManagementServerTransport{srv: srv} +func NewPostgreSQLServerManagementServerTransport(srv *PostgreSQLServerManagementServer) *PostgreSQLServerManagementServerTransport { + return &PostgreSQLServerManagementServerTransport{srv: srv} } -// PostgreSQLManagementServerTransport connects instances of armpostgresqlflexibleservers.PostgreSQLManagementClient to instances of PostgreSQLManagementServer. -// Don't use this type directly, use NewPostgreSQLManagementServerTransport instead. -type PostgreSQLManagementServerTransport struct { - srv *PostgreSQLManagementServer +// PostgreSQLServerManagementServerTransport connects instances of armpostgresqlflexibleservers.PostgreSQLServerManagementClient to instances of PostgreSQLServerManagementServer. +// Don't use this type directly, use NewPostgreSQLServerManagementServerTransport instead. +type PostgreSQLServerManagementServerTransport struct { + srv *PostgreSQLServerManagementServer } -// Do implements the policy.Transporter interface for PostgreSQLManagementServerTransport. -func (p *PostgreSQLManagementServerTransport) Do(req *http.Request) (*http.Response, error) { +// Do implements the policy.Transporter interface for PostgreSQLServerManagementServerTransport. +func (p *PostgreSQLServerManagementServerTransport) Do(req *http.Request) (*http.Response, error) { rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) method, ok := rawMethod.(string) if !ok { @@ -53,7 +53,7 @@ func (p *PostgreSQLManagementServerTransport) Do(req *http.Request) (*http.Respo var err error switch method { - case "PostgreSQLManagementClient.CheckMigrationNameAvailability": + case "PostgreSQLServerManagementClient.CheckMigrationNameAvailability": resp, err = p.dispatchCheckMigrationNameAvailability(req) default: err = fmt.Errorf("unhandled API %s", method) @@ -66,7 +66,7 @@ func (p *PostgreSQLManagementServerTransport) Do(req *http.Request) (*http.Respo return resp, nil } -func (p *PostgreSQLManagementServerTransport) dispatchCheckMigrationNameAvailability(req *http.Request) (*http.Response, error) { +func (p *PostgreSQLServerManagementServerTransport) dispatchCheckMigrationNameAvailability(req *http.Request) (*http.Response, error) { if p.srv.CheckMigrationNameAvailability == nil { return nil, &nonRetriableError{errors.New("fake for method CheckMigrationNameAvailability not implemented")} } diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/quotausages_server.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/quotausages_server.go deleted file mode 100644 index 67c9e3810b25..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/quotausages_server.go +++ /dev/null @@ -1,108 +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. DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package fake - -import ( - "errors" - "fmt" - azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" - "net/http" - "net/url" - "regexp" -) - -// QuotaUsagesServer is a fake server for instances of the armpostgresqlflexibleservers.QuotaUsagesClient type. -type QuotaUsagesServer struct { - // NewListPager is the fake for method QuotaUsagesClient.NewListPager - // HTTP status codes to indicate success: http.StatusOK - NewListPager func(locationName string, options *armpostgresqlflexibleservers.QuotaUsagesClientListOptions) (resp azfake.PagerResponder[armpostgresqlflexibleservers.QuotaUsagesClientListResponse]) -} - -// NewQuotaUsagesServerTransport creates a new instance of QuotaUsagesServerTransport with the provided implementation. -// The returned QuotaUsagesServerTransport instance is connected to an instance of armpostgresqlflexibleservers.QuotaUsagesClient via the -// azcore.ClientOptions.Transporter field in the client's constructor parameters. -func NewQuotaUsagesServerTransport(srv *QuotaUsagesServer) *QuotaUsagesServerTransport { - return &QuotaUsagesServerTransport{ - srv: srv, - newListPager: newTracker[azfake.PagerResponder[armpostgresqlflexibleservers.QuotaUsagesClientListResponse]](), - } -} - -// QuotaUsagesServerTransport connects instances of armpostgresqlflexibleservers.QuotaUsagesClient to instances of QuotaUsagesServer. -// Don't use this type directly, use NewQuotaUsagesServerTransport instead. -type QuotaUsagesServerTransport struct { - srv *QuotaUsagesServer - newListPager *tracker[azfake.PagerResponder[armpostgresqlflexibleservers.QuotaUsagesClientListResponse]] -} - -// Do implements the policy.Transporter interface for QuotaUsagesServerTransport. -func (q *QuotaUsagesServerTransport) Do(req *http.Request) (*http.Response, error) { - rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) - method, ok := rawMethod.(string) - if !ok { - return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} - } - - var resp *http.Response - var err error - - switch method { - case "QuotaUsagesClient.NewListPager": - resp, err = q.dispatchNewListPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } - - if err != nil { - return nil, err - } - - return resp, nil -} - -func (q *QuotaUsagesServerTransport) dispatchNewListPager(req *http.Request) (*http.Response, error) { - if q.srv.NewListPager == nil { - return nil, &nonRetriableError{errors.New("fake for method NewListPager not implemented")} - } - newListPager := q.newListPager.get(req) - if newListPager == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DBforPostgreSQL/locations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceType/flexibleServers/usages` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - locationNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("locationName")]) - if err != nil { - return nil, err - } - resp := q.srv.NewListPager(locationNameParam, nil) - newListPager = &resp - q.newListPager.add(req, newListPager) - server.PagerResponderInjectNextLinks(newListPager, req, func(page *armpostgresqlflexibleservers.QuotaUsagesClientListResponse, createLink func() string) { - page.NextLink = to.Ptr(createLink()) - }) - } - resp, err := server.PagerResponderNext(newListPager, req) - if err != nil { - return nil, err - } - if !contains([]int{http.StatusOK}, resp.StatusCode) { - q.newListPager.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} - } - if !server.PagerResponderMore(newListPager) { - q.newListPager.remove(req) - } - return resp, nil -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/server_factory.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/server_factory.go index d2aac137a47a..2afb2a05c9d8 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/server_factory.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/fake/server_factory.go @@ -33,11 +33,10 @@ type ServerFactory struct { LtrBackupOperationsServer LtrBackupOperationsServer MigrationsServer MigrationsServer OperationsServer OperationsServer - PostgreSQLManagementServer PostgreSQLManagementServer + PostgreSQLServerManagementServer PostgreSQLServerManagementServer PrivateEndpointConnectionServer PrivateEndpointConnectionServer PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer PrivateLinkResourcesServer PrivateLinkResourcesServer - QuotaUsagesServer QuotaUsagesServer ReplicasServer ReplicasServer ServerCapabilitiesServer ServerCapabilitiesServer ServerThreatProtectionSettingsServer ServerThreatProtectionSettingsServer @@ -74,11 +73,10 @@ type ServerFactoryTransport struct { trLtrBackupOperationsServer *LtrBackupOperationsServerTransport trMigrationsServer *MigrationsServerTransport trOperationsServer *OperationsServerTransport - trPostgreSQLManagementServer *PostgreSQLManagementServerTransport + trPostgreSQLServerManagementServer *PostgreSQLServerManagementServerTransport trPrivateEndpointConnectionServer *PrivateEndpointConnectionServerTransport trPrivateEndpointConnectionsServer *PrivateEndpointConnectionsServerTransport trPrivateLinkResourcesServer *PrivateLinkResourcesServerTransport - trQuotaUsagesServer *QuotaUsagesServerTransport trReplicasServer *ReplicasServerTransport trServerCapabilitiesServer *ServerCapabilitiesServerTransport trServerThreatProtectionSettingsServer *ServerThreatProtectionSettingsServerTransport @@ -160,11 +158,11 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { case "OperationsClient": initServer(s, &s.trOperationsServer, func() *OperationsServerTransport { return NewOperationsServerTransport(&s.srv.OperationsServer) }) resp, err = s.trOperationsServer.Do(req) - case "PostgreSQLManagementClient": - initServer(s, &s.trPostgreSQLManagementServer, func() *PostgreSQLManagementServerTransport { - return NewPostgreSQLManagementServerTransport(&s.srv.PostgreSQLManagementServer) + case "PostgreSQLServerManagementClient": + initServer(s, &s.trPostgreSQLServerManagementServer, func() *PostgreSQLServerManagementServerTransport { + return NewPostgreSQLServerManagementServerTransport(&s.srv.PostgreSQLServerManagementServer) }) - resp, err = s.trPostgreSQLManagementServer.Do(req) + resp, err = s.trPostgreSQLServerManagementServer.Do(req) case "PrivateEndpointConnectionClient": initServer(s, &s.trPrivateEndpointConnectionServer, func() *PrivateEndpointConnectionServerTransport { return NewPrivateEndpointConnectionServerTransport(&s.srv.PrivateEndpointConnectionServer) @@ -180,9 +178,6 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { return NewPrivateLinkResourcesServerTransport(&s.srv.PrivateLinkResourcesServer) }) resp, err = s.trPrivateLinkResourcesServer.Do(req) - case "QuotaUsagesClient": - initServer(s, &s.trQuotaUsagesServer, func() *QuotaUsagesServerTransport { return NewQuotaUsagesServerTransport(&s.srv.QuotaUsagesServer) }) - resp, err = s.trQuotaUsagesServer.Do(req) case "ReplicasClient": initServer(s, &s.trReplicasServer, func() *ReplicasServerTransport { return NewReplicasServerTransport(&s.srv.ReplicasServer) }) resp, err = s.trReplicasServer.Do(req) diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/firewallrules_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/firewallrules_client.go index 76d49a313054..aa79e452ac9b 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/firewallrules_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/firewallrules_client.go @@ -46,7 +46,7 @@ func NewFirewallRulesClient(subscriptionID string, credential azcore.TokenCreden // BeginCreateOrUpdate - Creates a new firewall rule or updates an existing firewall rule. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - firewallRuleName - The name of the server firewall rule. @@ -74,7 +74,7 @@ func (client *FirewallRulesClient) BeginCreateOrUpdate(ctx context.Context, reso // CreateOrUpdate - Creates a new firewall rule or updates an existing firewall rule. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *FirewallRulesClient) createOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule, options *FirewallRulesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "FirewallRulesClient.BeginCreateOrUpdate" @@ -120,7 +120,7 @@ func (client *FirewallRulesClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -132,7 +132,7 @@ func (client *FirewallRulesClient) createOrUpdateCreateRequest(ctx context.Conte // BeginDelete - Deletes a PostgreSQL server firewall rule. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - firewallRuleName - The name of the server firewall rule. @@ -159,7 +159,7 @@ func (client *FirewallRulesClient) BeginDelete(ctx context.Context, resourceGrou // Delete - Deletes a PostgreSQL server firewall rule. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *FirewallRulesClient) deleteOperation(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, options *FirewallRulesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "FirewallRulesClient.BeginDelete" @@ -205,7 +205,7 @@ func (client *FirewallRulesClient) deleteCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -214,7 +214,7 @@ func (client *FirewallRulesClient) deleteCreateRequest(ctx context.Context, reso // Get - List all the firewall rules in a given server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - firewallRuleName - The name of the server firewall rule. @@ -265,7 +265,7 @@ func (client *FirewallRulesClient) getCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -282,7 +282,7 @@ func (client *FirewallRulesClient) getHandleResponse(resp *http.Response) (Firew // NewListByServerPager - List all the firewall rules in a given PostgreSQL server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - FirewallRulesClientListByServerOptions contains the optional parameters for the FirewallRulesClient.NewListByServerPager @@ -330,7 +330,7 @@ func (client *FirewallRulesClient) listByServerCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/firewallrules_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/firewallrules_client_example_test.go index aeb0a869d4bb..3957aa7bf493 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/firewallrules_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/firewallrules_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/FirewallRuleCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/FirewallRuleCreate.json func ExampleFirewallRulesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,7 +56,7 @@ func ExampleFirewallRulesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/FirewallRuleDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/FirewallRuleDelete.json func ExampleFirewallRulesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -77,7 +77,7 @@ func ExampleFirewallRulesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/FirewallRuleGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/FirewallRuleGet.json func ExampleFirewallRulesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -106,7 +106,7 @@ func ExampleFirewallRulesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/FirewallRuleListByServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/FirewallRuleListByServer.json func ExampleFirewallRulesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/flexibleserver_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/flexibleserver_client.go index 33e59f5ce068..8df43b9f6213 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/flexibleserver_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/flexibleserver_client.go @@ -46,7 +46,7 @@ func NewFlexibleServerClient(subscriptionID string, credential azcore.TokenCrede // BeginStartLtrBackup - Start the Long Term Retention Backup operation // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - parameters - Request body for operation @@ -73,7 +73,7 @@ func (client *FlexibleServerClient) BeginStartLtrBackup(ctx context.Context, res // StartLtrBackup - Start the Long Term Retention Backup operation // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *FlexibleServerClient) startLtrBackup(ctx context.Context, resourceGroupName string, serverName string, parameters LtrBackupRequest, options *FlexibleServerClientBeginStartLtrBackupOptions) (*http.Response, error) { var err error const operationName = "FlexibleServerClient.BeginStartLtrBackup" @@ -115,7 +115,7 @@ func (client *FlexibleServerClient) startLtrBackupCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -128,7 +128,7 @@ func (client *FlexibleServerClient) startLtrBackupCreateRequest(ctx context.Cont // backup operation to succeed. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - parameters - Request body for operation @@ -176,7 +176,7 @@ func (client *FlexibleServerClient) triggerLtrPreBackupCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/flexibleserver_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/flexibleserver_client_example_test.go index 7ea34c59d3ad..188852308a8f 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/flexibleserver_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/flexibleserver_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/LongTermRetentionPreBackup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/LongTermRetentionPreBackup.json func ExampleFlexibleServerClient_TriggerLtrPreBackup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -47,7 +47,7 @@ func ExampleFlexibleServerClient_TriggerLtrPreBackup() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/LongTermRetentionBackup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/LongTermRetentionBackup.json func ExampleFlexibleServerClient_BeginStartLtrBackup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/getprivatednszonesuffix_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/getprivatednszonesuffix_client.go index 2706fe5b2308..e3178c9f1e52 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/getprivatednszonesuffix_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/getprivatednszonesuffix_client.go @@ -40,7 +40,7 @@ func NewGetPrivateDNSZoneSuffixClient(credential azcore.TokenCredential, options // Execute - Get private DNS zone suffix in the cloud // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - options - GetPrivateDNSZoneSuffixClientExecuteOptions contains the optional parameters for the GetPrivateDNSZoneSuffixClient.Execute // method. func (client *GetPrivateDNSZoneSuffixClient) Execute(ctx context.Context, options *GetPrivateDNSZoneSuffixClientExecuteOptions) (GetPrivateDNSZoneSuffixClientExecuteResponse, error) { @@ -73,7 +73,7 @@ func (client *GetPrivateDNSZoneSuffixClient) executeCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/getprivatednszonesuffix_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/getprivatednszonesuffix_client_example_test.go index d80bd2e864e7..47a23cd0f2cc 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/getprivatednszonesuffix_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/getprivatednszonesuffix_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/GetPrivateDnsZoneSuffix.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/GetPrivateDnsZoneSuffix.json func ExampleGetPrivateDNSZoneSuffixClient_Execute() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.mod b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.mod index 621642451a31..76c5c39df9c5 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.mod +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.mod @@ -4,16 +4,25 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v1.3.2 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.1.0 + github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect + github.com/stretchr/testify v1.10.0 golang.org/x/crypto v0.31.0 // indirect golang.org/x/net v0.33.0 // indirect golang.org/x/sys v0.28.0 // indirect diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.sum b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.sum index 9620a8f197a3..d9081d776c9b 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.sum +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/go.sum @@ -1,28 +1,34 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 h1:JZg6HRh6W6U4OLl6lk7BZ7BLisIzM9dG1R50zUk9C/M= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0/go.mod h1:YL1xnZ6QejvQHWJrX/AvhFl4WW4rqHVoKspWNVwFk0M= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0 h1:B/dfvscEQtew9dVuoxqxrUKKv8Ih2f55PydknDamU+g= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0/go.mod h1:fiPSssYvltE08HJchL04dOy+RD4hgrjph0cwGGMntdI= -github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.0 h1:+m0M/LFxN43KvULkDNfdXOgrjtg6UYJPFBJyuEcRCAw= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 h1:tfLQ34V6F7tVSwoTf/4lH5sE0o6eCJuNDTmH09nDpbc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0/go.mod h1:9kIvujWAA58nmPmWB1m23fyWic1kYZMxD9CxaWn4Qpg= github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 h1:ywEEhmNahHBihViHepv3xPBn1663uRv2t2q/ESv9seY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod h1:iZDifYGJTIgIIkYRNWPENUnqx6bJ2xnSDFI2tjwZNuY= -github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJTmL004Abzc5wDB5VtZG2PJk5ndYDgVacGqfirKxjM= -github.com/AzureAD/microsoft-authentication-library-for-go v1.3.2 h1:kYRSnvJju5gYVyhkij+RTJ/VR6QIUaCfWeaFm2ycsjQ= -github.com/AzureAD/microsoft-authentication-library-for-go v1.3.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.1.0 h1:2qsIIvxVT+uE6yrNldntJKlLRgxGbZ85kgtz5SNBhMw= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.1.0/go.mod h1:AW8VEadnhw9xox+VaVd9sP7NjzOAnaZBLRH6Tq3cJ38= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 h1:Dd+RhdJn0OTtVGaeDLZpcumkIVCtA/3/Fo42+eoYvVM= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= +github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= +github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6 h1:IsMZxCuZqKuao2vNdfD82fjjgPLfyHLpR41Z88viRWs= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 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-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/redis/go-redis/v9 v9.6.1 h1:HHDteefn6ZkTtY5fGUE8tj8uy85AHk6zP7CpzIAM0y4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= @@ -32,4 +38,7 @@ golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/locationbasedcapabilities_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/locationbasedcapabilities_client.go index f22c3439a214..6f43bd57cf99 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/locationbasedcapabilities_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/locationbasedcapabilities_client.go @@ -45,7 +45,7 @@ func NewLocationBasedCapabilitiesClient(subscriptionID string, credential azcore // NewExecutePager - Get capabilities at specified location in a given subscription. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - locationName - The name of the location. // - options - LocationBasedCapabilitiesClientExecuteOptions contains the optional parameters for the LocationBasedCapabilitiesClient.NewExecutePager // method. @@ -88,7 +88,7 @@ func (client *LocationBasedCapabilitiesClient) executeCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/locationbasedcapabilities_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/locationbasedcapabilities_client_example_test.go index 4c6732511aa8..a99d9e851a40 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/locationbasedcapabilities_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/locationbasedcapabilities_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/CapabilitiesByLocation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/CapabilitiesByLocation.json func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -28,7 +28,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := clientFactory.NewLocationBasedCapabilitiesClient().NewExecutePager("westus", nil) + pager := clientFactory.NewLocationBasedCapabilitiesClient().NewExecutePager("eastus", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { @@ -45,7 +45,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // Name: to.Ptr("FlexibleServerCapabilities"), // FastProvisioningSupported: to.Ptr(armpostgresqlflexibleservers.FastProvisioningSupportedEnumEnabled), // GeoBackupSupported: to.Ptr(armpostgresqlflexibleservers.GeoBackupSupportedEnumEnabled), - // OnlineResizeSupported: to.Ptr(armpostgresqlflexibleservers.OnlineResizeSupportedEnumDisabled), + // OnlineResizeSupported: to.Ptr(armpostgresqlflexibleservers.OnlineResizeSupportedEnumEnabled), // Restricted: to.Ptr(armpostgresqlflexibleservers.RestrictedEnumDisabled), // StorageAutoGrowthSupported: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowthSupportedEnumEnabled), // SupportedFastProvisioningEditions: []*armpostgresqlflexibleservers.FastProvisioningEditionCapability{ @@ -120,7 +120,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedTier: to.Ptr("MemoryOptimized"), // }, // { - // ServerCount: to.Ptr[int32](23), + // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), @@ -225,8 +225,8 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](1700), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](1920), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -238,8 +238,8 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](2400), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](2880), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -251,8 +251,8 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](3100), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](4320), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -264,8 +264,8 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](3800), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](4320), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -277,8 +277,8 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](4300), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](4320), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -290,8 +290,8 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](5000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](4320), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -487,6 +487,16 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // }, // { // DefaultIopsTier: to.Ptr("P50"), + // StorageSizeMb: to.Ptr[int64](4193280), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ @@ -540,7 +550,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // }, // { // Name: to.Ptr("ManagedDiskV2"), - // DefaultStorageSizeMb: to.Ptr[int64](65536), + // DefaultStorageSizeMb: to.Ptr[int64](32768), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), @@ -553,14 +563,14 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](80000), - // SupportedMaximumThroughput: to.Ptr[int32](750), + // SupportedMaximumThroughput: to.Ptr[int32](1200), // SupportedThroughput: to.Ptr[int32](125), // }}, // }}, // }, // { // Name: to.Ptr("GeneralPurpose"), - // DefaultSKUName: to.Ptr("Standard_D2ds_v4"), + // DefaultSKUName: to.Ptr("Standard_D4ads_v5"), // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), @@ -606,7 +616,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -619,7 +629,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -632,7 +642,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -645,7 +655,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -697,7 +707,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -710,7 +720,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -723,7 +733,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -736,7 +746,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -788,7 +798,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -801,7 +811,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -814,7 +824,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -827,7 +837,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -840,285 +850,21 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](96), - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // DefaultStorageSizeMb: to.Ptr[int64](65536), - // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ - // { - // DefaultIopsTier: to.Ptr("P4"), - // StorageSizeMb: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int32](120), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int32](120), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int32](240), - // }, - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P6"), - // StorageSizeMb: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int32](240), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int32](240), - // }, - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P10"), - // StorageSizeMb: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int32](500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P15"), - // StorageSizeMb: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int32](1100), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P20"), - // StorageSizeMb: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int32](2300), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P30"), - // StorageSizeMb: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int32](5000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P40"), - // StorageSizeMb: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int32](7500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P50"), - // StorageSizeMb: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int32](7500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P60"), - // StorageSizeMb: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int32](16000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P60"), - // Iops: to.Ptr[int32](16000), - // }, - // { - // Name: to.Ptr("P70"), - // Iops: to.Ptr[int32](18000), - // }, - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P70"), - // StorageSizeMb: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int32](18000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P70"), - // Iops: to.Ptr[int32](18000), - // }, - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P80"), - // StorageSizeMb: to.Ptr[int64](33553408), - // SupportedIops: to.Ptr[int32](20000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }}, // }, // { - // Name: to.Ptr("ManagedDiskV2"), - // DefaultStorageSizeMb: to.Ptr[int64](65536), - // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ - // { - // DefaultIopsTier: to.Ptr("None"), - // MaximumStorageSizeMb: to.Ptr[int64](67108864), - // StorageSizeMb: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int32](3000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("None"), - // Iops: to.Ptr[int32](0), - // }}, - // SupportedMaximumIops: to.Ptr[int32](80000), - // SupportedMaximumThroughput: to.Ptr[int32](750), - // SupportedThroughput: to.Ptr[int32](125), - // }}, - // }}, - // }, - // { - // Name: to.Ptr("MemoryOptimized"), - // DefaultSKUName: to.Ptr("Standard_E2ds_v4"), - // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), + // Name: to.Ptr("Standard_D2ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](3200), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedIops: to.Ptr[int32](3750), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1126,12 +872,12 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](2), // }, // { - // Name: to.Ptr("Standard_E4s_v3"), + // Name: to.Ptr("Standard_D4ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1139,12 +885,12 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](4), // }, // { - // Name: to.Ptr("Standard_E8s_v3"), + // Name: to.Ptr("Standard_D8ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1152,12 +898,12 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](8), // }, // { - // Name: to.Ptr("Standard_E16s_v3"), + // Name: to.Ptr("Standard_D16ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedIops: to.Ptr[int32](25600), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1165,12 +911,12 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](16), // }, // { - // Name: to.Ptr("Standard_E32s_v3"), + // Name: to.Ptr("Standard_D32ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedIops: to.Ptr[int32](51200), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1178,12 +924,12 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](32), // }, // { - // Name: to.Ptr("Standard_E48s_v3"), + // Name: to.Ptr("Standard_D48ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedIops: to.Ptr[int32](76800), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1191,12 +937,12 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](48), // }, // { - // Name: to.Ptr("Standard_E64s_v3"), + // Name: to.Ptr("Standard_D64ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](6912), + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1204,76 +950,350 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](64), // }, // { - // Name: to.Ptr("Standard_E2ds_v4"), + // Name: to.Ptr("Standard_D96ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](3200), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](2), + // VCores: to.Ptr[int32](96), + // }}, + // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ + // { + // Name: to.Ptr("ManagedDisk"), + // DefaultStorageSizeMb: to.Ptr[int64](65536), + // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ + // { + // DefaultIopsTier: to.Ptr("P4"), + // StorageSizeMb: to.Ptr[int64](32768), + // SupportedIops: to.Ptr[int32](120), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P4"), + // Iops: to.Ptr[int32](120), + // }, + // { + // Name: to.Ptr("P6"), + // Iops: to.Ptr[int32](240), + // }, + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P6"), + // StorageSizeMb: to.Ptr[int64](65536), + // SupportedIops: to.Ptr[int32](240), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P6"), + // Iops: to.Ptr[int32](240), + // }, + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P10"), + // StorageSizeMb: to.Ptr[int64](131072), + // SupportedIops: to.Ptr[int32](500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P15"), + // StorageSizeMb: to.Ptr[int64](262144), + // SupportedIops: to.Ptr[int32](1100), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P20"), + // StorageSizeMb: to.Ptr[int64](524288), + // SupportedIops: to.Ptr[int32](2300), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P30"), + // StorageSizeMb: to.Ptr[int64](1048576), + // SupportedIops: to.Ptr[int32](5000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P40"), + // StorageSizeMb: to.Ptr[int64](2097152), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P50"), + // StorageSizeMb: to.Ptr[int64](4193280), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P50"), + // StorageSizeMb: to.Ptr[int64](4194304), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P60"), + // StorageSizeMb: to.Ptr[int64](8388608), + // SupportedIops: to.Ptr[int32](16000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P60"), + // Iops: to.Ptr[int32](16000), + // }, + // { + // Name: to.Ptr("P70"), + // Iops: to.Ptr[int32](18000), + // }, + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P70"), + // StorageSizeMb: to.Ptr[int64](16777216), + // SupportedIops: to.Ptr[int32](18000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P70"), + // Iops: to.Ptr[int32](18000), + // }, + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P80"), + // StorageSizeMb: to.Ptr[int64](33553408), + // SupportedIops: to.Ptr[int32](20000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }}, // }, // { - // Name: to.Ptr("Standard_E4ds_v4"), + // Name: to.Ptr("ManagedDiskV2"), + // DefaultStorageSizeMb: to.Ptr[int64](65536), + // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ + // { + // DefaultIopsTier: to.Ptr("None"), + // MaximumStorageSizeMb: to.Ptr[int64](67108864), + // StorageSizeMb: to.Ptr[int64](32768), + // SupportedIops: to.Ptr[int32](3000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("None"), + // Iops: to.Ptr[int32](0), + // }}, + // SupportedMaximumIops: to.Ptr[int32](80000), + // SupportedMaximumThroughput: to.Ptr[int32](1200), + // SupportedThroughput: to.Ptr[int32](125), + // }}, + // }}, + // }, + // { + // Name: to.Ptr("MemoryOptimized"), + // DefaultSKUName: to.Ptr("Standard_E4ads_v5"), + // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ + // { + // Name: to.Ptr("Standard_E2s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](6400), + // SupportedIops: to.Ptr[int32](3200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](4), + // VCores: to.Ptr[int32](2), // }, // { - // Name: to.Ptr("Standard_E8ds_v4"), + // Name: to.Ptr("Standard_E4s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](12800), + // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](8), + // VCores: to.Ptr[int32](4), // }, // { - // Name: to.Ptr("Standard_E16ds_v4"), + // Name: to.Ptr("Standard_E8s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](16), + // VCores: to.Ptr[int32](8), // }, // { - // Name: to.Ptr("Standard_E20ds_v4"), + // Name: to.Ptr("Standard_E16s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](20), + // VCores: to.Ptr[int32](16), // }, // { - // Name: to.Ptr("Standard_E32ds_v4"), + // Name: to.Ptr("Standard_E32s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](32000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), @@ -1282,11 +1302,11 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](32), // }, // { - // Name: to.Ptr("Standard_E48ds_v4"), + // Name: to.Ptr("Standard_E48s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), @@ -1295,11 +1315,11 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](48), // }, // { - // Name: to.Ptr("Standard_E64ds_v4"), + // Name: to.Ptr("Standard_E64s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](6912), // SupportedZones: []*string{ // to.Ptr("1"), @@ -1308,7 +1328,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](64), // }, // { - // Name: to.Ptr("Standard_E2ads_v5"), + // Name: to.Ptr("Standard_E2ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, @@ -1321,7 +1341,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](2), // }, // { - // Name: to.Ptr("Standard_E4ads_v5"), + // Name: to.Ptr("Standard_E4ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, @@ -1334,7 +1354,7 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](4), // }, // { - // Name: to.Ptr("Standard_E8ads_v5"), + // Name: to.Ptr("Standard_E8ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, @@ -1347,11 +1367,11 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](8), // }, // { - // Name: to.Ptr("Standard_E16ads_v5"), + // Name: to.Ptr("Standard_E16ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), @@ -1360,347 +1380,605 @@ func ExampleLocationBasedCapabilitiesClient_NewExecutePager() { // VCores: to.Ptr[int32](16), // }, // { - // Name: to.Ptr("Standard_E32ads_v5"), + // Name: to.Ptr("Standard_E20ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](32000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](32), + // VCores: to.Ptr[int32](20), // }, // { - // Name: to.Ptr("Standard_E48ads_v5"), + // Name: to.Ptr("Standard_E32ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](48), + // VCores: to.Ptr[int32](32), // }, // { - // Name: to.Ptr("Standard_E64ads_v5"), + // Name: to.Ptr("Standard_E48ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](64), + // VCores: to.Ptr[int32](48), // }, // { - // Name: to.Ptr("Standard_E96ads_v5"), + // Name: to.Ptr("Standard_E64ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](7168), + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](6912), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](96), - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ + // VCores: to.Ptr[int32](64), + // }, // { - // Name: to.Ptr("ManagedDisk"), - // DefaultStorageSizeMb: to.Ptr[int64](131072), - // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ - // { - // DefaultIopsTier: to.Ptr("P4"), - // StorageSizeMb: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int32](120), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int32](120), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int32](240), - // }, - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P6"), - // StorageSizeMb: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int32](240), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int32](240), - // }, - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P10"), - // StorageSizeMb: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int32](500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P15"), - // StorageSizeMb: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int32](1100), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P20"), - // StorageSizeMb: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int32](2300), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P30"), - // StorageSizeMb: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int32](5000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, + // Name: to.Ptr("Standard_E2ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](3750), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](2), // }, // { - // DefaultIopsTier: to.Ptr("P40"), - // StorageSizeMb: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int32](7500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), + // Name: to.Ptr("Standard_E4ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](6400), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](4), // }, // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P50"), - // StorageSizeMb: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int32](7500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P60"), - // StorageSizeMb: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int32](16000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P60"), - // Iops: to.Ptr[int32](16000), - // }, - // { - // Name: to.Ptr("P70"), - // Iops: to.Ptr[int32](18000), - // }, - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P70"), - // StorageSizeMb: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int32](18000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P70"), - // Iops: to.Ptr[int32](18000), - // }, - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P80"), - // StorageSizeMb: to.Ptr[int64](33553408), - // SupportedIops: to.Ptr[int32](20000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }}, - // }, - // { - // Name: to.Ptr("ManagedDiskV2"), - // DefaultStorageSizeMb: to.Ptr[int64](65536), - // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ - // { - // DefaultIopsTier: to.Ptr("None"), - // MaximumStorageSizeMb: to.Ptr[int64](67108864), - // StorageSizeMb: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int32](3000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("None"), - // Iops: to.Ptr[int32](0), - // }}, - // SupportedMaximumIops: to.Ptr[int32](80000), - // SupportedMaximumThroughput: to.Ptr[int32](750), - // SupportedThroughput: to.Ptr[int32](125), - // }}, - // }}, - // }}, - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14"), - // to.Ptr("15")}, - // }, - // { - // Name: to.Ptr("12"), - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("13"), - // to.Ptr("14"), - // to.Ptr("15")}, - // }, - // { - // Name: to.Ptr("13"), - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("14"), - // to.Ptr("15")}, - // }, - // { - // Name: to.Ptr("14"), - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("15")}, - // }}, - // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaAndGeoBackupSupportedEnumEnabled), - // ZoneRedundantHaSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaSupportedEnumEnabled), - // }}, - // } + // Name: to.Ptr("Standard_E8ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](12800), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](8), + // }, + // { + // Name: to.Ptr("Standard_E16ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](25600), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](16), + // }, + // { + // Name: to.Ptr("Standard_E20ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](32000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](20), + // }, + // { + // Name: to.Ptr("Standard_E32ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](51200), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](32), + // }, + // { + // Name: to.Ptr("Standard_E48ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](76800), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](48), + // }, + // { + // Name: to.Ptr("Standard_E64ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](64), + // }, + // { + // Name: to.Ptr("Standard_E96ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](7168), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](96), + // }, + // { + // Name: to.Ptr("Standard_E2ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](3750), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](2), + // }, + // { + // Name: to.Ptr("Standard_E4ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](6400), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](4), + // }, + // { + // Name: to.Ptr("Standard_E8ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](12800), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](8), + // }, + // { + // Name: to.Ptr("Standard_E16ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](25600), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](16), + // }, + // { + // Name: to.Ptr("Standard_E20ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](32000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](20), + // }, + // { + // Name: to.Ptr("Standard_E32ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](51200), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](32), + // }, + // { + // Name: to.Ptr("Standard_E48ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](76800), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](48), + // }, + // { + // Name: to.Ptr("Standard_E64ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](64), + // }, + // { + // Name: to.Ptr("Standard_E96ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](7168), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](96), + // }}, + // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ + // { + // Name: to.Ptr("ManagedDisk"), + // DefaultStorageSizeMb: to.Ptr[int64](131072), + // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ + // { + // DefaultIopsTier: to.Ptr("P4"), + // StorageSizeMb: to.Ptr[int64](32768), + // SupportedIops: to.Ptr[int32](120), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P4"), + // Iops: to.Ptr[int32](120), + // }, + // { + // Name: to.Ptr("P6"), + // Iops: to.Ptr[int32](240), + // }, + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P6"), + // StorageSizeMb: to.Ptr[int64](65536), + // SupportedIops: to.Ptr[int32](240), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P6"), + // Iops: to.Ptr[int32](240), + // }, + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P10"), + // StorageSizeMb: to.Ptr[int64](131072), + // SupportedIops: to.Ptr[int32](500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P15"), + // StorageSizeMb: to.Ptr[int64](262144), + // SupportedIops: to.Ptr[int32](1100), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P20"), + // StorageSizeMb: to.Ptr[int64](524288), + // SupportedIops: to.Ptr[int32](2300), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P30"), + // StorageSizeMb: to.Ptr[int64](1048576), + // SupportedIops: to.Ptr[int32](5000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P40"), + // StorageSizeMb: to.Ptr[int64](2097152), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P50"), + // StorageSizeMb: to.Ptr[int64](4193280), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P50"), + // StorageSizeMb: to.Ptr[int64](4194304), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P60"), + // StorageSizeMb: to.Ptr[int64](8388608), + // SupportedIops: to.Ptr[int32](16000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P60"), + // Iops: to.Ptr[int32](16000), + // }, + // { + // Name: to.Ptr("P70"), + // Iops: to.Ptr[int32](18000), + // }, + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P70"), + // StorageSizeMb: to.Ptr[int64](16777216), + // SupportedIops: to.Ptr[int32](18000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P70"), + // Iops: to.Ptr[int32](18000), + // }, + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P80"), + // StorageSizeMb: to.Ptr[int64](33553408), + // SupportedIops: to.Ptr[int32](20000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }}, + // }, + // { + // Name: to.Ptr("ManagedDiskV2"), + // DefaultStorageSizeMb: to.Ptr[int64](131072), + // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ + // { + // DefaultIopsTier: to.Ptr("None"), + // MaximumStorageSizeMb: to.Ptr[int64](67108864), + // StorageSizeMb: to.Ptr[int64](32768), + // SupportedIops: to.Ptr[int32](3000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("None"), + // Iops: to.Ptr[int32](0), + // }}, + // SupportedMaximumIops: to.Ptr[int32](80000), + // SupportedMaximumThroughput: to.Ptr[int32](1200), + // SupportedThroughput: to.Ptr[int32](125), + // }}, + // }}, + // }}, + // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ + // { + // Name: to.Ptr("11"), + // SupportedVersionsToUpgrade: []*string{ + // to.Ptr("12"), + // to.Ptr("13"), + // to.Ptr("14"), + // to.Ptr("15"), + // to.Ptr("16")}, + // }, + // { + // Name: to.Ptr("12"), + // SupportedVersionsToUpgrade: []*string{ + // to.Ptr("13"), + // to.Ptr("14"), + // to.Ptr("15"), + // to.Ptr("16")}, + // }, + // { + // Name: to.Ptr("13"), + // SupportedVersionsToUpgrade: []*string{ + // to.Ptr("14"), + // to.Ptr("15"), + // to.Ptr("16")}, + // }, + // { + // Name: to.Ptr("14"), + // SupportedVersionsToUpgrade: []*string{ + // to.Ptr("15"), + // to.Ptr("16")}, + // }, + // { + // Name: to.Ptr("15"), + // SupportedVersionsToUpgrade: []*string{ + // to.Ptr("16")}, + // }, + // { + // Name: to.Ptr("16"), + // SupportedVersionsToUpgrade: []*string{ + // }, + // }}, + // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaAndGeoBackupSupportedEnumEnabled), + // ZoneRedundantHaSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaSupportedEnumEnabled), + // }}, + // } } } diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/logfiles_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/logfiles_client.go index 8c9e17eb9c18..f55bfbf76ada 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/logfiles_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/logfiles_client.go @@ -45,7 +45,7 @@ func NewLogFilesClient(subscriptionID string, credential azcore.TokenCredential, // NewListByServerPager - List all the server log files in a given server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - LogFilesClientListByServerOptions contains the optional parameters for the LogFilesClient.NewListByServerPager @@ -93,7 +93,7 @@ func (client *LogFilesClient) listByServerCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/logfiles_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/logfiles_client_example_test.go index 00d317ae9453..7704bf3012fc 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/logfiles_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/logfiles_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/LogFilesListByServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/LogFilesListByServer.json func ExampleLogFilesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ltrbackupoperations_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ltrbackupoperations_client.go index 2b6956a8376e..6f151c9ccdad 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ltrbackupoperations_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ltrbackupoperations_client.go @@ -46,7 +46,7 @@ func NewLtrBackupOperationsClient(subscriptionID string, credential azcore.Token // Get - Gets the result of the give long term retention backup operation for the flexible server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - backupName - The name of the backup. @@ -97,7 +97,7 @@ func (client *LtrBackupOperationsClient) getCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -114,7 +114,7 @@ func (client *LtrBackupOperationsClient) getHandleResponse(resp *http.Response) // NewListByServerPager - Gets the result of the give long term retention backup operations for the flexible server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - LtrBackupOperationsClientListByServerOptions contains the optional parameters for the LtrBackupOperationsClient.NewListByServerPager @@ -162,7 +162,7 @@ func (client *LtrBackupOperationsClient) listByServerCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ltrbackupoperations_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ltrbackupoperations_client_example_test.go index fc127db6622b..7462e47fdbfe 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ltrbackupoperations_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/ltrbackupoperations_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/LongTermRetentionOperationGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/LongTermRetentionOperationGet.json func ExampleLtrBackupOperationsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -52,7 +52,7 @@ func ExampleLtrBackupOperationsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/LongTermRetentionOperationListByServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/LongTermRetentionOperationListByServer.json func ExampleLtrBackupOperationsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/migrations_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/migrations_client.go index d2c1baaf144b..144555882423 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/migrations_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/migrations_client.go @@ -43,7 +43,7 @@ func NewMigrationsClient(credential azcore.TokenCredential, options *arm.ClientO // Create - Creates a new migration. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - subscriptionID - The subscription ID of the target database server. // - resourceGroupName - The resource group name of the target database server. // - targetDbServerName - The name of the target database server. @@ -96,7 +96,7 @@ func (client *MigrationsClient) createCreateRequest(ctx context.Context, subscri return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -117,7 +117,7 @@ func (client *MigrationsClient) createHandleResponse(resp *http.Response) (Migra // Delete - Deletes a migration. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - subscriptionID - The subscription ID of the target database server. // - resourceGroupName - The resource group name of the target database server. // - targetDbServerName - The name of the target database server. @@ -168,7 +168,7 @@ func (client *MigrationsClient) deleteCreateRequest(ctx context.Context, subscri return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -177,7 +177,7 @@ func (client *MigrationsClient) deleteCreateRequest(ctx context.Context, subscri // Get - Gets details of a migration. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - subscriptionID - The subscription ID of the target database server. // - resourceGroupName - The resource group name of the target database server. // - targetDbServerName - The name of the target database server. @@ -229,7 +229,7 @@ func (client *MigrationsClient) getCreateRequest(ctx context.Context, subscripti return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -246,7 +246,7 @@ func (client *MigrationsClient) getHandleResponse(resp *http.Response) (Migratio // NewListByTargetServerPager - List all the migrations on a given target server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - subscriptionID - The subscription ID of the target database server. // - resourceGroupName - The resource group name of the target database server. // - targetDbServerName - The name of the target database server. @@ -295,7 +295,7 @@ func (client *MigrationsClient) listByTargetServerCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") if options != nil && options.MigrationListFilter != nil { reqQP.Set("migrationListFilter", string(*options.MigrationListFilter)) } @@ -317,7 +317,7 @@ func (client *MigrationsClient) listByTargetServerHandleResponse(resp *http.Resp // migration definition. Certain property updates initiate migration state transitions. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - subscriptionID - The subscription ID of the target database server. // - resourceGroupName - The resource group name of the target database server. // - targetDbServerName - The name of the target database server. @@ -370,7 +370,7 @@ func (client *MigrationsClient) updateCreateRequest(ctx context.Context, subscri return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/migrations_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/migrations_client_example_test.go index b5237d105f72..413517d2cbc8 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/migrations_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/migrations_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_Create_Other_SourceTypes_Validate_Migrate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Create_Other_SourceTypes_Validate_Migrate.json func ExampleMigrationsClient_Create_createMigrationWithOtherSourceTypesForValidateAndMigrate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -94,7 +94,7 @@ func ExampleMigrationsClient_Create_createMigrationWithOtherSourceTypesForValida // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_Create_Validate_Only.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Create_Validate_Only.json func ExampleMigrationsClient_Create_createPreMigrationValidation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -166,7 +166,7 @@ func ExampleMigrationsClient_Create_createPreMigrationValidation() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_Create_With_Other_Users.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Create_With_Other_Users.json func ExampleMigrationsClient_Create_migrationsCreateByPassingUserNames() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -238,7 +238,7 @@ func ExampleMigrationsClient_Create_migrationsCreateByPassingUserNames() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_Create_With_PrivateEndpoint_Servers.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Create_With_PrivateEndpoint_Servers.json func ExampleMigrationsClient_Create_migrationsCreateWithPrivateEndpoint() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -310,7 +310,7 @@ func ExampleMigrationsClient_Create_migrationsCreateWithPrivateEndpoint() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_Create_With_Roles.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Create_With_Roles.json func ExampleMigrationsClient_Create_migrationsCreateWithRoles() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -381,7 +381,7 @@ func ExampleMigrationsClient_Create_migrationsCreateWithRoles() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Create.json func ExampleMigrationsClient_Create_migrationsCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -453,7 +453,7 @@ func ExampleMigrationsClient_Create_migrationsCreate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Get.json func ExampleMigrationsClient_Get_migrationsGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -520,7 +520,7 @@ func ExampleMigrationsClient_Get_migrationsGet() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_GetMigrationWithSuccessfulValidationAndMigration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_GetMigrationWithSuccessfulValidationAndMigration.json func ExampleMigrationsClient_Get_migrationsGetMigrationWithSuccessfulValidationAndMigration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -622,7 +622,7 @@ func ExampleMigrationsClient_Get_migrationsGetMigrationWithSuccessfulValidationA // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_GetMigrationWithSuccessfulValidationButMigrationFailure.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_GetMigrationWithSuccessfulValidationButMigrationFailure.json func ExampleMigrationsClient_Get_migrationsGetMigrationWithSuccessfulValidationButMigrationFailure() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -723,7 +723,7 @@ func ExampleMigrationsClient_Get_migrationsGetMigrationWithSuccessfulValidationB // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_GetMigrationWithSuccessfulValidationOnly.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_GetMigrationWithSuccessfulValidationOnly.json func ExampleMigrationsClient_Get_migrationsGetMigrationWithSuccessfulValidationOnly() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -809,7 +809,7 @@ func ExampleMigrationsClient_Get_migrationsGetMigrationWithSuccessfulValidationO // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_GetMigrationWithValidationFailures.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_GetMigrationWithValidationFailures.json func ExampleMigrationsClient_Get_migrationsGetMigrationWithValidationFailures() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1003,7 +1003,7 @@ func ExampleMigrationsClient_Get_migrationsGetMigrationWithValidationFailures() // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_Cancel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Cancel.json func ExampleMigrationsClient_Update_cancelMigration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1066,7 +1066,7 @@ func ExampleMigrationsClient_Update_cancelMigration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Update.json func ExampleMigrationsClient_Update_migrationsUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1137,7 +1137,7 @@ func ExampleMigrationsClient_Update_migrationsUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_Delete.json func ExampleMigrationsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1154,7 +1154,7 @@ func ExampleMigrationsClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/Migrations_ListByTargetServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/Migrations_ListByTargetServer.json func ExampleMigrationsClient_NewListByTargetServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models.go index d853b32e2120..1dec5e862b41 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models.go @@ -168,10 +168,10 @@ type ConfigurationListResult struct { // ConfigurationProperties - The properties of a configuration. type ConfigurationProperties struct { - // Source of the configuration. + // Source of the configuration. Required to update the configuration. Source *string - // Value of the configuration. + // Value of the configuration. Required to update the configuration. Value *string // READ-ONLY; Allowed values of the configuration. @@ -757,8 +757,8 @@ type MigrationResourceProperties struct { // Indicates whether to setup LogicalReplicationOnSourceDb, if needed SetupLogicalReplicationOnSourceDbIfNeeded *LogicalReplicationOnSourceDbEnum - // Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it - // for connection + // Source server fully qualified domain name (FQDN) or IP address. It is a optional value, if customer provide it, migration + // service will always use it for connection SourceDbServerFullyQualifiedDomainName *string // ResourceId of the source database server in case the sourceType is PostgreSQLSingleServer. For other source types this @@ -772,8 +772,8 @@ type MigrationResourceProperties struct { // Indicates whether the data migration should start right away StartDataMigration *StartDataMigrationEnum - // Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it - // for connection + // Target server fully qualified domain name (FQDN) or IP address. It is a optional value, if customer provide it, migration + // service will always use it for connection TargetDbServerFullyQualifiedDomainName *string // To trigger cutover for entire migration we need to send this flag as True @@ -829,8 +829,8 @@ type MigrationResourcePropertiesForPatch struct { // Indicates whether to setup LogicalReplicationOnSourceDb, if needed SetupLogicalReplicationOnSourceDbIfNeeded *LogicalReplicationOnSourceDbEnum - // Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it - // for connection + // Source server fully qualified domain name (FQDN) or IP address. It is a optional value, if customer provide it, migration + // service will always use it for connection SourceDbServerFullyQualifiedDomainName *string // ResourceId of the source database server @@ -839,8 +839,8 @@ type MigrationResourcePropertiesForPatch struct { // Indicates whether the data migration should start right away StartDataMigration *StartDataMigrationEnum - // Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it - // for connection + // Target server fully qualified domain name (FQDN) or IP address. It is a optional value, if customer provide it, migration + // service will always use it for connection TargetDbServerFullyQualifiedDomainName *string // To trigger cutover for entire migration we need to send this flag as True @@ -901,15 +901,6 @@ type NameAvailability struct { Type *string } -// NameProperty - Name property for quota usage -type NameProperty struct { - // Localized name - LocalizedValue *string - - // Name value - Value *string -} - // Network properties of a server. type Network struct { // Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, @@ -1068,33 +1059,6 @@ type PrivateLinkServiceConnectionState struct { Status *PrivateEndpointServiceConnectionStatus } -// QuotaUsage - Quota usage for flexible servers -type QuotaUsage struct { - // Current Quota usage value - CurrentValue *int64 - - // Fully qualified ARM resource Id - ID *string - - // Quota limit - Limit *int64 - - // Name of quota usage for flexible servers - Name *NameProperty - - // Quota unit - Unit *string -} - -// QuotaUsagesListResult - Capability for the PostgreSQL server -type QuotaUsagesListResult struct { - // READ-ONLY; Link to retrieve next page of results. - NextLink *string - - // READ-ONLY; A list of quota usages. - Value []*QuotaUsage -} - // Replica properties of a server type Replica struct { // Sets the promote mode for a replica server. This is a write only property. @@ -1297,6 +1261,10 @@ type ServerProperties struct { } type ServerPropertiesForUpdate struct { + // The administrator's login name of a server. Can only be specified when the server is trying to switch to password authentication + // and does not have default administrator login. + AdministratorLogin *string + // The password of the administrator login. AdministratorLoginPassword *string diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models_serde.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models_serde.go index 4009ce36f1f4..bb4551fcac80 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models_serde.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/models_serde.go @@ -2182,37 +2182,6 @@ func (n *NameAvailability) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type NameProperty. -func (n NameProperty) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "localizedValue", n.LocalizedValue) - populate(objectMap, "value", n.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type NameProperty. -func (n *NameProperty) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", n, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "localizedValue": - err = unpopulate(val, "LocalizedValue", &n.LocalizedValue) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &n.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", n, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type Network. func (n Network) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -2645,80 +2614,6 @@ func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type QuotaUsage. -func (q QuotaUsage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "currentValue", q.CurrentValue) - populate(objectMap, "id", q.ID) - populate(objectMap, "limit", q.Limit) - populate(objectMap, "name", q.Name) - populate(objectMap, "unit", q.Unit) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type QuotaUsage. -func (q *QuotaUsage) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", q, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "currentValue": - err = unpopulate(val, "CurrentValue", &q.CurrentValue) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &q.ID) - delete(rawMsg, key) - case "limit": - err = unpopulate(val, "Limit", &q.Limit) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &q.Name) - delete(rawMsg, key) - case "unit": - err = unpopulate(val, "Unit", &q.Unit) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", q, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type QuotaUsagesListResult. -func (q QuotaUsagesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "nextLink", q.NextLink) - populate(objectMap, "value", q.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type QuotaUsagesListResult. -func (q *QuotaUsagesListResult) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", q, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &q.NextLink) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &q.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", q, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type Replica. func (r Replica) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -3172,6 +3067,7 @@ func (s *ServerProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServerPropertiesForUpdate. func (s ServerPropertiesForUpdate) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "administratorLogin", s.AdministratorLogin) populate(objectMap, "administratorLoginPassword", s.AdministratorLoginPassword) populate(objectMap, "authConfig", s.AuthConfig) populate(objectMap, "backup", s.Backup) @@ -3196,6 +3092,9 @@ func (s *ServerPropertiesForUpdate) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "administratorLogin": + err = unpopulate(val, "AdministratorLogin", &s.AdministratorLogin) + delete(rawMsg, key) case "administratorLoginPassword": err = unpopulate(val, "AdministratorLoginPassword", &s.AdministratorLoginPassword) delete(rawMsg, key) diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_client.go index f21c2cc23ac8..121ef9f9b726 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_client.go @@ -40,7 +40,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // List - Lists all of the available REST API operations. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. func (client *OperationsClient) List(ctx context.Context, options *OperationsClientListOptions) (OperationsClientListResponse, error) { var err error @@ -72,7 +72,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_client_example_test.go index 0e3552604848..9733123ba2c4 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/OperationList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/OperationList.json func ExampleOperationsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_live_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_live_test.go new file mode 100644 index 000000000000..e02997e5faf7 --- /dev/null +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/operations_live_test.go @@ -0,0 +1,97 @@ +//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. +package armpostgresqlflexibleservers_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "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/internal/recording" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" + "github.com/stretchr/testify/suite" +) + +const ( + ResourceLocation = "eastus2" +) + +type PostgresqlflexibleserversOperationsTestSuite struct { + suite.Suite + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *PostgresqlflexibleserversOperationsTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), pathToPackage) + + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.location = recording.GetEnvVariable("LOCATION", ResourceLocation) + testsuite.resourceGroupName = recording.GetEnvVariable("RESOURCE_GROUP_NAME", "operationTestTempGroup") + testsuite.subscriptionId = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + + fmt.Println("create new resource group ", testsuite.resourceGroupName, " of ", testsuite.subscriptionId, "successfully") + testsuite.Prepare() +} + +func TestPostgresqlflexibleserversOperationsTestSuite(t *testing.T) { + suite.Run(t, new(PostgresqlflexibleserversOperationsTestSuite)) +} + +func (testsuite *PostgresqlflexibleserversOperationsTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func (testsuite *PostgresqlflexibleserversOperationsTestSuite) TestOperationsNewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + testsuite.Require().NoError(err) + clientFactory, err := armpostgresqlflexibleservers.NewClientFactory(testsuite.subscriptionId, cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = clientFactory.NewOperationsClient().List(testsuite.ctx, nil) + testsuite.Require().NoError(err) +} + +func (testsuite *PostgresqlflexibleserversOperationsTestSuite) Prepare() { + // get default credential + cred, err := azidentity.NewDefaultAzureCredential(nil) + testsuite.Require().NoError(err) + // new client factory + + fmt.Println("subscriptionId", testsuite.subscriptionId, "groupName", testsuite.resourceGroupName, "location", testsuite.location) + clientFactory, err := armresources.NewClientFactory(testsuite.subscriptionId, cred, testsuite.options) + testsuite.Require().NoError(err) + client := clientFactory.NewResourceGroupsClient() + + testsuite.Require().NoError(err) + // check whether create new group successfully + res, err := client.CheckExistence(testsuite.ctx, testsuite.resourceGroupName, nil) + testsuite.Require().NoError(err) + if !res.Success { + _, err = client.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, armresources.ResourceGroup{ + Location: to.Ptr(testsuite.location), + }, nil) + testsuite.Require().NoError(err) + } + + fmt.Println("create new resource group ", testsuite.resourceGroupName, " of ", testsuite.subscriptionId, "successfully") +} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/options.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/options.go index f52d3dbbe0aa..164f6fa65136 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/options.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/options.go @@ -31,6 +31,18 @@ type AdministratorsClientListByServerOptions struct { // placeholder for future optional parameters } +// BackupsClientBeginCreateOptions contains the optional parameters for the BackupsClient.BeginCreate method. +type BackupsClientBeginCreateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// BackupsClientBeginDeleteOptions contains the optional parameters for the BackupsClient.BeginDelete method. +type BackupsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + // BackupsClientGetOptions contains the optional parameters for the BackupsClient.Get method. type BackupsClientGetOptions struct { // placeholder for future optional parameters @@ -195,9 +207,9 @@ type OperationsClientListOptions struct { // placeholder for future optional parameters } -// PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions contains the optional parameters for the PostgreSQLManagementClient.CheckMigrationNameAvailability +// PostgreSQLServerManagementClientCheckMigrationNameAvailabilityOptions contains the optional parameters for the PostgreSQLServerManagementClient.CheckMigrationNameAvailability // method. -type PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions struct { +type PostgreSQLServerManagementClientCheckMigrationNameAvailabilityOptions struct { // placeholder for future optional parameters } @@ -238,11 +250,6 @@ type PrivateLinkResourcesClientListByServerOptions struct { // placeholder for future optional parameters } -// QuotaUsagesClientListOptions contains the optional parameters for the QuotaUsagesClient.NewListPager method. -type QuotaUsagesClientListOptions struct { - // placeholder for future optional parameters -} - // ReplicasClientListByServerOptions contains the optional parameters for the ReplicasClient.NewListByServerPager method. type ReplicasClientListByServerOptions struct { // placeholder for future optional parameters diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlmanagement_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlservermanagement_client.go similarity index 61% rename from sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlmanagement_client.go rename to sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlservermanagement_client.go index 4fbe7ed4f0f0..ab7a1c324c91 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlmanagement_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlservermanagement_client.go @@ -20,21 +20,21 @@ import ( "strings" ) -// PostgreSQLManagementClient contains the methods for the PostgreSQLManagementClient group. -// Don't use this type directly, use NewPostgreSQLManagementClient() instead. -type PostgreSQLManagementClient struct { +// PostgreSQLServerManagementClient contains the methods for the PostgreSQLServerManagementClient group. +// Don't use this type directly, use NewPostgreSQLServerManagementClient() instead. +type PostgreSQLServerManagementClient struct { internal *arm.Client } -// NewPostgreSQLManagementClient creates a new instance of PostgreSQLManagementClient with the specified values. +// NewPostgreSQLServerManagementClient creates a new instance of PostgreSQLServerManagementClient with the specified values. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. -func NewPostgreSQLManagementClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*PostgreSQLManagementClient, error) { +func NewPostgreSQLServerManagementClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*PostgreSQLServerManagementClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } - client := &PostgreSQLManagementClient{ + client := &PostgreSQLServerManagementClient{ internal: cl, } return client, nil @@ -43,37 +43,37 @@ func NewPostgreSQLManagementClient(credential azcore.TokenCredential, options *a // CheckMigrationNameAvailability - This method checks whether a proposed migration name is valid and available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - subscriptionID - The subscription ID of the target database server. // - resourceGroupName - The resource group name of the target database server. // - targetDbServerName - The name of the target database server. // - parameters - The required parameters for checking if a migration name is available. -// - options - PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions contains the optional parameters for the PostgreSQLManagementClient.CheckMigrationNameAvailability -// method. -func (client *PostgreSQLManagementClient) CheckMigrationNameAvailability(ctx context.Context, subscriptionID string, resourceGroupName string, targetDbServerName string, parameters MigrationNameAvailabilityResource, options *PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions) (PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse, error) { +// - options - PostgreSQLServerManagementClientCheckMigrationNameAvailabilityOptions contains the optional parameters for the +// PostgreSQLServerManagementClient.CheckMigrationNameAvailability method. +func (client *PostgreSQLServerManagementClient) CheckMigrationNameAvailability(ctx context.Context, subscriptionID string, resourceGroupName string, targetDbServerName string, parameters MigrationNameAvailabilityResource, options *PostgreSQLServerManagementClientCheckMigrationNameAvailabilityOptions) (PostgreSQLServerManagementClientCheckMigrationNameAvailabilityResponse, error) { var err error - const operationName = "PostgreSQLManagementClient.CheckMigrationNameAvailability" + const operationName = "PostgreSQLServerManagementClient.CheckMigrationNameAvailability" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.checkMigrationNameAvailabilityCreateRequest(ctx, subscriptionID, resourceGroupName, targetDbServerName, parameters, options) if err != nil { - return PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse{}, err + return PostgreSQLServerManagementClientCheckMigrationNameAvailabilityResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse{}, err + return PostgreSQLServerManagementClientCheckMigrationNameAvailabilityResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusOK) { err = runtime.NewResponseError(httpResp) - return PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse{}, err + return PostgreSQLServerManagementClientCheckMigrationNameAvailabilityResponse{}, err } resp, err := client.checkMigrationNameAvailabilityHandleResponse(httpResp) return resp, err } // checkMigrationNameAvailabilityCreateRequest creates the CheckMigrationNameAvailability request. -func (client *PostgreSQLManagementClient) checkMigrationNameAvailabilityCreateRequest(ctx context.Context, subscriptionID string, resourceGroupName string, targetDbServerName string, parameters MigrationNameAvailabilityResource, options *PostgreSQLManagementClientCheckMigrationNameAvailabilityOptions) (*policy.Request, error) { +func (client *PostgreSQLServerManagementClient) checkMigrationNameAvailabilityCreateRequest(ctx context.Context, subscriptionID string, resourceGroupName string, targetDbServerName string, parameters MigrationNameAvailabilityResource, options *PostgreSQLServerManagementClientCheckMigrationNameAvailabilityOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{targetDbServerName}/checkMigrationNameAvailability" if subscriptionID == "" { return nil, errors.New("parameter subscriptionID cannot be empty") @@ -92,7 +92,7 @@ func (client *PostgreSQLManagementClient) checkMigrationNameAvailabilityCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -102,10 +102,10 @@ func (client *PostgreSQLManagementClient) checkMigrationNameAvailabilityCreateRe } // checkMigrationNameAvailabilityHandleResponse handles the CheckMigrationNameAvailability response. -func (client *PostgreSQLManagementClient) checkMigrationNameAvailabilityHandleResponse(resp *http.Response) (PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse, error) { - result := PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse{} +func (client *PostgreSQLServerManagementClient) checkMigrationNameAvailabilityHandleResponse(resp *http.Response) (PostgreSQLServerManagementClientCheckMigrationNameAvailabilityResponse, error) { + result := PostgreSQLServerManagementClientCheckMigrationNameAvailabilityResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.MigrationNameAvailabilityResource); err != nil { - return PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse{}, err + return PostgreSQLServerManagementClientCheckMigrationNameAvailabilityResponse{}, err } return result, nil } diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlmanagement_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlservermanagement_client_example_test.go similarity index 77% rename from sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlmanagement_client_example_test.go rename to sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlservermanagement_client_example_test.go index c32bff212399..661d3b48293b 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlmanagement_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/postgresqlservermanagement_client_example_test.go @@ -18,8 +18,8 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/CheckMigrationNameAvailability.json -func ExamplePostgreSQLManagementClient_CheckMigrationNameAvailability() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/CheckMigrationNameAvailability.json +func ExamplePostgreSQLServerManagementClient_CheckMigrationNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExamplePostgreSQLManagementClient_CheckMigrationNameAvailability() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := clientFactory.NewPostgreSQLManagementClient().CheckMigrationNameAvailability(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", armpostgresqlflexibleservers.MigrationNameAvailabilityResource{ + res, err := clientFactory.NewPostgreSQLServerManagementClient().CheckMigrationNameAvailability(ctx, "ffffffff-ffff-ffff-ffff-ffffffffffff", "testrg", "testtarget", armpostgresqlflexibleservers.MigrationNameAvailabilityResource{ Name: to.Ptr("name1"), Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/migrations"), }, nil) diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnection_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnection_client.go index cef9b05b5b5f..3ed7b3f4eeaa 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnection_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnection_client.go @@ -46,7 +46,7 @@ func NewPrivateEndpointConnectionClient(subscriptionID string, credential azcore // BeginDelete - Deletes a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - privateEndpointConnectionName - The name of the private endpoint connection. @@ -73,7 +73,7 @@ func (client *PrivateEndpointConnectionClient) BeginDelete(ctx context.Context, // Delete - Deletes a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *PrivateEndpointConnectionClient) deleteOperation(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "PrivateEndpointConnectionClient.BeginDelete" @@ -119,7 +119,7 @@ func (client *PrivateEndpointConnectionClient) deleteCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -128,7 +128,7 @@ func (client *PrivateEndpointConnectionClient) deleteCreateRequest(ctx context.C // BeginUpdate - Approve or reject a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - privateEndpointConnectionName - The name of the private endpoint connection. @@ -155,7 +155,7 @@ func (client *PrivateEndpointConnectionClient) BeginUpdate(ctx context.Context, // Update - Approve or reject a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *PrivateEndpointConnectionClient) update(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "PrivateEndpointConnectionClient.BeginUpdate" @@ -201,7 +201,7 @@ func (client *PrivateEndpointConnectionClient) updateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnection_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnection_client_example_test.go index bd46f1f811a6..e021ec36e3ea 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnection_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnection_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/PrivateEndpointConnectionUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/PrivateEndpointConnectionUpdate.json func ExamplePrivateEndpointConnectionClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -67,7 +67,7 @@ func ExamplePrivateEndpointConnectionClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/PrivateEndpointConnectionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/PrivateEndpointConnectionDelete.json func ExamplePrivateEndpointConnectionClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnections_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnections_client.go index b1c58d972b74..94637d3a4101 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnections_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnections_client.go @@ -46,7 +46,7 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // Get - Gets a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - privateEndpointConnectionName - The name of the private endpoint connection. @@ -98,7 +98,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -115,7 +115,7 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res // NewListByServerPager - Gets all private endpoint connections on a server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - PrivateEndpointConnectionsClientListByServerOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByServerPager @@ -163,7 +163,7 @@ func (client *PrivateEndpointConnectionsClient) listByServerCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnections_client_example_test.go index f094f66494c6..e54d8e4b1384 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnections_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privateendpointconnections_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/PrivateEndpointConnectionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/PrivateEndpointConnectionGet.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -55,7 +55,7 @@ func ExamplePrivateEndpointConnectionsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/PrivateEndpointConnectionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/PrivateEndpointConnectionList.json func ExamplePrivateEndpointConnectionsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privatelinkresources_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privatelinkresources_client.go index ef7bcab606c7..2f670ea3e0b3 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privatelinkresources_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privatelinkresources_client.go @@ -46,7 +46,7 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // Get - Gets a private link resource for PostgreSQL server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - groupName - The name of the private link resource. @@ -98,7 +98,7 @@ func (client *PrivateLinkResourcesClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -115,7 +115,7 @@ func (client *PrivateLinkResourcesClient) getHandleResponse(resp *http.Response) // NewListByServerPager - Gets the private link resources for PostgreSQL server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - PrivateLinkResourcesClientListByServerOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListByServerPager @@ -163,7 +163,7 @@ func (client *PrivateLinkResourcesClient) listByServerCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privatelinkresources_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privatelinkresources_client_example_test.go index 6cc21c83100a..acd6581c938e 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/privatelinkresources_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/PrivateLinkResourcesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/PrivateLinkResourcesList.json func ExamplePrivateLinkResourcesClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -57,7 +57,7 @@ func ExamplePrivateLinkResourcesClient_NewListByServerPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/PrivateLinkResourcesGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/PrivateLinkResourcesGet.json func ExamplePrivateLinkResourcesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/quotausages_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/quotausages_client.go deleted file mode 100644 index 38b21f00056d..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/quotausages_client.go +++ /dev/null @@ -1,103 +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. DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armpostgresqlflexibleservers - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// QuotaUsagesClient contains the methods for the QuotaUsages group. -// Don't use this type directly, use NewQuotaUsagesClient() instead. -type QuotaUsagesClient struct { - internal *arm.Client - subscriptionID string -} - -// NewQuotaUsagesClient creates a new instance of QuotaUsagesClient with the specified values. -// - subscriptionID - The ID of the target subscription. The value must be an UUID. -// - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. -func NewQuotaUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*QuotaUsagesClient, error) { - cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) - if err != nil { - return nil, err - } - client := &QuotaUsagesClient{ - subscriptionID: subscriptionID, - internal: cl, - } - return client, nil -} - -// NewListPager - Get quota usages at specified location in a given subscription. -// -// Generated from API version 2023-12-01-preview -// - locationName - The name of the location. -// - options - QuotaUsagesClientListOptions contains the optional parameters for the QuotaUsagesClient.NewListPager method. -func (client *QuotaUsagesClient) NewListPager(locationName string, options *QuotaUsagesClientListOptions) *runtime.Pager[QuotaUsagesClientListResponse] { - return runtime.NewPager(runtime.PagingHandler[QuotaUsagesClientListResponse]{ - More: func(page QuotaUsagesClientListResponse) bool { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *QuotaUsagesClientListResponse) (QuotaUsagesClientListResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "QuotaUsagesClient.NewListPager") - nextLink := "" - if page != nil { - nextLink = *page.NextLink - } - resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, locationName, options) - }, nil) - if err != nil { - return QuotaUsagesClientListResponse{}, err - } - return client.listHandleResponse(resp) - }, - Tracer: client.internal.Tracer(), - }) -} - -// listCreateRequest creates the List request. -func (client *QuotaUsagesClient) listCreateRequest(ctx context.Context, locationName string, options *QuotaUsagesClientListOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/resourceType/flexibleServers/usages" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if locationName == "" { - return nil, errors.New("parameter locationName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{locationName}", url.PathEscape(locationName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listHandleResponse handles the List response. -func (client *QuotaUsagesClient) listHandleResponse(resp *http.Response) (QuotaUsagesClientListResponse, error) { - result := QuotaUsagesClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.QuotaUsagesListResult); err != nil { - return QuotaUsagesClientListResponse{}, err - } - return result, nil -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/quotausages_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/quotausages_client_example_test.go deleted file mode 100644 index ab354dfc3af6..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/quotausages_client_example_test.go +++ /dev/null @@ -1,66 +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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/QuotaUsagesForFlexibleServers.json -func ExampleQuotaUsagesClient_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.NewQuotaUsagesClient().NewListPager("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.QuotaUsagesListResult = armpostgresqlflexibleservers.QuotaUsagesListResult{ - // Value: []*armpostgresqlflexibleservers.QuotaUsage{ - // { - // Name: &armpostgresqlflexibleservers.NameProperty{ - // LocalizedValue: to.Ptr("standardBSFamily"), - // Value: to.Ptr("standardBSFamily"), - // }, - // CurrentValue: to.Ptr[int64](0), - // ID: to.Ptr(""), - // Limit: to.Ptr[int64](10000), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: &armpostgresqlflexibleservers.NameProperty{ - // LocalizedValue: to.Ptr("standardDDSv4Family"), - // Value: to.Ptr("standardDDSv4Family"), - // }, - // CurrentValue: to.Ptr[int64](0), - // ID: to.Ptr(""), - // Limit: to.Ptr[int64](100), - // Unit: to.Ptr("Count"), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/replicas_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/replicas_client.go index d6717b9eaa03..3ad005f1e3a1 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/replicas_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/replicas_client.go @@ -45,7 +45,7 @@ func NewReplicasClient(subscriptionID string, credential azcore.TokenCredential, // NewListByServerPager - List all the replicas for a given server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - ReplicasClientListByServerOptions contains the optional parameters for the ReplicasClient.NewListByServerPager @@ -94,7 +94,7 @@ func (client *ReplicasClient) listByServerCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/replicas_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/replicas_client_example_test.go index 389a11e94a09..6fc9324acb43 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/replicas_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/replicas_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ReplicasListByServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ReplicasListByServer.json func ExampleReplicasClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/responses.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/responses.go index 621cf7a0c5f6..bfee46d2acbd 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/responses.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/responses.go @@ -31,6 +31,17 @@ type AdministratorsClientListByServerResponse struct { AdministratorListResult } +// BackupsClientCreateResponse contains the response from method BackupsClient.BeginCreate. +type BackupsClientCreateResponse struct { + // Server backup properties + ServerBackup +} + +// BackupsClientDeleteResponse contains the response from method BackupsClient.BeginDelete. +type BackupsClientDeleteResponse struct { + // placeholder for future response values +} + // BackupsClientGetResponse contains the response from method BackupsClient.Get. type BackupsClientGetResponse struct { // Server backup properties @@ -205,8 +216,8 @@ type OperationsClientListResponse struct { OperationListResult } -// PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse contains the response from method PostgreSQLManagementClient.CheckMigrationNameAvailability. -type PostgreSQLManagementClientCheckMigrationNameAvailabilityResponse struct { +// PostgreSQLServerManagementClientCheckMigrationNameAvailabilityResponse contains the response from method PostgreSQLServerManagementClient.CheckMigrationNameAvailability. +type PostgreSQLServerManagementClientCheckMigrationNameAvailabilityResponse struct { // Represents a migration name's availability. MigrationNameAvailabilityResource } @@ -246,12 +257,6 @@ type PrivateLinkResourcesClientListByServerResponse struct { PrivateLinkResourceListResult } -// QuotaUsagesClientListResponse contains the response from method QuotaUsagesClient.NewListPager. -type QuotaUsagesClientListResponse struct { - // Capability for the PostgreSQL server - QuotaUsagesListResult -} - // ReplicasClientListByServerResponse contains the response from method ReplicasClient.NewListByServerPager. type ReplicasClientListByServerResponse struct { // A list of servers. diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servercapabilities_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servercapabilities_client.go index 613171e0d3a1..d03779f1efc1 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servercapabilities_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servercapabilities_client.go @@ -45,7 +45,7 @@ func NewServerCapabilitiesClient(subscriptionID string, credential azcore.TokenC // NewListPager - Get capabilities for a flexible server. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - ServerCapabilitiesClientListOptions contains the optional parameters for the ServerCapabilitiesClient.NewListPager @@ -93,7 +93,7 @@ func (client *ServerCapabilitiesClient) listCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servercapabilities_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servercapabilities_client_example_test.go index 792f33c1dfe1..1b93e279ad7d 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servercapabilities_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servercapabilities_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerCapabilities.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCapabilities.json func ExampleServerCapabilitiesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -45,7 +45,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // Name: to.Ptr("FlexibleServerCapabilities"), // FastProvisioningSupported: to.Ptr(armpostgresqlflexibleservers.FastProvisioningSupportedEnumEnabled), // GeoBackupSupported: to.Ptr(armpostgresqlflexibleservers.GeoBackupSupportedEnumEnabled), - // OnlineResizeSupported: to.Ptr(armpostgresqlflexibleservers.OnlineResizeSupportedEnumDisabled), + // OnlineResizeSupported: to.Ptr(armpostgresqlflexibleservers.OnlineResizeSupportedEnumEnabled), // Restricted: to.Ptr(armpostgresqlflexibleservers.RestrictedEnumDisabled), // StorageAutoGrowthSupported: to.Ptr(armpostgresqlflexibleservers.StorageAutoGrowthSupportedEnumEnabled), // SupportedFastProvisioningEditions: []*armpostgresqlflexibleservers.FastProvisioningEditionCapability{ @@ -120,7 +120,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedTier: to.Ptr("MemoryOptimized"), // }, // { - // ServerCount: to.Ptr[int32](23), + // ServerCount: to.Ptr[int32](0), // SupportedServerVersions: to.Ptr("14"), // SupportedSKU: to.Ptr("standard_b1ms"), // SupportedStorageGb: to.Ptr[int32](32), @@ -225,8 +225,8 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](1700), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](1920), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -238,8 +238,8 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](2400), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](2880), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -251,8 +251,8 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](3100), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](4320), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -264,8 +264,8 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](3800), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](4320), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -277,8 +277,8 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](4300), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](4320), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -290,8 +290,8 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](5000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](2048), + // SupportedIops: to.Ptr[int32](4320), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -487,6 +487,16 @@ func ExampleServerCapabilitiesClient_NewListPager() { // }, // { // DefaultIopsTier: to.Ptr("P50"), + // StorageSizeMb: to.Ptr[int64](4193280), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P50"), // StorageSizeMb: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int32](7500), // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ @@ -540,7 +550,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // }, // { // Name: to.Ptr("ManagedDiskV2"), - // DefaultStorageSizeMb: to.Ptr[int64](65536), + // DefaultStorageSizeMb: to.Ptr[int64](32768), // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ // { // DefaultIopsTier: to.Ptr("None"), @@ -553,14 +563,14 @@ func ExampleServerCapabilitiesClient_NewListPager() { // Iops: to.Ptr[int32](0), // }}, // SupportedMaximumIops: to.Ptr[int32](80000), - // SupportedMaximumThroughput: to.Ptr[int32](750), + // SupportedMaximumThroughput: to.Ptr[int32](1200), // SupportedThroughput: to.Ptr[int32](125), // }}, // }}, // }, // { // Name: to.Ptr("GeneralPurpose"), - // DefaultSKUName: to.Ptr("Standard_D2ds_v4"), + // DefaultSKUName: to.Ptr("Standard_D4ads_v5"), // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), @@ -606,7 +616,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -619,7 +629,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -632,7 +642,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -645,7 +655,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -697,7 +707,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -710,7 +720,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -723,7 +733,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -736,7 +746,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -788,7 +798,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -801,7 +811,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -814,7 +824,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -827,7 +837,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), @@ -840,285 +850,21 @@ func ExampleServerCapabilitiesClient_NewListPager() { // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](80000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, // VCores: to.Ptr[int32](96), - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ - // { - // Name: to.Ptr("ManagedDisk"), - // DefaultStorageSizeMb: to.Ptr[int64](65536), - // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ - // { - // DefaultIopsTier: to.Ptr("P4"), - // StorageSizeMb: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int32](120), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int32](120), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int32](240), - // }, - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P6"), - // StorageSizeMb: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int32](240), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int32](240), - // }, - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P10"), - // StorageSizeMb: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int32](500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P15"), - // StorageSizeMb: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int32](1100), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P20"), - // StorageSizeMb: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int32](2300), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P30"), - // StorageSizeMb: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int32](5000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P40"), - // StorageSizeMb: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int32](7500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P50"), - // StorageSizeMb: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int32](7500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P60"), - // StorageSizeMb: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int32](16000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P60"), - // Iops: to.Ptr[int32](16000), - // }, - // { - // Name: to.Ptr("P70"), - // Iops: to.Ptr[int32](18000), - // }, - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P70"), - // StorageSizeMb: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int32](18000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P70"), - // Iops: to.Ptr[int32](18000), - // }, - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P80"), - // StorageSizeMb: to.Ptr[int64](33553408), - // SupportedIops: to.Ptr[int32](20000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }}, // }, // { - // Name: to.Ptr("ManagedDiskV2"), - // DefaultStorageSizeMb: to.Ptr[int64](65536), - // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ - // { - // DefaultIopsTier: to.Ptr("None"), - // MaximumStorageSizeMb: to.Ptr[int64](67108864), - // StorageSizeMb: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int32](3000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("None"), - // Iops: to.Ptr[int32](0), - // }}, - // SupportedMaximumIops: to.Ptr[int32](80000), - // SupportedMaximumThroughput: to.Ptr[int32](750), - // SupportedThroughput: to.Ptr[int32](125), - // }}, - // }}, - // }, - // { - // Name: to.Ptr("MemoryOptimized"), - // DefaultSKUName: to.Ptr("Standard_E2ds_v4"), - // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ - // { - // Name: to.Ptr("Standard_E2s_v3"), + // Name: to.Ptr("Standard_D2ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](3200), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedIops: to.Ptr[int32](3750), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1126,12 +872,12 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](2), // }, // { - // Name: to.Ptr("Standard_E4s_v3"), + // Name: to.Ptr("Standard_D4ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](6400), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1139,12 +885,12 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](4), // }, // { - // Name: to.Ptr("Standard_E8s_v3"), + // Name: to.Ptr("Standard_D8ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, // SupportedIops: to.Ptr[int32](12800), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1152,12 +898,12 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](8), // }, // { - // Name: to.Ptr("Standard_E16s_v3"), + // Name: to.Ptr("Standard_D16ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedIops: to.Ptr[int32](25600), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1165,12 +911,12 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](16), // }, // { - // Name: to.Ptr("Standard_E32s_v3"), + // Name: to.Ptr("Standard_D32ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedIops: to.Ptr[int32](51200), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1178,12 +924,12 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](32), // }, // { - // Name: to.Ptr("Standard_E48s_v3"), + // Name: to.Ptr("Standard_D48ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedIops: to.Ptr[int32](76800), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1191,12 +937,12 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](48), // }, // { - // Name: to.Ptr("Standard_E64s_v3"), + // Name: to.Ptr("Standard_D64ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](6912), + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), @@ -1204,76 +950,350 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](64), // }, // { - // Name: to.Ptr("Standard_E2ds_v4"), + // Name: to.Ptr("Standard_D96ds_v5"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](3200), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](4096), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](2), + // VCores: to.Ptr[int32](96), + // }}, + // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ + // { + // Name: to.Ptr("ManagedDisk"), + // DefaultStorageSizeMb: to.Ptr[int64](65536), + // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ + // { + // DefaultIopsTier: to.Ptr("P4"), + // StorageSizeMb: to.Ptr[int64](32768), + // SupportedIops: to.Ptr[int32](120), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P4"), + // Iops: to.Ptr[int32](120), + // }, + // { + // Name: to.Ptr("P6"), + // Iops: to.Ptr[int32](240), + // }, + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P6"), + // StorageSizeMb: to.Ptr[int64](65536), + // SupportedIops: to.Ptr[int32](240), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P6"), + // Iops: to.Ptr[int32](240), + // }, + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P10"), + // StorageSizeMb: to.Ptr[int64](131072), + // SupportedIops: to.Ptr[int32](500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P15"), + // StorageSizeMb: to.Ptr[int64](262144), + // SupportedIops: to.Ptr[int32](1100), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P20"), + // StorageSizeMb: to.Ptr[int64](524288), + // SupportedIops: to.Ptr[int32](2300), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P30"), + // StorageSizeMb: to.Ptr[int64](1048576), + // SupportedIops: to.Ptr[int32](5000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P40"), + // StorageSizeMb: to.Ptr[int64](2097152), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P50"), + // StorageSizeMb: to.Ptr[int64](4193280), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P50"), + // StorageSizeMb: to.Ptr[int64](4194304), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P60"), + // StorageSizeMb: to.Ptr[int64](8388608), + // SupportedIops: to.Ptr[int32](16000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P60"), + // Iops: to.Ptr[int32](16000), + // }, + // { + // Name: to.Ptr("P70"), + // Iops: to.Ptr[int32](18000), + // }, + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P70"), + // StorageSizeMb: to.Ptr[int64](16777216), + // SupportedIops: to.Ptr[int32](18000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P70"), + // Iops: to.Ptr[int32](18000), + // }, + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P80"), + // StorageSizeMb: to.Ptr[int64](33553408), + // SupportedIops: to.Ptr[int32](20000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }}, // }, // { - // Name: to.Ptr("Standard_E4ds_v4"), + // Name: to.Ptr("ManagedDiskV2"), + // DefaultStorageSizeMb: to.Ptr[int64](65536), + // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ + // { + // DefaultIopsTier: to.Ptr("None"), + // MaximumStorageSizeMb: to.Ptr[int64](67108864), + // StorageSizeMb: to.Ptr[int64](32768), + // SupportedIops: to.Ptr[int32](3000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("None"), + // Iops: to.Ptr[int32](0), + // }}, + // SupportedMaximumIops: to.Ptr[int32](80000), + // SupportedMaximumThroughput: to.Ptr[int32](1200), + // SupportedThroughput: to.Ptr[int32](125), + // }}, + // }}, + // }, + // { + // Name: to.Ptr("MemoryOptimized"), + // DefaultSKUName: to.Ptr("Standard_E4ads_v5"), + // SupportedServerSKUs: []*armpostgresqlflexibleservers.ServerSKUCapability{ + // { + // Name: to.Ptr("Standard_E2s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](6400), + // SupportedIops: to.Ptr[int32](3200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](4), + // VCores: to.Ptr[int32](2), // }, // { - // Name: to.Ptr("Standard_E8ds_v4"), + // Name: to.Ptr("Standard_E4s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](12800), + // SupportedIops: to.Ptr[int32](6400), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](8), + // VCores: to.Ptr[int32](4), // }, // { - // Name: to.Ptr("Standard_E16ds_v4"), + // Name: to.Ptr("Standard_E8s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](12800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](16), + // VCores: to.Ptr[int32](8), // }, // { - // Name: to.Ptr("Standard_E20ds_v4"), + // Name: to.Ptr("Standard_E16s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](20), + // VCores: to.Ptr[int32](16), // }, // { - // Name: to.Ptr("Standard_E32ds_v4"), + // Name: to.Ptr("Standard_E32s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](32000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), @@ -1282,11 +1302,11 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](32), // }, // { - // Name: to.Ptr("Standard_E48ds_v4"), + // Name: to.Ptr("Standard_E48s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), @@ -1295,11 +1315,11 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](48), // }, // { - // Name: to.Ptr("Standard_E64ds_v4"), + // Name: to.Ptr("Standard_E64s_v3"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](6912), // SupportedZones: []*string{ // to.Ptr("1"), @@ -1308,7 +1328,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](64), // }, // { - // Name: to.Ptr("Standard_E2ads_v5"), + // Name: to.Ptr("Standard_E2ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, @@ -1321,7 +1341,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](2), // }, // { - // Name: to.Ptr("Standard_E4ads_v5"), + // Name: to.Ptr("Standard_E4ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, @@ -1334,7 +1354,7 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](4), // }, // { - // Name: to.Ptr("Standard_E8ads_v5"), + // Name: to.Ptr("Standard_E8ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, @@ -1347,11 +1367,11 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](8), // }, // { - // Name: to.Ptr("Standard_E16ads_v5"), + // Name: to.Ptr("Standard_E16ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](25600), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), @@ -1360,347 +1380,605 @@ func ExampleServerCapabilitiesClient_NewListPager() { // VCores: to.Ptr[int32](16), // }, // { - // Name: to.Ptr("Standard_E32ads_v5"), + // Name: to.Ptr("Standard_E20ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](32000), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](32), + // VCores: to.Ptr[int32](20), // }, // { - // Name: to.Ptr("Standard_E48ads_v5"), + // Name: to.Ptr("Standard_E32ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](51200), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](48), + // VCores: to.Ptr[int32](32), // }, // { - // Name: to.Ptr("Standard_E64ads_v5"), + // Name: to.Ptr("Standard_E48ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), + // SupportedIops: to.Ptr[int32](76800), // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](64), + // VCores: to.Ptr[int32](48), // }, // { - // Name: to.Ptr("Standard_E96ads_v5"), + // Name: to.Ptr("Standard_E64ds_v4"), // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, - // SupportedIops: to.Ptr[int32](20000), - // SupportedMemoryPerVcoreMb: to.Ptr[int64](7168), + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](6912), // SupportedZones: []*string{ // to.Ptr("1"), // to.Ptr("2"), // to.Ptr("3")}, - // VCores: to.Ptr[int32](96), - // }}, - // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ + // VCores: to.Ptr[int32](64), + // }, // { - // Name: to.Ptr("ManagedDisk"), - // DefaultStorageSizeMb: to.Ptr[int64](131072), - // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ - // { - // DefaultIopsTier: to.Ptr("P4"), - // StorageSizeMb: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int32](120), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P4"), - // Iops: to.Ptr[int32](120), - // }, - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int32](240), - // }, - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P6"), - // StorageSizeMb: to.Ptr[int64](65536), - // SupportedIops: to.Ptr[int32](240), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P6"), - // Iops: to.Ptr[int32](240), - // }, - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P10"), - // StorageSizeMb: to.Ptr[int64](131072), - // SupportedIops: to.Ptr[int32](500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P10"), - // Iops: to.Ptr[int32](500), - // }, - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P15"), - // StorageSizeMb: to.Ptr[int64](262144), - // SupportedIops: to.Ptr[int32](1100), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P15"), - // Iops: to.Ptr[int32](1100), - // }, - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P20"), - // StorageSizeMb: to.Ptr[int64](524288), - // SupportedIops: to.Ptr[int32](2300), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P20"), - // Iops: to.Ptr[int32](2300), - // }, - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P30"), - // StorageSizeMb: to.Ptr[int64](1048576), - // SupportedIops: to.Ptr[int32](5000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P30"), - // Iops: to.Ptr[int32](5000), - // }, - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), - // }, - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, + // Name: to.Ptr("Standard_E2ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](3750), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](2), // }, // { - // DefaultIopsTier: to.Ptr("P40"), - // StorageSizeMb: to.Ptr[int64](2097152), - // SupportedIops: to.Ptr[int32](7500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P40"), - // Iops: to.Ptr[int32](7500), + // Name: to.Ptr("Standard_E4ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](6400), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](4), // }, // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P50"), - // StorageSizeMb: to.Ptr[int64](4194304), - // SupportedIops: to.Ptr[int32](7500), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P50"), - // Iops: to.Ptr[int32](7500), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P60"), - // StorageSizeMb: to.Ptr[int64](8388608), - // SupportedIops: to.Ptr[int32](16000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P60"), - // Iops: to.Ptr[int32](16000), - // }, - // { - // Name: to.Ptr("P70"), - // Iops: to.Ptr[int32](18000), - // }, - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P70"), - // StorageSizeMb: to.Ptr[int64](16777216), - // SupportedIops: to.Ptr[int32](18000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P70"), - // Iops: to.Ptr[int32](18000), - // }, - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }, - // { - // DefaultIopsTier: to.Ptr("P80"), - // StorageSizeMb: to.Ptr[int64](33553408), - // SupportedIops: to.Ptr[int32](20000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("P80"), - // Iops: to.Ptr[int32](20000), - // }}, - // }}, - // }, - // { - // Name: to.Ptr("ManagedDiskV2"), - // DefaultStorageSizeMb: to.Ptr[int64](65536), - // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ - // { - // DefaultIopsTier: to.Ptr("None"), - // MaximumStorageSizeMb: to.Ptr[int64](67108864), - // StorageSizeMb: to.Ptr[int64](32768), - // SupportedIops: to.Ptr[int32](3000), - // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ - // { - // Name: to.Ptr("None"), - // Iops: to.Ptr[int32](0), - // }}, - // SupportedMaximumIops: to.Ptr[int32](80000), - // SupportedMaximumThroughput: to.Ptr[int32](750), - // SupportedThroughput: to.Ptr[int32](125), - // }}, - // }}, - // }}, - // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ - // { - // Name: to.Ptr("11"), - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("12"), - // to.Ptr("13"), - // to.Ptr("14"), - // to.Ptr("15")}, - // }, - // { - // Name: to.Ptr("12"), - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("13"), - // to.Ptr("14"), - // to.Ptr("15")}, - // }, - // { - // Name: to.Ptr("13"), - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("14"), - // to.Ptr("15")}, - // }, - // { - // Name: to.Ptr("14"), - // SupportedVersionsToUpgrade: []*string{ - // to.Ptr("15")}, - // }}, - // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaAndGeoBackupSupportedEnumEnabled), - // ZoneRedundantHaSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaSupportedEnumEnabled), - // }}, - // } + // Name: to.Ptr("Standard_E8ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](12800), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](8), + // }, + // { + // Name: to.Ptr("Standard_E16ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](25600), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](16), + // }, + // { + // Name: to.Ptr("Standard_E20ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](32000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](20), + // }, + // { + // Name: to.Ptr("Standard_E32ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](51200), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](32), + // }, + // { + // Name: to.Ptr("Standard_E48ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](76800), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](48), + // }, + // { + // Name: to.Ptr("Standard_E64ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](64), + // }, + // { + // Name: to.Ptr("Standard_E96ads_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](7168), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](96), + // }, + // { + // Name: to.Ptr("Standard_E2ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](3750), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](2), + // }, + // { + // Name: to.Ptr("Standard_E4ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](6400), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](4), + // }, + // { + // Name: to.Ptr("Standard_E8ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](12800), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](8), + // }, + // { + // Name: to.Ptr("Standard_E16ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](25600), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](16), + // }, + // { + // Name: to.Ptr("Standard_E20ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](32000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](20), + // }, + // { + // Name: to.Ptr("Standard_E32ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](51200), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](32), + // }, + // { + // Name: to.Ptr("Standard_E48ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](76800), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](48), + // }, + // { + // Name: to.Ptr("Standard_E64ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](8192), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](64), + // }, + // { + // Name: to.Ptr("Standard_E96ds_v5"), + // SupportedHaMode: []*armpostgresqlflexibleservers.HaMode{ + // to.Ptr(armpostgresqlflexibleservers.HaModeSameZone), + // to.Ptr(armpostgresqlflexibleservers.HaModeZoneRedundant)}, + // SupportedIops: to.Ptr[int32](80000), + // SupportedMemoryPerVcoreMb: to.Ptr[int64](7168), + // SupportedZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // VCores: to.Ptr[int32](96), + // }}, + // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ + // { + // Name: to.Ptr("ManagedDisk"), + // DefaultStorageSizeMb: to.Ptr[int64](131072), + // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ + // { + // DefaultIopsTier: to.Ptr("P4"), + // StorageSizeMb: to.Ptr[int64](32768), + // SupportedIops: to.Ptr[int32](120), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P4"), + // Iops: to.Ptr[int32](120), + // }, + // { + // Name: to.Ptr("P6"), + // Iops: to.Ptr[int32](240), + // }, + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P6"), + // StorageSizeMb: to.Ptr[int64](65536), + // SupportedIops: to.Ptr[int32](240), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P6"), + // Iops: to.Ptr[int32](240), + // }, + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P10"), + // StorageSizeMb: to.Ptr[int64](131072), + // SupportedIops: to.Ptr[int32](500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P10"), + // Iops: to.Ptr[int32](500), + // }, + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P15"), + // StorageSizeMb: to.Ptr[int64](262144), + // SupportedIops: to.Ptr[int32](1100), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P15"), + // Iops: to.Ptr[int32](1100), + // }, + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P20"), + // StorageSizeMb: to.Ptr[int64](524288), + // SupportedIops: to.Ptr[int32](2300), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P20"), + // Iops: to.Ptr[int32](2300), + // }, + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P30"), + // StorageSizeMb: to.Ptr[int64](1048576), + // SupportedIops: to.Ptr[int32](5000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P30"), + // Iops: to.Ptr[int32](5000), + // }, + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P40"), + // StorageSizeMb: to.Ptr[int64](2097152), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P40"), + // Iops: to.Ptr[int32](7500), + // }, + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P50"), + // StorageSizeMb: to.Ptr[int64](4193280), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P50"), + // StorageSizeMb: to.Ptr[int64](4194304), + // SupportedIops: to.Ptr[int32](7500), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P50"), + // Iops: to.Ptr[int32](7500), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P60"), + // StorageSizeMb: to.Ptr[int64](8388608), + // SupportedIops: to.Ptr[int32](16000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P60"), + // Iops: to.Ptr[int32](16000), + // }, + // { + // Name: to.Ptr("P70"), + // Iops: to.Ptr[int32](18000), + // }, + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P70"), + // StorageSizeMb: to.Ptr[int64](16777216), + // SupportedIops: to.Ptr[int32](18000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P70"), + // Iops: to.Ptr[int32](18000), + // }, + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }, + // { + // DefaultIopsTier: to.Ptr("P80"), + // StorageSizeMb: to.Ptr[int64](33553408), + // SupportedIops: to.Ptr[int32](20000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("P80"), + // Iops: to.Ptr[int32](20000), + // }}, + // }}, + // }, + // { + // Name: to.Ptr("ManagedDiskV2"), + // DefaultStorageSizeMb: to.Ptr[int64](131072), + // SupportedStorageMb: []*armpostgresqlflexibleservers.StorageMbCapability{ + // { + // DefaultIopsTier: to.Ptr("None"), + // MaximumStorageSizeMb: to.Ptr[int64](67108864), + // StorageSizeMb: to.Ptr[int64](32768), + // SupportedIops: to.Ptr[int32](3000), + // SupportedIopsTiers: []*armpostgresqlflexibleservers.StorageTierCapability{ + // { + // Name: to.Ptr("None"), + // Iops: to.Ptr[int32](0), + // }}, + // SupportedMaximumIops: to.Ptr[int32](80000), + // SupportedMaximumThroughput: to.Ptr[int32](1200), + // SupportedThroughput: to.Ptr[int32](125), + // }}, + // }}, + // }}, + // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ + // { + // Name: to.Ptr("11"), + // SupportedVersionsToUpgrade: []*string{ + // to.Ptr("12"), + // to.Ptr("13"), + // to.Ptr("14"), + // to.Ptr("15"), + // to.Ptr("16")}, + // }, + // { + // Name: to.Ptr("12"), + // SupportedVersionsToUpgrade: []*string{ + // to.Ptr("13"), + // to.Ptr("14"), + // to.Ptr("15"), + // to.Ptr("16")}, + // }, + // { + // Name: to.Ptr("13"), + // SupportedVersionsToUpgrade: []*string{ + // to.Ptr("14"), + // to.Ptr("15"), + // to.Ptr("16")}, + // }, + // { + // Name: to.Ptr("14"), + // SupportedVersionsToUpgrade: []*string{ + // to.Ptr("15"), + // to.Ptr("16")}, + // }, + // { + // Name: to.Ptr("15"), + // SupportedVersionsToUpgrade: []*string{ + // to.Ptr("16")}, + // }, + // { + // Name: to.Ptr("16"), + // SupportedVersionsToUpgrade: []*string{ + // }, + // }}, + // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaAndGeoBackupSupportedEnumEnabled), + // ZoneRedundantHaSupported: to.Ptr(armpostgresqlflexibleservers.ZoneRedundantHaSupportedEnumEnabled), + // }}, + // } } } diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servers_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servers_client.go index 3af79c908c91..b13c792f8e5e 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servers_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servers_client.go @@ -46,7 +46,7 @@ func NewServersClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreate - Creates a new server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - parameters - The required parameters for creating or updating a server. @@ -72,7 +72,7 @@ func (client *ServersClient) BeginCreate(ctx context.Context, resourceGroupName // Create - Creates a new server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *ServersClient) create(ctx context.Context, resourceGroupName string, serverName string, parameters Server, options *ServersClientBeginCreateOptions) (*http.Response, error) { var err error const operationName = "ServersClient.BeginCreate" @@ -114,7 +114,7 @@ func (client *ServersClient) createCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -126,7 +126,7 @@ func (client *ServersClient) createCreateRequest(ctx context.Context, resourceGr // BeginDelete - Deletes a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - ServersClientBeginDeleteOptions contains the optional parameters for the ServersClient.BeginDelete method. @@ -151,7 +151,7 @@ func (client *ServersClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Deletes a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *ServersClient) deleteOperation(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "ServersClient.BeginDelete" @@ -193,7 +193,7 @@ func (client *ServersClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -202,7 +202,7 @@ func (client *ServersClient) deleteCreateRequest(ctx context.Context, resourceGr // Get - Gets information about a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - ServersClientGetOptions contains the optional parameters for the ServersClient.Get method. @@ -248,7 +248,7 @@ func (client *ServersClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -265,7 +265,7 @@ func (client *ServersClient) getHandleResponse(resp *http.Response) (ServersClie // NewListPager - List all the servers in a given subscription. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - options - ServersClientListOptions contains the optional parameters for the ServersClient.NewListPager method. func (client *ServersClient) NewListPager(options *ServersClientListOptions) *runtime.Pager[ServersClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ServersClientListResponse]{ @@ -302,7 +302,7 @@ func (client *ServersClient) listCreateRequest(ctx context.Context, options *Ser return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -319,7 +319,7 @@ func (client *ServersClient) listHandleResponse(resp *http.Response) (ServersCli // NewListByResourceGroupPager - List all the servers in a given resource group. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - ServersClientListByResourceGroupOptions contains the optional parameters for the ServersClient.NewListByResourceGroupPager // method. @@ -362,7 +362,7 @@ func (client *ServersClient) listByResourceGroupCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -380,7 +380,7 @@ func (client *ServersClient) listByResourceGroupHandleResponse(resp *http.Respon // BeginRestart - Restarts a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - ServersClientBeginRestartOptions contains the optional parameters for the ServersClient.BeginRestart method. @@ -405,7 +405,7 @@ func (client *ServersClient) BeginRestart(ctx context.Context, resourceGroupName // Restart - Restarts a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *ServersClient) restart(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginRestartOptions) (*http.Response, error) { var err error const operationName = "ServersClient.BeginRestart" @@ -447,7 +447,7 @@ func (client *ServersClient) restartCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { @@ -462,7 +462,7 @@ func (client *ServersClient) restartCreateRequest(ctx context.Context, resourceG // BeginStart - Starts a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - ServersClientBeginStartOptions contains the optional parameters for the ServersClient.BeginStart method. @@ -487,7 +487,7 @@ func (client *ServersClient) BeginStart(ctx context.Context, resourceGroupName s // Start - Starts a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *ServersClient) start(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginStartOptions) (*http.Response, error) { var err error const operationName = "ServersClient.BeginStart" @@ -529,7 +529,7 @@ func (client *ServersClient) startCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -538,7 +538,7 @@ func (client *ServersClient) startCreateRequest(ctx context.Context, resourceGro // BeginStop - Stops a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - ServersClientBeginStopOptions contains the optional parameters for the ServersClient.BeginStop method. @@ -563,7 +563,7 @@ func (client *ServersClient) BeginStop(ctx context.Context, resourceGroupName st // Stop - Stops a server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *ServersClient) stop(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginStopOptions) (*http.Response, error) { var err error const operationName = "ServersClient.BeginStop" @@ -605,7 +605,7 @@ func (client *ServersClient) stopCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -615,7 +615,7 @@ func (client *ServersClient) stopCreateRequest(ctx context.Context, resourceGrou // server definition. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - parameters - The required parameters for updating a server. @@ -642,7 +642,7 @@ func (client *ServersClient) BeginUpdate(ctx context.Context, resourceGroupName // definition. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *ServersClient) update(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForUpdate, options *ServersClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "ServersClient.BeginUpdate" @@ -684,7 +684,7 @@ func (client *ServersClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servers_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servers_client_example_test.go index 5bea7e497558..019693492d16 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servers_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/servers_client_example_test.go @@ -20,7 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerCreateGeoRestoreWithDataEncryptionEnabled.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCreateGeoRestoreWithDataEncryptionEnabled.json func ExampleServersClient_BeginCreate_createADatabaseAsAGeoRestoreInGeoPairedLocation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -136,7 +136,7 @@ func ExampleServersClient_BeginCreate_createADatabaseAsAGeoRestoreInGeoPairedLoc // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerCreatePointInTimeRestore.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCreatePointInTimeRestore.json func ExampleServersClient_BeginCreate_createADatabaseAsAPointInTimeRestore() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -219,7 +219,7 @@ func ExampleServersClient_BeginCreate_createADatabaseAsAPointInTimeRestore() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCreate.json func ExampleServersClient_BeginCreate_createANewServer() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -330,7 +330,7 @@ func ExampleServersClient_BeginCreate_createANewServer() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerCreateWithAadAuthEnabled.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCreateWithAadAuthEnabled.json func ExampleServersClient_BeginCreate_createANewServerWithActiveDirectoryAuthenticationEnabled() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -447,7 +447,7 @@ func ExampleServersClient_BeginCreate_createANewServerWithActiveDirectoryAuthent // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerCreateReplica.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCreateReplica.json func ExampleServersClient_BeginCreate_serverCreateReplica() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -563,7 +563,7 @@ func ExampleServersClient_BeginCreate_serverCreateReplica() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerCreateReviveDropped.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCreateReviveDropped.json func ExampleServersClient_BeginCreate_serverCreateReviveDropped() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -645,7 +645,7 @@ func ExampleServersClient_BeginCreate_serverCreateReviveDropped() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerCreateWithDataEncryptionEnabled.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerCreateWithDataEncryptionEnabled.json func ExampleServersClient_BeginCreate_serverCreateWithDataEncryptionEnabled() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -780,7 +780,7 @@ func ExampleServersClient_BeginCreate_serverCreateWithDataEncryptionEnabled() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/PromoteReplicaAsForcedStandaloneServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/PromoteReplicaAsForcedStandaloneServer.json func ExampleServersClient_BeginUpdate_promoteAReplicaServerAsAStandaloneServerAsForcedIEItWillPromoteAReplicaServerImmediatelyWithoutWaitingForPrimaryAndReplicaToBeInSync() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -870,7 +870,7 @@ func ExampleServersClient_BeginUpdate_promoteAReplicaServerAsAStandaloneServerAs // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/PromoteReplicaAsPlannedStandaloneServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/PromoteReplicaAsPlannedStandaloneServer.json func ExampleServersClient_BeginUpdate_promoteAReplicaServerAsAStandaloneServerAsPlannedIEItWillWaitForReplicationToComplete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -960,7 +960,7 @@ func ExampleServersClient_BeginUpdate_promoteAReplicaServerAsAStandaloneServerAs // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerUpdate.json func ExampleServersClient_BeginUpdate_serverUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1056,7 +1056,7 @@ func ExampleServersClient_BeginUpdate_serverUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerUpdateWithAadAuthEnabled.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerUpdateWithAadAuthEnabled.json func ExampleServersClient_BeginUpdate_serverUpdateWithAadAuthEnabled() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1158,7 +1158,7 @@ func ExampleServersClient_BeginUpdate_serverUpdateWithAadAuthEnabled() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json func ExampleServersClient_BeginUpdate_serverUpdateWithCustomerMaintenanceWindow() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1247,7 +1247,7 @@ func ExampleServersClient_BeginUpdate_serverUpdateWithCustomerMaintenanceWindow( // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerUpdateWithDataEncryptionEnabled.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerUpdateWithDataEncryptionEnabled.json func ExampleServersClient_BeginUpdate_serverUpdateWithDataEncryptionEnabled() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1375,7 +1375,7 @@ func ExampleServersClient_BeginUpdate_serverUpdateWithDataEncryptionEnabled() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerUpdateWithMajorVersionUpgrade.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerUpdateWithMajorVersionUpgrade.json func ExampleServersClient_BeginUpdate_serverUpdateWithMajorVersionUpgrade() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1459,7 +1459,7 @@ func ExampleServersClient_BeginUpdate_serverUpdateWithMajorVersionUpgrade() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/PromoteReplicaAsForcedSwitchover.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/PromoteReplicaAsForcedSwitchover.json func ExampleServersClient_BeginUpdate_switchOverAReplicaServerAsForcedIEItWillReplicaAsPrimaryAndOriginalPrimaryAsReplicaImmediatelyWithoutWaitingForPrimaryAndReplicaToBeInSync() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1549,7 +1549,7 @@ func ExampleServersClient_BeginUpdate_switchOverAReplicaServerAsForcedIEItWillRe // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/PromoteReplicaAsPlannedSwitchover.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/PromoteReplicaAsPlannedSwitchover.json func ExampleServersClient_BeginUpdate_switchOverAReplicaServerAsPlannedIEItWillWaitForReplicationToCompleteBeforePromotingReplicaAsPrimaryAndOriginalPrimaryAsReplica() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1639,7 +1639,7 @@ func ExampleServersClient_BeginUpdate_switchOverAReplicaServerAsPlannedIEItWillW // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerDelete.json func ExampleServersClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1660,7 +1660,7 @@ func ExampleServersClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerGet.json func ExampleServersClient_Get_serverGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1729,7 +1729,7 @@ func ExampleServersClient_Get_serverGet() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerGetWithPrivateEndpoints.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerGetWithPrivateEndpoints.json func ExampleServersClient_Get_serverGetWithPrivateEndpoints() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1817,7 +1817,7 @@ func ExampleServersClient_Get_serverGetWithPrivateEndpoints() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerGetWithVnet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerGetWithVnet.json func ExampleServersClient_Get_serverGetWithVnet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1889,7 +1889,7 @@ func ExampleServersClient_Get_serverGetWithVnet() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerListByResourceGroup.json func ExampleServersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2006,7 +2006,7 @@ func ExampleServersClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerList.json func ExampleServersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2121,7 +2121,7 @@ func ExampleServersClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerRestart.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerRestart.json func ExampleServersClient_BeginRestart_serverRestart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2142,7 +2142,7 @@ func ExampleServersClient_BeginRestart_serverRestart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerRestartWithFailover.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerRestartWithFailover.json func ExampleServersClient_BeginRestart_serverRestartWithFailover() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2167,7 +2167,7 @@ func ExampleServersClient_BeginRestart_serverRestartWithFailover() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerStart.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerStart.json func ExampleServersClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2188,7 +2188,7 @@ func ExampleServersClient_BeginStart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerStop.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerStop.json func ExampleServersClient_BeginStop() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/serverthreatprotectionsettings_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/serverthreatprotectionsettings_client.go index f1ba3541d370..11ab03cdfbbb 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/serverthreatprotectionsettings_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/serverthreatprotectionsettings_client.go @@ -46,7 +46,7 @@ func NewServerThreatProtectionSettingsClient(subscriptionID string, credential a // BeginCreateOrUpdate - Creates or updates a server's Advanced Threat Protection settings. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - threatProtectionName - The name of the Threat Protection state. @@ -74,7 +74,7 @@ func (client *ServerThreatProtectionSettingsClient) BeginCreateOrUpdate(ctx cont // CreateOrUpdate - Creates or updates a server's Advanced Threat Protection settings. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *ServerThreatProtectionSettingsClient) createOrUpdate(ctx context.Context, resourceGroupName string, serverName string, threatProtectionName ThreatProtectionName, parameters ServerThreatProtectionSettingsModel, options *ServerThreatProtectionSettingsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "ServerThreatProtectionSettingsClient.BeginCreateOrUpdate" @@ -120,7 +120,7 @@ func (client *ServerThreatProtectionSettingsClient) createOrUpdateCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -132,7 +132,7 @@ func (client *ServerThreatProtectionSettingsClient) createOrUpdateCreateRequest( // Get - Get a server's Advanced Threat Protection settings. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - threatProtectionName - The name of the Threat Protection state. @@ -184,7 +184,7 @@ func (client *ServerThreatProtectionSettingsClient) getCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -201,7 +201,7 @@ func (client *ServerThreatProtectionSettingsClient) getHandleResponse(resp *http // NewListByServerPager - Get a list of server's Threat Protection state. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - ServerThreatProtectionSettingsClientListByServerOptions contains the optional parameters for the ServerThreatProtectionSettingsClient.NewListByServerPager @@ -249,7 +249,7 @@ func (client *ServerThreatProtectionSettingsClient) listByServerCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/serverthreatprotectionsettings_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/serverthreatprotectionsettings_client_example_test.go index e220d2c1ad0f..5f28f955692c 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/serverthreatprotectionsettings_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/serverthreatprotectionsettings_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerThreatProtectionSettingsListByServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerThreatProtectionSettingsListByServer.json func ExampleServerThreatProtectionSettingsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -55,7 +55,7 @@ func ExampleServerThreatProtectionSettingsClient_NewListByServerPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerThreatProtectionSettingsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerThreatProtectionSettingsGet.json func ExampleServerThreatProtectionSettingsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -84,7 +84,7 @@ func ExampleServerThreatProtectionSettingsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/ServerThreatProtectionSettingsCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/ServerThreatProtectionSettingsCreateOrUpdate.json func ExampleServerThreatProtectionSettingsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/utils_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/utils_test.go new file mode 100644 index 000000000000..e93990a06c2d --- /dev/null +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/utils_test.go @@ -0,0 +1,29 @@ +//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. + +package armpostgresqlflexibleservers_test + +import ( + "os" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3/testutil" +) + +const ( + pathToPackage = "sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/testdata" +) + +func TestMain(m *testing.M) { + code := run(m) + os.Exit(code) +} + +func run(m *testing.M) int { + f := testutil.StartProxy(pathToPackage) + defer f() + return m.Run() +} diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualendpoints_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualendpoints_client.go index fc25c762adcc..ad768a36628d 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualendpoints_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualendpoints_client.go @@ -46,7 +46,7 @@ func NewVirtualEndpointsClient(subscriptionID string, credential azcore.TokenCre // BeginCreate - Creates a new virtual endpoint for PostgreSQL flexible server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - virtualEndpointName - The name of the virtual endpoint. @@ -74,7 +74,7 @@ func (client *VirtualEndpointsClient) BeginCreate(ctx context.Context, resourceG // Create - Creates a new virtual endpoint for PostgreSQL flexible server. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *VirtualEndpointsClient) create(ctx context.Context, resourceGroupName string, serverName string, virtualEndpointName string, parameters VirtualEndpointResource, options *VirtualEndpointsClientBeginCreateOptions) (*http.Response, error) { var err error const operationName = "VirtualEndpointsClient.BeginCreate" @@ -120,7 +120,7 @@ func (client *VirtualEndpointsClient) createCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -132,7 +132,7 @@ func (client *VirtualEndpointsClient) createCreateRequest(ctx context.Context, r // BeginDelete - Deletes a virtual endpoint. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - virtualEndpointName - The name of the virtual endpoint. @@ -159,7 +159,7 @@ func (client *VirtualEndpointsClient) BeginDelete(ctx context.Context, resourceG // Delete - Deletes a virtual endpoint. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *VirtualEndpointsClient) deleteOperation(ctx context.Context, resourceGroupName string, serverName string, virtualEndpointName string, options *VirtualEndpointsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "VirtualEndpointsClient.BeginDelete" @@ -205,7 +205,7 @@ func (client *VirtualEndpointsClient) deleteCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -214,7 +214,7 @@ func (client *VirtualEndpointsClient) deleteCreateRequest(ctx context.Context, r // Get - Gets information about a virtual endpoint. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - virtualEndpointName - The name of the virtual endpoint. @@ -265,7 +265,7 @@ func (client *VirtualEndpointsClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -282,7 +282,7 @@ func (client *VirtualEndpointsClient) getHandleResponse(resp *http.Response) (Vi // NewListByServerPager - List all the servers in a given resource group. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - options - VirtualEndpointsClientListByServerOptions contains the optional parameters for the VirtualEndpointsClient.NewListByServerPager @@ -330,7 +330,7 @@ func (client *VirtualEndpointsClient) listByServerCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -349,7 +349,7 @@ func (client *VirtualEndpointsClient) listByServerHandleResponse(resp *http.Resp // in the normal virtual endpoint definition. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - serverName - The name of the server. // - virtualEndpointName - The name of the virtual endpoint. @@ -378,7 +378,7 @@ func (client *VirtualEndpointsClient) BeginUpdate(ctx context.Context, resourceG // normal virtual endpoint definition. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 func (client *VirtualEndpointsClient) update(ctx context.Context, resourceGroupName string, serverName string, virtualEndpointName string, parameters VirtualEndpointResourceForPatch, options *VirtualEndpointsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "VirtualEndpointsClient.BeginUpdate" @@ -424,7 +424,7 @@ func (client *VirtualEndpointsClient) updateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualendpoints_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualendpoints_client_example_test.go index aa8245a870a1..63903245f51e 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualendpoints_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualendpoints_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/VirtualEndpointCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/VirtualEndpointCreate.json func ExampleVirtualEndpointsClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -61,7 +61,7 @@ func ExampleVirtualEndpointsClient_BeginCreate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/VirtualEndpointUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/VirtualEndpointUpdate.json func ExampleVirtualEndpointsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -104,7 +104,7 @@ func ExampleVirtualEndpointsClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/VirtualEndpointDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/VirtualEndpointDelete.json func ExampleVirtualEndpointsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -125,7 +125,7 @@ func ExampleVirtualEndpointsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/VirtualEndpointsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/VirtualEndpointsGet.json func ExampleVirtualEndpointsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -158,7 +158,7 @@ func ExampleVirtualEndpointsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/VirtualEndpointsListByServer.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/VirtualEndpointsListByServer.json func ExampleVirtualEndpointsClient_NewListByServerPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualnetworksubnetusage_client.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualnetworksubnetusage_client.go index fbd00545fb4a..6f14bcaa1bfb 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualnetworksubnetusage_client.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualnetworksubnetusage_client.go @@ -46,7 +46,7 @@ func NewVirtualNetworkSubnetUsageClient(subscriptionID string, credential azcore // Execute - Get virtual network subnet usage for a given vNet resource id. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01-preview +// Generated from API version 2024-08-01 // - locationName - The name of the location. // - parameters - The required parameters for creating or updating a server. // - options - VirtualNetworkSubnetUsageClientExecuteOptions contains the optional parameters for the VirtualNetworkSubnetUsageClient.Execute @@ -89,7 +89,7 @@ func (client *VirtualNetworkSubnetUsageClient) executeCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01-preview") + reqQP.Set("api-version", "2024-08-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualnetworksubnetusage_client_example_test.go b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualnetworksubnetusage_client_example_test.go index 911b7b435350..e51dd4a50984 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualnetworksubnetusage_client_example_test.go +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/virtualnetworksubnetusage_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/examples/VirtualNetworkSubnetUsage.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/10925e3dec73699b950f256576cd6983947faaa3/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2024-08-01/examples/VirtualNetworkSubnetUsage.json func ExampleVirtualNetworkSubnetUsageClient_Execute() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil {