Documentation ¶
Index ¶
- type ActiveDirectoryAdministrator
- type ActiveDirectoryAdministratorAdd
- type ActiveDirectoryAuthEnum
- type AdministratorListResult
- type AdministratorProperties
- type AdministratorPropertiesForAdd
- type AdministratorsClient
- func (client *AdministratorsClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[AdministratorsClientCreateResponse], error)
- func (client *AdministratorsClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[AdministratorsClientDeleteResponse], error)
- func (client *AdministratorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (AdministratorsClientGetResponse, error)
- func (client *AdministratorsClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[AdministratorsClientListByServerResponse]
- type AdministratorsClientBeginCreateOptions
- type AdministratorsClientBeginDeleteOptions
- type AdministratorsClientCreateResponse
- type AdministratorsClientDeleteResponse
- type AdministratorsClientGetOptions
- type AdministratorsClientGetResponse
- type AdministratorsClientListByServerOptions
- type AdministratorsClientListByServerResponse
- type ArmServerKeyType
- type AuthConfig
- type Backup
- type BackupsClient
- type BackupsClientGetOptions
- type BackupsClientGetResponse
- type BackupsClientListByServerOptions
- type BackupsClientListByServerResponse
- type CapabilitiesListResult
- type CapabilityProperties
- type CheckNameAvailabilityClient
- type CheckNameAvailabilityClientExecuteOptions
- type CheckNameAvailabilityClientExecuteResponse
- type CheckNameAvailabilityReason
- type CheckNameAvailabilityRequest
- type CheckNameAvailabilityWithLocationClient
- type CheckNameAvailabilityWithLocationClientExecuteOptions
- type CheckNameAvailabilityWithLocationClientExecuteResponse
- type ClientFactory
- func (c *ClientFactory) NewAdministratorsClient() *AdministratorsClient
- func (c *ClientFactory) NewBackupsClient() *BackupsClient
- func (c *ClientFactory) NewCheckNameAvailabilityClient() *CheckNameAvailabilityClient
- func (c *ClientFactory) NewCheckNameAvailabilityWithLocationClient() *CheckNameAvailabilityWithLocationClient
- func (c *ClientFactory) NewConfigurationsClient() *ConfigurationsClient
- func (c *ClientFactory) NewDatabasesClient() *DatabasesClient
- func (c *ClientFactory) NewFirewallRulesClient() *FirewallRulesClient
- func (c *ClientFactory) NewGetPrivateDNSZoneSuffixClient() *GetPrivateDNSZoneSuffixClient
- func (c *ClientFactory) NewLocationBasedCapabilitiesClient() *LocationBasedCapabilitiesClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewReplicasClient() *ReplicasClient
- func (c *ClientFactory) NewServersClient() *ServersClient
- func (c *ClientFactory) NewVirtualNetworkSubnetUsageClient() *VirtualNetworkSubnetUsageClient
- type Configuration
- type ConfigurationDataType
- type ConfigurationForUpdate
- type ConfigurationListResult
- type ConfigurationProperties
- type ConfigurationsClient
- func (client *ConfigurationsClient) BeginPut(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ConfigurationsClientPutResponse], error)
- func (client *ConfigurationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ConfigurationsClientUpdateResponse], error)
- func (client *ConfigurationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (ConfigurationsClientGetResponse, error)
- func (client *ConfigurationsClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[ConfigurationsClientListByServerResponse]
- type ConfigurationsClientBeginPutOptions
- type ConfigurationsClientBeginUpdateOptions
- type ConfigurationsClientGetOptions
- type ConfigurationsClientGetResponse
- type ConfigurationsClientListByServerOptions
- type ConfigurationsClientListByServerResponse
- type ConfigurationsClientPutResponse
- type ConfigurationsClientUpdateResponse
- type CreateMode
- type CreateModeForUpdate
- type CreatedByType
- type DataEncryption
- type Database
- type DatabaseListResult
- type DatabaseProperties
- type DatabasesClient
- func (client *DatabasesClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[DatabasesClientCreateResponse], error)
- func (client *DatabasesClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[DatabasesClientDeleteResponse], error)
- func (client *DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (DatabasesClientGetResponse, error)
- func (client *DatabasesClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[DatabasesClientListByServerResponse]
- type DatabasesClientBeginCreateOptions
- type DatabasesClientBeginDeleteOptions
- type DatabasesClientCreateResponse
- type DatabasesClientDeleteResponse
- type DatabasesClientGetOptions
- type DatabasesClientGetResponse
- type DatabasesClientListByServerOptions
- type DatabasesClientListByServerResponse
- type DelegatedSubnetUsage
- type FailoverMode
- type FastProvisioningEditionCapability
- type FirewallRule
- type FirewallRuleListResult
- type FirewallRuleProperties
- type FirewallRulesClient
- func (client *FirewallRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[FirewallRulesClientCreateOrUpdateResponse], error)
- func (client *FirewallRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[FirewallRulesClientDeleteResponse], error)
- func (client *FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (FirewallRulesClientGetResponse, error)
- func (client *FirewallRulesClient) NewListByServerPager(resourceGroupName string, serverName string, ...) *runtime.Pager[FirewallRulesClientListByServerResponse]
- type FirewallRulesClientBeginCreateOrUpdateOptions
- type FirewallRulesClientBeginDeleteOptions
- type FirewallRulesClientCreateOrUpdateResponse
- type FirewallRulesClientDeleteResponse
- type FirewallRulesClientGetOptions
- type FirewallRulesClientGetResponse
- type FirewallRulesClientListByServerOptions
- type FirewallRulesClientListByServerResponse
- type FlexibleServerEditionCapability
- type GeoRedundantBackupEnum
- type GetPrivateDNSZoneSuffixClient
- type GetPrivateDNSZoneSuffixClientExecuteOptions
- type GetPrivateDNSZoneSuffixClientExecuteResponse
- type HighAvailability
- type HighAvailabilityMode
- type HyperscaleNodeEditionCapability
- type IdentityType
- type LocationBasedCapabilitiesClient
- type LocationBasedCapabilitiesClientExecuteOptions
- type LocationBasedCapabilitiesClientExecuteResponse
- type MaintenanceWindow
- type NameAvailability
- type Network
- type NodeTypeCapability
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationOrigin
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type PasswordAuthEnum
- type PrincipalType
- type ReplicasClient
- type ReplicasClientListByServerOptions
- type ReplicasClientListByServerResponse
- type ReplicationRole
- type RestartParameter
- type SKU
- type SKUTier
- type Server
- type ServerBackup
- type ServerBackupListResult
- type ServerBackupProperties
- type ServerForUpdate
- type ServerHAState
- type ServerListResult
- type ServerProperties
- type ServerPropertiesForUpdate
- type ServerPublicNetworkAccessState
- type ServerState
- type ServerVersion
- type ServerVersionCapability
- type ServersClient
- func (client *ServersClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientCreateResponse], error)
- func (client *ServersClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientDeleteResponse], error)
- func (client *ServersClient) BeginRestart(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientRestartResponse], error)
- func (client *ServersClient) BeginStart(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientStartResponse], error)
- func (client *ServersClient) BeginStop(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientStopResponse], error)
- func (client *ServersClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (*runtime.Poller[ServersClientUpdateResponse], error)
- func (client *ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (ServersClientGetResponse, error)
- func (client *ServersClient) NewListByResourceGroupPager(resourceGroupName string, options *ServersClientListByResourceGroupOptions) *runtime.Pager[ServersClientListByResourceGroupResponse]
- func (client *ServersClient) NewListPager(options *ServersClientListOptions) *runtime.Pager[ServersClientListResponse]
- type ServersClientBeginCreateOptions
- type ServersClientBeginDeleteOptions
- type ServersClientBeginRestartOptions
- type ServersClientBeginStartOptions
- type ServersClientBeginStopOptions
- type ServersClientBeginUpdateOptions
- type ServersClientCreateResponse
- type ServersClientDeleteResponse
- type ServersClientGetOptions
- type ServersClientGetResponse
- type ServersClientListByResourceGroupOptions
- type ServersClientListByResourceGroupResponse
- type ServersClientListOptions
- type ServersClientListResponse
- type ServersClientRestartResponse
- type ServersClientStartResponse
- type ServersClientStopResponse
- type ServersClientUpdateResponse
- type Storage
- type StorageEditionCapability
- type StorageMBCapability
- type StorageTierCapability
- type SystemData
- type UserAssignedIdentity
- type UserIdentity
- type VcoreCapability
- type VirtualNetworkSubnetUsageClient
- type VirtualNetworkSubnetUsageClientExecuteOptions
- type VirtualNetworkSubnetUsageClientExecuteResponse
- type VirtualNetworkSubnetUsageParameter
- type VirtualNetworkSubnetUsageResult
Examples ¶
- AdministratorsClient.BeginCreate
- AdministratorsClient.BeginDelete
- AdministratorsClient.Get
- AdministratorsClient.NewListByServerPager
- BackupsClient.Get
- BackupsClient.NewListByServerPager
- CheckNameAvailabilityClient.Execute
- CheckNameAvailabilityWithLocationClient.Execute
- ConfigurationsClient.BeginUpdate
- ConfigurationsClient.Get
- ConfigurationsClient.NewListByServerPager
- DatabasesClient.BeginCreate
- DatabasesClient.BeginDelete
- DatabasesClient.Get
- DatabasesClient.NewListByServerPager
- FirewallRulesClient.BeginCreateOrUpdate
- FirewallRulesClient.BeginDelete
- FirewallRulesClient.Get
- FirewallRulesClient.NewListByServerPager
- GetPrivateDNSZoneSuffixClient.Execute
- LocationBasedCapabilitiesClient.NewExecutePager
- OperationsClient.List
- ReplicasClient.NewListByServerPager
- ServersClient.BeginCreate (CreateADatabaseAsAGeoRestoreInGeoPairedLocation)
- ServersClient.BeginCreate (CreateADatabaseAsAPointInTimeRestore)
- ServersClient.BeginCreate (CreateANewServer)
- ServersClient.BeginCreate (CreateANewServerWithActiveDirectoryAuthenticationEnabled)
- ServersClient.BeginCreate (ServerCreateReplica)
- ServersClient.BeginCreate (ServerCreateWithDataEncryptionEnabled)
- ServersClient.BeginDelete
- ServersClient.BeginRestart (ServerRestart)
- ServersClient.BeginRestart (ServerRestartWithFailover)
- ServersClient.BeginStart
- ServersClient.BeginStop
- ServersClient.BeginUpdate (ServerUpdate)
- ServersClient.BeginUpdate (ServerUpdateWithAadAuthEnabled)
- ServersClient.BeginUpdate (ServerUpdateWithCustomerMaintenanceWindow)
- ServersClient.BeginUpdate (ServerUpdateWithDataEncryptionEnabled)
- ServersClient.BeginUpdate (ServerUpdateWithMajorVersionUpgrade)
- ServersClient.Get (ServerGet)
- ServersClient.Get (ServerGetWithVnet)
- ServersClient.NewListByResourceGroupPager
- ServersClient.NewListPager
- VirtualNetworkSubnetUsageClient.Execute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveDirectoryAdministrator ¶
type ActiveDirectoryAdministrator struct { // REQUIRED; Properties of the active directory administrator. Properties *AdministratorProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
ActiveDirectoryAdministrator - Represents an Active Directory administrator.
func (ActiveDirectoryAdministrator) MarshalJSON ¶
func (a ActiveDirectoryAdministrator) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ActiveDirectoryAdministrator.
func (*ActiveDirectoryAdministrator) UnmarshalJSON ¶
func (a *ActiveDirectoryAdministrator) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ActiveDirectoryAdministrator.
type ActiveDirectoryAdministratorAdd ¶
type ActiveDirectoryAdministratorAdd struct { // Properties of the active directory administrator. Properties *AdministratorPropertiesForAdd }
ActiveDirectoryAdministratorAdd - Represents an Active Directory administrator.
func (ActiveDirectoryAdministratorAdd) MarshalJSON ¶
func (a ActiveDirectoryAdministratorAdd) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ActiveDirectoryAdministratorAdd.
func (*ActiveDirectoryAdministratorAdd) UnmarshalJSON ¶
func (a *ActiveDirectoryAdministratorAdd) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ActiveDirectoryAdministratorAdd.
type ActiveDirectoryAuthEnum ¶
type ActiveDirectoryAuthEnum string
ActiveDirectoryAuthEnum - If Enabled, Azure Active Directory authentication is enabled.
const ( ActiveDirectoryAuthEnumDisabled ActiveDirectoryAuthEnum = "Disabled" ActiveDirectoryAuthEnumEnabled ActiveDirectoryAuthEnum = "Enabled" )
func PossibleActiveDirectoryAuthEnumValues ¶
func PossibleActiveDirectoryAuthEnumValues() []ActiveDirectoryAuthEnum
PossibleActiveDirectoryAuthEnumValues returns the possible values for the ActiveDirectoryAuthEnum const type.
type AdministratorListResult ¶
type AdministratorListResult struct { // The link used to get the next page of active directory. NextLink *string // The list of active directory administrators Value []*ActiveDirectoryAdministrator }
AdministratorListResult - A list of active directory administrators.
func (AdministratorListResult) MarshalJSON ¶
func (a AdministratorListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdministratorListResult.
func (*AdministratorListResult) UnmarshalJSON ¶
func (a *AdministratorListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AdministratorListResult.
type AdministratorProperties ¶
type AdministratorProperties struct { // The objectId of the Active Directory administrator. ObjectID *string // Active Directory administrator principal name. PrincipalName *string // The principal type used to represent the type of Active Directory Administrator. PrincipalType *PrincipalType // The tenantId of the Active Directory administrator. TenantID *string }
AdministratorProperties - The properties of an Active Directory administrator.
func (AdministratorProperties) MarshalJSON ¶
func (a AdministratorProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdministratorProperties.
func (*AdministratorProperties) UnmarshalJSON ¶
func (a *AdministratorProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AdministratorProperties.
type AdministratorPropertiesForAdd ¶
type AdministratorPropertiesForAdd struct { // Active Directory administrator principal name. PrincipalName *string // The principal type used to represent the type of Active Directory Administrator. PrincipalType *PrincipalType // The tenantId of the Active Directory administrator. TenantID *string }
AdministratorPropertiesForAdd - The properties of an Active Directory administrator.
func (AdministratorPropertiesForAdd) MarshalJSON ¶
func (a AdministratorPropertiesForAdd) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AdministratorPropertiesForAdd.
func (*AdministratorPropertiesForAdd) UnmarshalJSON ¶
func (a *AdministratorPropertiesForAdd) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AdministratorPropertiesForAdd.
type AdministratorsClient ¶
type AdministratorsClient struct {
// contains filtered or unexported fields
}
AdministratorsClient contains the methods for the Administrators group. Don't use this type directly, use NewAdministratorsClient() instead.
func NewAdministratorsClient ¶
func NewAdministratorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AdministratorsClient, error)
NewAdministratorsClient creates a new instance of AdministratorsClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*AdministratorsClient) BeginCreate ¶
func (client *AdministratorsClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, objectID string, parameters ActiveDirectoryAdministratorAdd, options *AdministratorsClientBeginCreateOptions) (*runtime.Poller[AdministratorsClientCreateResponse], error)
BeginCreate - Creates a new server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- parameters - The required parameters for adding an active directory administrator for a server.
- options - AdministratorsClientBeginCreateOptions contains the optional parameters for the AdministratorsClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/AdministratorAdd.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAdministratorsClient().BeginCreate(ctx, "testrg", "testserver", "oooooooo-oooo-oooo-oooo-oooooooooooo", armpostgresqlflexibleservers.ActiveDirectoryAdministratorAdd{ Properties: &armpostgresqlflexibleservers.AdministratorPropertiesForAdd{ PrincipalName: to.Ptr("testuser1@microsoft.com"), PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ActiveDirectoryAdministrator = armpostgresqlflexibleservers.ActiveDirectoryAdministrator{ // Name: to.Ptr("testuser1@microsoft.com"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo"), // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ // ObjectID: to.Ptr("oooooooo-oooo-oooo-oooo-oooooooooooo"), // PrincipalName: to.Ptr("testuser1@microsoft.com"), // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), // }, // }
Output:
func (*AdministratorsClient) BeginDelete ¶
func (client *AdministratorsClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, objectID string, options *AdministratorsClientBeginDeleteOptions) (*runtime.Poller[AdministratorsClientDeleteResponse], error)
BeginDelete - Deletes an Active Directory Administrator associated with the server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- options - AdministratorsClientBeginDeleteOptions contains the optional parameters for the AdministratorsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/AdministratorDelete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewAdministratorsClient().BeginDelete(ctx, "testrg", "testserver", "oooooooo-oooo-oooo-oooo-oooooooooooo", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
Output:
func (*AdministratorsClient) Get ¶
func (client *AdministratorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, objectID string, options *AdministratorsClientGetOptions) (AdministratorsClientGetResponse, error)
Get - Gets information about a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- options - AdministratorsClientGetOptions contains the optional parameters for the AdministratorsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/AdministratorGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAdministratorsClient().Get(ctx, "testrg", "pgtestsvc1", "oooooooo-oooo-oooo-oooo-oooooooooooo", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ActiveDirectoryAdministrator = armpostgresqlflexibleservers.ActiveDirectoryAdministrator{ // Name: to.Ptr("testuser1@microsoft.com"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo"), // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ // ObjectID: to.Ptr("oooooooo-oooo-oooo-oooo-oooooooooooo"), // PrincipalName: to.Ptr("testuer1@microsoft.com"), // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), // TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), // }, // }
Output:
func (*AdministratorsClient) NewListByServerPager ¶
func (client *AdministratorsClient) NewListByServerPager(resourceGroupName string, serverName string, options *AdministratorsClientListByServerOptions) *runtime.Pager[AdministratorsClientListByServerResponse]
NewListByServerPager - List all the AAD administrators for a given server.
Generated from API version 2022-12-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 method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/AdministratorsListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewAdministratorsClient().NewListByServerPager("testrg", "pgtestsvc1", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.AdministratorListResult = armpostgresqlflexibleservers.AdministratorListResult{ // Value: []*armpostgresqlflexibleservers.ActiveDirectoryAdministrator{ // { // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/oooooooo-oooo-oooo-oooo-oooooooooooo"), // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ // ObjectID: to.Ptr("oooooooo-oooo-oooo-oooo-oooooooooooo"), // PrincipalName: to.Ptr("testuer1@microsoft.com"), // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeUser), // TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), // }, // }, // { // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/administrators"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1/administrators/gggggggg-gggg-gggg-gggg-gggggggggggg"), // Properties: &armpostgresqlflexibleservers.AdministratorProperties{ // ObjectID: to.Ptr("gggggggg-gggg-gggg-gggg-gggggggggggg"), // PrincipalName: to.Ptr("testgroup1@microsoft.com"), // PrincipalType: to.Ptr(armpostgresqlflexibleservers.PrincipalTypeGroup), // TenantID: to.Ptr("tttttttt-tttt-tttt-tttt-tttttttttttt"), // }, // }}, // } }
Output:
type AdministratorsClientBeginCreateOptions ¶
type AdministratorsClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AdministratorsClientBeginCreateOptions contains the optional parameters for the AdministratorsClient.BeginCreate method.
type AdministratorsClientBeginDeleteOptions ¶
type AdministratorsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AdministratorsClientBeginDeleteOptions contains the optional parameters for the AdministratorsClient.BeginDelete method.
type AdministratorsClientCreateResponse ¶
type AdministratorsClientCreateResponse struct { // Represents an Active Directory administrator. ActiveDirectoryAdministrator }
AdministratorsClientCreateResponse contains the response from method AdministratorsClient.BeginCreate.
type AdministratorsClientDeleteResponse ¶
type AdministratorsClientDeleteResponse struct { }
AdministratorsClientDeleteResponse contains the response from method AdministratorsClient.BeginDelete.
type AdministratorsClientGetOptions ¶
type AdministratorsClientGetOptions struct { }
AdministratorsClientGetOptions contains the optional parameters for the AdministratorsClient.Get method.
type AdministratorsClientGetResponse ¶
type AdministratorsClientGetResponse struct { // Represents an Active Directory administrator. ActiveDirectoryAdministrator }
AdministratorsClientGetResponse contains the response from method AdministratorsClient.Get.
type AdministratorsClientListByServerOptions ¶
type AdministratorsClientListByServerOptions struct { }
AdministratorsClientListByServerOptions contains the optional parameters for the AdministratorsClient.NewListByServerPager method.
type AdministratorsClientListByServerResponse ¶
type AdministratorsClientListByServerResponse struct { // A list of active directory administrators. AdministratorListResult }
AdministratorsClientListByServerResponse contains the response from method AdministratorsClient.NewListByServerPager.
type ArmServerKeyType ¶
type ArmServerKeyType string
ArmServerKeyType - Data encryption type to depict if it is System Managed vs Azure Key vault.
const ( ArmServerKeyTypeAzureKeyVault ArmServerKeyType = "AzureKeyVault" ArmServerKeyTypeSystemManaged ArmServerKeyType = "SystemManaged" )
func PossibleArmServerKeyTypeValues ¶
func PossibleArmServerKeyTypeValues() []ArmServerKeyType
PossibleArmServerKeyTypeValues returns the possible values for the ArmServerKeyType const type.
type AuthConfig ¶
type AuthConfig struct { // If Enabled, Azure Active Directory authentication is enabled. ActiveDirectoryAuth *ActiveDirectoryAuthEnum // If Enabled, Password authentication is enabled. PasswordAuth *PasswordAuthEnum // Tenant id of the server. TenantID *string }
AuthConfig - Authentication configuration properties of a server
func (AuthConfig) MarshalJSON ¶
func (a AuthConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AuthConfig.
func (*AuthConfig) UnmarshalJSON ¶
func (a *AuthConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AuthConfig.
type Backup ¶
type Backup struct { // Backup retention days for the server. BackupRetentionDays *int32 // A value indicating whether Geo-Redundant backup is enabled on the server. GeoRedundantBackup *GeoRedundantBackupEnum // READ-ONLY; The earliest restore point time (ISO8601 format) for server. EarliestRestoreDate *time.Time }
Backup properties of a server
func (Backup) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Backup.
func (*Backup) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Backup.
type BackupsClient ¶
type BackupsClient struct {
// contains filtered or unexported fields
}
BackupsClient contains the methods for the Backups group. Don't use this type directly, use NewBackupsClient() instead.
func NewBackupsClient ¶
func NewBackupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupsClient, error)
NewBackupsClient creates a new instance of BackupsClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BackupsClient) Get ¶
func (client *BackupsClient) Get(ctx context.Context, resourceGroupName string, serverName string, backupName string, options *BackupsClientGetOptions) (BackupsClientGetResponse, error)
Get - Get specific backup for a given server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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 - BackupsClientGetOptions contains the optional parameters for the BackupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/BackupGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewBackupsClient().Get(ctx, "TestGroup", "postgresqltestserver", "daily_20210615T160516", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.ServerBackup = armpostgresqlflexibleservers.ServerBackup{ // Name: to.Ptr("daily_20210615T160516"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210615T160516"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T16:05:19.902Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }
Output:
func (*BackupsClient) NewListByServerPager ¶
func (client *BackupsClient) NewListByServerPager(resourceGroupName string, serverName string, options *BackupsClientListByServerOptions) *runtime.Pager[BackupsClientListByServerResponse]
NewListByServerPager - List all the backups for a given server.
Generated from API version 2022-12-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 method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/BackupListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewBackupsClient().NewListByServerPager("TestGroup", "postgresqltestserver", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServerBackupListResult = armpostgresqlflexibleservers.ServerBackupListResult{ // Value: []*armpostgresqlflexibleservers.ServerBackup{ // { // Name: to.Ptr("daily_20210615T160516"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210615T160516"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T16:05:19.902Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }, // { // Name: to.Ptr("daily_20210616T160520"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210616T160520"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-16T16:05:23.924Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }, // { // Name: to.Ptr("daily_20210617T160525"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210617T160525"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-17T16:05:28.124Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }, // { // Name: to.Ptr("daily_20210618T160529"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210618T160529"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-18T16:05:32.273Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }, // { // Name: to.Ptr("daily_20210619T160533"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210619T160533"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-19T16:05:36.860Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }, // { // Name: to.Ptr("daily_20210620T160538"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210620T160538"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-20T16:05:41.920Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }, // { // Name: to.Ptr("daily_20210621T160543"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210621T160543"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-21T16:05:48.852Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }, // { // Name: to.Ptr("daily_20210622T160803"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210622T160803"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-22T16:08:06.312Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }, // { // Name: to.Ptr("daily_20210622T210807"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210622T210807"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-22T21:08:10.505Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }, // { // Name: to.Ptr("daily_20210623T212413"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210623T212413"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-23T21:24:16.940Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }, // { // Name: to.Ptr("daily_20210624T061328"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/backups"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/postgresqltestserver/backups/daily_20210624T061328"), // Properties: &armpostgresqlflexibleservers.ServerBackupProperties{ // BackupType: to.Ptr(armpostgresqlflexibleservers.OriginFull), // CompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-24T06:13:31.496Z"); return t}()), // Source: to.Ptr("Automatic"), // }, // }}, // } }
Output:
type BackupsClientGetOptions ¶
type BackupsClientGetOptions struct { }
BackupsClientGetOptions contains the optional parameters for the BackupsClient.Get method.
type BackupsClientGetResponse ¶
type BackupsClientGetResponse struct { // Server backup properties ServerBackup }
BackupsClientGetResponse contains the response from method BackupsClient.Get.
type BackupsClientListByServerOptions ¶
type BackupsClientListByServerOptions struct { }
BackupsClientListByServerOptions contains the optional parameters for the BackupsClient.NewListByServerPager method.
type BackupsClientListByServerResponse ¶
type BackupsClientListByServerResponse struct { // A list of server backups. ServerBackupListResult }
BackupsClientListByServerResponse contains the response from method BackupsClient.NewListByServerPager.
type CapabilitiesListResult ¶
type CapabilitiesListResult struct { // READ-ONLY; Link to retrieve next page of results. NextLink *string // READ-ONLY; A list of supported capabilities. Value []*CapabilityProperties }
CapabilitiesListResult - location capability
func (CapabilitiesListResult) MarshalJSON ¶
func (c CapabilitiesListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapabilitiesListResult.
func (*CapabilitiesListResult) UnmarshalJSON ¶
func (c *CapabilitiesListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CapabilitiesListResult.
type CapabilityProperties ¶
type CapabilityProperties struct { // READ-ONLY; A value indicating whether fast provisioning is supported in this region. FastProvisioningSupported *bool // READ-ONLY; A value indicating whether a new server in this region can have geo-backups to paired region. GeoBackupSupported *bool // READ-ONLY; The status Status *string // READ-ONLY SupportedFastProvisioningEditions []*FastProvisioningEditionCapability // READ-ONLY SupportedFlexibleServerEditions []*FlexibleServerEditionCapability // READ-ONLY; Supported high availability mode SupportedHAMode []*string // READ-ONLY SupportedHyperscaleNodeEditions []*HyperscaleNodeEditionCapability // READ-ONLY; zone name Zone *string // READ-ONLY; A value indicating whether a new server in this region can have geo-backups to paired region. ZoneRedundantHaAndGeoBackupSupported *bool // READ-ONLY; A value indicating whether a new server in this region can support multi zone HA. ZoneRedundantHaSupported *bool }
CapabilityProperties - Location capabilities.
func (CapabilityProperties) MarshalJSON ¶
func (c CapabilityProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapabilityProperties.
func (*CapabilityProperties) UnmarshalJSON ¶
func (c *CapabilityProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CapabilityProperties.
type CheckNameAvailabilityClient ¶
type CheckNameAvailabilityClient struct {
// contains filtered or unexported fields
}
CheckNameAvailabilityClient contains the methods for the CheckNameAvailability group. Don't use this type directly, use NewCheckNameAvailabilityClient() instead.
func NewCheckNameAvailabilityClient ¶
func NewCheckNameAvailabilityClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CheckNameAvailabilityClient, error)
NewCheckNameAvailabilityClient creates a new instance of CheckNameAvailabilityClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*CheckNameAvailabilityClient) Execute ¶
func (client *CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvailabilityRequest CheckNameAvailabilityRequest, options *CheckNameAvailabilityClientExecuteOptions) (CheckNameAvailabilityClientExecuteResponse, error)
Execute - Check the availability of name for resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-01
- nameAvailabilityRequest - The required parameters for checking if resource name is available.
- options - CheckNameAvailabilityClientExecuteOptions contains the optional parameters for the CheckNameAvailabilityClient.Execute method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/CheckNameAvailability.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewCheckNameAvailabilityClient().Execute(ctx, armpostgresqlflexibleservers.CheckNameAvailabilityRequest{ Name: to.Ptr("name1"), Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.NameAvailability = armpostgresqlflexibleservers.NameAvailability{ // Message: to.Ptr(""), // NameAvailable: to.Ptr(true), // Name: to.Ptr("name1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // }
Output:
type CheckNameAvailabilityClientExecuteOptions ¶
type CheckNameAvailabilityClientExecuteOptions struct { }
CheckNameAvailabilityClientExecuteOptions contains the optional parameters for the CheckNameAvailabilityClient.Execute method.
type CheckNameAvailabilityClientExecuteResponse ¶
type CheckNameAvailabilityClientExecuteResponse struct { // Represents a resource name availability. NameAvailability }
CheckNameAvailabilityClientExecuteResponse contains the response from method CheckNameAvailabilityClient.Execute.
type CheckNameAvailabilityReason ¶
type CheckNameAvailabilityReason string
CheckNameAvailabilityReason - The reason why the given name is not available.
const ( CheckNameAvailabilityReasonAlreadyExists CheckNameAvailabilityReason = "AlreadyExists" CheckNameAvailabilityReasonInvalid CheckNameAvailabilityReason = "Invalid" )
func PossibleCheckNameAvailabilityReasonValues ¶
func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason
PossibleCheckNameAvailabilityReasonValues returns the possible values for the CheckNameAvailabilityReason const type.
type CheckNameAvailabilityRequest ¶
type CheckNameAvailabilityRequest struct { // The name of the resource for which availability needs to be checked. Name *string // The resource type. Type *string }
CheckNameAvailabilityRequest - The check availability request body.
func (CheckNameAvailabilityRequest) MarshalJSON ¶
func (c CheckNameAvailabilityRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityRequest.
func (*CheckNameAvailabilityRequest) UnmarshalJSON ¶
func (c *CheckNameAvailabilityRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailabilityRequest.
type CheckNameAvailabilityWithLocationClient ¶
type CheckNameAvailabilityWithLocationClient struct {
// contains filtered or unexported fields
}
CheckNameAvailabilityWithLocationClient contains the methods for the CheckNameAvailabilityWithLocation group. Don't use this type directly, use NewCheckNameAvailabilityWithLocationClient() instead.
func NewCheckNameAvailabilityWithLocationClient ¶
func NewCheckNameAvailabilityWithLocationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CheckNameAvailabilityWithLocationClient, error)
NewCheckNameAvailabilityWithLocationClient creates a new instance of CheckNameAvailabilityWithLocationClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*CheckNameAvailabilityWithLocationClient) Execute ¶
func (client *CheckNameAvailabilityWithLocationClient) Execute(ctx context.Context, locationName string, nameAvailabilityRequest CheckNameAvailabilityRequest, options *CheckNameAvailabilityWithLocationClientExecuteOptions) (CheckNameAvailabilityWithLocationClientExecuteResponse, error)
Execute - Check the availability of name for resource If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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 method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/CheckNameAvailabilityLocationBased.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewCheckNameAvailabilityWithLocationClient().Execute(ctx, "westus", armpostgresqlflexibleservers.CheckNameAvailabilityRequest{ Name: to.Ptr("name1"), Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.NameAvailability = armpostgresqlflexibleservers.NameAvailability{ // Message: to.Ptr(""), // NameAvailable: to.Ptr(true), // Name: to.Ptr("name1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // }
Output:
type CheckNameAvailabilityWithLocationClientExecuteOptions ¶
type CheckNameAvailabilityWithLocationClientExecuteOptions struct { }
CheckNameAvailabilityWithLocationClientExecuteOptions contains the optional parameters for the CheckNameAvailabilityWithLocationClient.Execute method.
type CheckNameAvailabilityWithLocationClientExecuteResponse ¶
type CheckNameAvailabilityWithLocationClientExecuteResponse struct { // Represents a resource name availability. NameAvailability }
CheckNameAvailabilityWithLocationClientExecuteResponse contains the response from method CheckNameAvailabilityWithLocationClient.Execute.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewAdministratorsClient ¶
func (c *ClientFactory) NewAdministratorsClient() *AdministratorsClient
NewAdministratorsClient creates a new instance of AdministratorsClient.
func (*ClientFactory) NewBackupsClient ¶
func (c *ClientFactory) NewBackupsClient() *BackupsClient
NewBackupsClient creates a new instance of BackupsClient.
func (*ClientFactory) NewCheckNameAvailabilityClient ¶
func (c *ClientFactory) NewCheckNameAvailabilityClient() *CheckNameAvailabilityClient
NewCheckNameAvailabilityClient creates a new instance of CheckNameAvailabilityClient.
func (*ClientFactory) NewCheckNameAvailabilityWithLocationClient ¶
func (c *ClientFactory) NewCheckNameAvailabilityWithLocationClient() *CheckNameAvailabilityWithLocationClient
NewCheckNameAvailabilityWithLocationClient creates a new instance of CheckNameAvailabilityWithLocationClient.
func (*ClientFactory) NewConfigurationsClient ¶
func (c *ClientFactory) NewConfigurationsClient() *ConfigurationsClient
NewConfigurationsClient creates a new instance of ConfigurationsClient.
func (*ClientFactory) NewDatabasesClient ¶
func (c *ClientFactory) NewDatabasesClient() *DatabasesClient
NewDatabasesClient creates a new instance of DatabasesClient.
func (*ClientFactory) NewFirewallRulesClient ¶
func (c *ClientFactory) NewFirewallRulesClient() *FirewallRulesClient
NewFirewallRulesClient creates a new instance of FirewallRulesClient.
func (*ClientFactory) NewGetPrivateDNSZoneSuffixClient ¶
func (c *ClientFactory) NewGetPrivateDNSZoneSuffixClient() *GetPrivateDNSZoneSuffixClient
NewGetPrivateDNSZoneSuffixClient creates a new instance of GetPrivateDNSZoneSuffixClient.
func (*ClientFactory) NewLocationBasedCapabilitiesClient ¶
func (c *ClientFactory) NewLocationBasedCapabilitiesClient() *LocationBasedCapabilitiesClient
NewLocationBasedCapabilitiesClient creates a new instance of LocationBasedCapabilitiesClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewReplicasClient ¶
func (c *ClientFactory) NewReplicasClient() *ReplicasClient
NewReplicasClient creates a new instance of ReplicasClient.
func (*ClientFactory) NewServersClient ¶
func (c *ClientFactory) NewServersClient() *ServersClient
NewServersClient creates a new instance of ServersClient.
func (*ClientFactory) NewVirtualNetworkSubnetUsageClient ¶
func (c *ClientFactory) NewVirtualNetworkSubnetUsageClient() *VirtualNetworkSubnetUsageClient
NewVirtualNetworkSubnetUsageClient creates a new instance of VirtualNetworkSubnetUsageClient.
type Configuration ¶
type Configuration struct { // The properties of a configuration. Properties *ConfigurationProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Configuration - Represents a Configuration.
func (Configuration) MarshalJSON ¶
func (c Configuration) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Configuration.
func (*Configuration) UnmarshalJSON ¶
func (c *Configuration) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Configuration.
type ConfigurationDataType ¶
type ConfigurationDataType string
ConfigurationDataType - Data type of the configuration.
const ( ConfigurationDataTypeBoolean ConfigurationDataType = "Boolean" ConfigurationDataTypeEnumeration ConfigurationDataType = "Enumeration" ConfigurationDataTypeInteger ConfigurationDataType = "Integer" ConfigurationDataTypeNumeric ConfigurationDataType = "Numeric" )
func PossibleConfigurationDataTypeValues ¶
func PossibleConfigurationDataTypeValues() []ConfigurationDataType
PossibleConfigurationDataTypeValues returns the possible values for the ConfigurationDataType const type.
type ConfigurationForUpdate ¶
type ConfigurationForUpdate struct { // The properties of a configuration. Properties *ConfigurationProperties }
ConfigurationForUpdate - Represents a Configuration.
func (ConfigurationForUpdate) MarshalJSON ¶
func (c ConfigurationForUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationForUpdate.
func (*ConfigurationForUpdate) UnmarshalJSON ¶
func (c *ConfigurationForUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationForUpdate.
type ConfigurationListResult ¶
type ConfigurationListResult struct { // The link used to get the next page of operations. NextLink *string // The list of server configurations. Value []*Configuration }
ConfigurationListResult - A list of server configurations.
func (ConfigurationListResult) MarshalJSON ¶
func (c ConfigurationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationListResult.
func (*ConfigurationListResult) UnmarshalJSON ¶
func (c *ConfigurationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationListResult.
type ConfigurationProperties ¶
type ConfigurationProperties struct { // Source of the configuration. Source *string // Value of the configuration. Value *string // READ-ONLY; Allowed values of the configuration. AllowedValues *string // READ-ONLY; Data type of the configuration. DataType *ConfigurationDataType // READ-ONLY; Default value of the configuration. DefaultValue *string // READ-ONLY; Description of the configuration. Description *string // READ-ONLY; Configuration documentation link. DocumentationLink *string // READ-ONLY; Configuration is pending restart or not. IsConfigPendingRestart *bool // READ-ONLY; Configuration dynamic or static. IsDynamicConfig *bool // READ-ONLY; Configuration read-only or not. IsReadOnly *bool // READ-ONLY; Configuration unit. Unit *string }
ConfigurationProperties - The properties of a configuration.
func (ConfigurationProperties) MarshalJSON ¶
func (c ConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationProperties.
func (*ConfigurationProperties) UnmarshalJSON ¶
func (c *ConfigurationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationProperties.
type ConfigurationsClient ¶
type ConfigurationsClient struct {
// contains filtered or unexported fields
}
ConfigurationsClient contains the methods for the Configurations group. Don't use this type directly, use NewConfigurationsClient() instead.
func NewConfigurationsClient ¶
func NewConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConfigurationsClient, error)
NewConfigurationsClient creates a new instance of ConfigurationsClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ConfigurationsClient) BeginPut ¶
func (client *ConfigurationsClient) BeginPut(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration, options *ConfigurationsClientBeginPutOptions) (*runtime.Poller[ConfigurationsClientPutResponse], error)
BeginPut - Updates a configuration of a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- parameters - The required parameters for updating a server configuration.
- options - ConfigurationsClientBeginPutOptions contains the optional parameters for the ConfigurationsClient.BeginPut method.
func (*ConfigurationsClient) BeginUpdate ¶
func (client *ConfigurationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters ConfigurationForUpdate, options *ConfigurationsClientBeginUpdateOptions) (*runtime.Poller[ConfigurationsClientUpdateResponse], error)
BeginUpdate - Updates a configuration of a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- parameters - The required parameters for updating a server configuration.
- options - ConfigurationsClientBeginUpdateOptions contains the optional parameters for the ConfigurationsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ConfigurationUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewConfigurationsClient().BeginUpdate(ctx, "testrg", "testserver", "event_scheduler", armpostgresqlflexibleservers.ConfigurationForUpdate{ Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ Source: to.Ptr("user-override"), Value: to.Ptr("on"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Configuration = armpostgresqlflexibleservers.Configuration{ // Name: to.Ptr("event_scheduler"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/event_scheduler"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Indicates the status of the Event Scheduler."), // AllowedValues: to.Ptr("ON,OFF,DISABLED"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("OFF"), // Source: to.Ptr("user-override"), // Value: to.Ptr("ON"), // }, // }
Output:
func (*ConfigurationsClient) Get ¶
func (client *ConfigurationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, configurationName string, options *ConfigurationsClientGetOptions) (ConfigurationsClientGetResponse, error)
Get - Gets information about a configuration of server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- options - ConfigurationsClientGetOptions contains the optional parameters for the ConfigurationsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ConfigurationGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewConfigurationsClient().Get(ctx, "testrg", "testserver", "array_nulls", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Configuration = armpostgresqlflexibleservers.Configuration{ // Name: to.Ptr("array_nulls"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/array_nulls"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enable input of NULL elements in arrays."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }
Output:
func (*ConfigurationsClient) NewListByServerPager ¶
func (client *ConfigurationsClient) NewListByServerPager(resourceGroupName string, serverName string, options *ConfigurationsClientListByServerOptions) *runtime.Pager[ConfigurationsClientListByServerResponse]
NewListByServerPager - List all the configurations in a given server.
Generated from API version 2022-12-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 method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ConfigurationListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewConfigurationsClient().NewListByServerPager("testrg", "testserver", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ConfigurationListResult = armpostgresqlflexibleservers.ConfigurationListResult{ // Value: []*armpostgresqlflexibleservers.Configuration{ // { // Name: to.Ptr("application_name"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/application_name"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the application name to be reported in statistics and logs."), // AllowedValues: to.Ptr("[A-Za-z0-9._-]*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("array_nulls"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/array_nulls"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables input of NULL elements in arrays."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("autovacuum"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Starts the autovacuum subprocess."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("autovacuum_analyze_scale_factor"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_analyze_scale_factor"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of tuple inserts, updates, or deletes prior to analyze as a fraction of reltuples."), // AllowedValues: to.Ptr("0-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.1"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.1"), // }, // }, // { // Name: to.Ptr("autovacuum_analyze_threshold"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_analyze_threshold"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Minimum number of tuple inserts, updates, or deletes prior to analyze."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("50"), // Source: to.Ptr("system-default"), // Value: to.Ptr("50"), // }, // }, // { // Name: to.Ptr("autovacuum_naptime"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_naptime"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Time to sleep between autovacuum runs."), // AllowedValues: to.Ptr("1-2147483"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("60"), // Source: to.Ptr("system-default"), // Value: to.Ptr("60"), // }, // }, // { // Name: to.Ptr("autovacuum_vacuum_cost_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_cost_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Vacuum cost delay in milliseconds, for autovacuum."), // AllowedValues: to.Ptr("-1-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2"), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("autovacuum_vacuum_cost_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_cost_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Vacuum cost amount available before napping, for autovacuum."), // AllowedValues: to.Ptr("-1-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // Source: to.Ptr("system-default"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("autovacuum_vacuum_scale_factor"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_scale_factor"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of tuple updates or deletes prior to vacuum as a fraction of reltuples."), // AllowedValues: to.Ptr("0-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.2"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.2"), // }, // }, // { // Name: to.Ptr("autovacuum_vacuum_threshold"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_vacuum_threshold"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Minimum number of tuple updates or deletes prior to vacuum."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("50"), // Source: to.Ptr("system-default"), // Value: to.Ptr("50"), // }, // }, // { // Name: to.Ptr("autovacuum_work_mem"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/autovacuum_work_mem"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum memory to be used by each autovacuum worker process."), // AllowedValues: to.Ptr("-1-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // Source: to.Ptr("system-default"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("backend_flush_after"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/backend_flush_after"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of pages after which previously performed writes are flushed to disk."), // AllowedValues: to.Ptr("0-256"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("backslash_quote"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/backslash_quote"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets whether \"\\'\" is allowed in string literals."), // AllowedValues: to.Ptr("safe_encoding,on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("safe_encoding"), // Source: to.Ptr("system-default"), // Value: to.Ptr("safe_encoding"), // }, // }, // { // Name: to.Ptr("bgwriter_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Background writer sleep time between rounds."), // AllowedValues: to.Ptr("10-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("200"), // Source: to.Ptr("system-default"), // Value: to.Ptr("200"), // }, // }, // { // Name: to.Ptr("bgwriter_flush_after"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_flush_after"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of pages after which previously performed writes are flushed to disk."), // AllowedValues: to.Ptr("0-256"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("64"), // Source: to.Ptr("system-default"), // Value: to.Ptr("64"), // }, // }, // { // Name: to.Ptr("bgwriter_lru_maxpages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_lru_maxpages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Background writer maximum number of LRU pages to flush per round."), // AllowedValues: to.Ptr("0-1073741823"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("100"), // Source: to.Ptr("system-default"), // Value: to.Ptr("100"), // }, // }, // { // Name: to.Ptr("bgwriter_lru_multiplier"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bgwriter_lru_multiplier"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Multiple of the average buffer usage to free per round."), // AllowedValues: to.Ptr("0-10"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("2"), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("bytea_output"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/bytea_output"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the output format for bytea."), // AllowedValues: to.Ptr("escape,hex"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("hex"), // Source: to.Ptr("system-default"), // Value: to.Ptr("hex"), // }, // }, // { // Name: to.Ptr("check_function_bodies"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/check_function_bodies"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Checks function bodies during CREATE FUNCTION."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("checkpoint_completion_target"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_completion_target"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval."), // AllowedValues: to.Ptr("0-1"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.5"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.5"), // }, // }, // { // Name: to.Ptr("checkpoint_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum time between automatic WAL checkpoints."), // AllowedValues: to.Ptr("30-86400"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("300"), // Source: to.Ptr("system-default"), // Value: to.Ptr("300"), // }, // }, // { // Name: to.Ptr("checkpoint_warning"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/checkpoint_warning"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables warnings if checkpoint segments are filled more frequently than this."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("30"), // Source: to.Ptr("system-default"), // Value: to.Ptr("30"), // }, // }, // { // Name: to.Ptr("client_encoding"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/client_encoding"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the client's character set encoding."), // AllowedValues: to.Ptr("BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("sql_ascii"), // Source: to.Ptr("system-default"), // Value: to.Ptr("sql_ascii"), // }, // }, // { // Name: to.Ptr("client_min_messages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/client_min_messages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the message levels that are sent to the client."), // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,log,notice,warning,error"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("notice"), // Source: to.Ptr("system-default"), // Value: to.Ptr("notice"), // }, // }, // { // Name: to.Ptr("commit_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/commit_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the delay in microseconds between transaction commit and flushing WAL to disk."), // AllowedValues: to.Ptr("0-100000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("commit_siblings"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/commit_siblings"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum concurrent open transactions before performing commit_delay."), // AllowedValues: to.Ptr("0-1000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("5"), // Source: to.Ptr("system-default"), // Value: to.Ptr("5"), // }, // }, // { // Name: to.Ptr("constraint_exclusion"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/constraint_exclusion"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner to use constraints to optimize queries."), // AllowedValues: to.Ptr("partition,on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("partition"), // Source: to.Ptr("system-default"), // Value: to.Ptr("partition"), // }, // }, // { // Name: to.Ptr("cpu_index_tuple_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_index_tuple_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of processing each index entry during an index scan."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.005"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.005"), // }, // }, // { // Name: to.Ptr("cpu_operator_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_operator_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of processing each operator or function call."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.0025"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.0025"), // }, // }, // { // Name: to.Ptr("cpu_tuple_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cpu_tuple_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of processing each tuple (row)."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.01"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.01"), // }, // }, // { // Name: to.Ptr("cursor_tuple_fraction"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/cursor_tuple_fraction"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the fraction of a cursor's rows that will be retrieved."), // AllowedValues: to.Ptr("0-1"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.1"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.1"), // }, // }, // { // Name: to.Ptr("DateStyle"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/DateStyle"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the display format for date and time values."), // AllowedValues: to.Ptr("(ISO|POSTGRES|SQL|GERMAN)(, (DMY|MDY|YMD))?"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("ISO, MDY"), // Source: to.Ptr("system-default"), // Value: to.Ptr("ISO, MDY"), // }, // }, // { // Name: to.Ptr("deadlock_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/deadlock_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1000"), // Source: to.Ptr("system-default"), // Value: to.Ptr("1000"), // }, // }, // { // Name: to.Ptr("debug_pretty_print"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_pretty_print"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Indents parse and plan tree displays."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("debug_print_parse"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_parse"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs each query's parse tree."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("debug_print_plan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_plan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs each query's execution plan."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("debug_print_rewritten"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/debug_print_rewritten"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs each query's rewritten parse tree."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("default_statistics_target"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_statistics_target"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the default statistics target."), // AllowedValues: to.Ptr("1-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("100"), // Source: to.Ptr("system-default"), // Value: to.Ptr("100"), // }, // }, // { // Name: to.Ptr("default_tablespace"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_tablespace"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the default tablespace to create tables and indexes in."), // AllowedValues: to.Ptr("[A-Za-z._]*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("default_text_search_config"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_text_search_config"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets default text search configuration."), // AllowedValues: to.Ptr("[A-Za-z._]+"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("pg_catalog.english"), // Source: to.Ptr("system-default"), // Value: to.Ptr("pg_catalog.english"), // }, // }, // { // Name: to.Ptr("default_transaction_deferrable"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_deferrable"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the default deferrable status of new transactions."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("default_transaction_isolation"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_isolation"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the transaction isolation level of each new transaction."), // AllowedValues: to.Ptr("serializable,repeatable read,read committed,read uncommitted"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("read committed"), // Source: to.Ptr("system-default"), // Value: to.Ptr("read committed"), // }, // }, // { // Name: to.Ptr("default_transaction_read_only"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_transaction_read_only"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the default read-only status of new transactions."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("default_with_oids"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/default_with_oids"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Creates new tables with OIDs by default."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("effective_cache_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/effective_cache_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's assumption about the size of the disk cache."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("3145728"), // Source: to.Ptr("system-default"), // Value: to.Ptr("3145728"), // }, // }, // { // Name: to.Ptr("enable_bitmapscan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_bitmapscan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of bitmap-scan plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_gathermerge"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_gathermerge"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of gather merge plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_hashagg"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_hashagg"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of hashed aggregation plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_hashjoin"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_hashjoin"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of hash join plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_indexonlyscan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_indexonlyscan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of index-only-scan plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_indexscan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_indexscan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of index-scan plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_material"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_material"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of materialization."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_mergejoin"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_mergejoin"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of merge join plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_nestloop"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_nestloop"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of nested loop join plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_seqscan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_seqscan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of sequential-scan plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_sort"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_sort"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of explicit sort steps."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("enable_tidscan"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/enable_tidscan"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables the planner's use of TID scan plans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("escape_string_warning"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/escape_string_warning"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Warns about backslash escapes in ordinary string literals."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("exit_on_error"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/exit_on_error"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Terminates session on any error."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("extra_float_digits"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/extra_float_digits"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the number of digits displayed for floating-point values."), // AllowedValues: to.Ptr("-15-3"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1"), // Source: to.Ptr("system-default"), // Value: to.Ptr("1"), // }, // }, // { // Name: to.Ptr("force_parallel_mode"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/force_parallel_mode"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Forces use of parallel query facilities."), // AllowedValues: to.Ptr("off,on,regress"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("from_collapse_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/from_collapse_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the FROM-list size beyond which subqueries are not collapsed."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("8"), // Source: to.Ptr("system-default"), // Value: to.Ptr("8"), // }, // }, // { // Name: to.Ptr("geqo"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables genetic query optimization."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("geqo_effort"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_effort"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("GEQO: effort is used to set the default for other GEQO parameters."), // AllowedValues: to.Ptr("1-10"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("5"), // Source: to.Ptr("system-default"), // Value: to.Ptr("5"), // }, // }, // { // Name: to.Ptr("geqo_generations"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_generations"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("GEQO: number of iterations of the algorithm."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("geqo_pool_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_pool_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("GEQO: number of individuals in the population."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("geqo_seed"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_seed"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("GEQO: seed for random path selection."), // AllowedValues: to.Ptr("0-1"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("geqo_selection_bias"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_selection_bias"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("GEQO: selective pressure within the population."), // AllowedValues: to.Ptr("1.5-2"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("2"), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("geqo_threshold"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/geqo_threshold"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the threshold of FROM items beyond which GEQO is used."), // AllowedValues: to.Ptr("2-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("12"), // Source: to.Ptr("system-default"), // Value: to.Ptr("12"), // }, // }, // { // Name: to.Ptr("gin_fuzzy_search_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/gin_fuzzy_search_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum allowed result for exact search by GIN."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("gin_pending_list_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/gin_pending_list_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum size of the pending list for GIN index."), // AllowedValues: to.Ptr("64-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("4096"), // Source: to.Ptr("system-default"), // Value: to.Ptr("4096"), // }, // }, // { // Name: to.Ptr("idle_in_transaction_session_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/idle_in_transaction_session_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum allowed duration of any idling transaction."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("IntervalStyle"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/IntervalStyle"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the display format for interval values."), // AllowedValues: to.Ptr("postgres,postgres_verbose,sql_standard,iso_8601"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("postgres"), // Source: to.Ptr("system-default"), // Value: to.Ptr("postgres"), // }, // }, // { // Name: to.Ptr("join_collapse_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/join_collapse_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the FROM-list size beyond which JOIN constructs are not flattened."), // AllowedValues: to.Ptr("1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("8"), // Source: to.Ptr("system-default"), // Value: to.Ptr("8"), // }, // }, // { // Name: to.Ptr("lc_monetary"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_monetary"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the locale for formatting monetary amounts."), // AllowedValues: to.Ptr("[A-Za-z0-9._ -]+"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("en_US.utf-8"), // Source: to.Ptr("system-default"), // Value: to.Ptr("en_US.utf-8"), // }, // }, // { // Name: to.Ptr("lc_numeric"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lc_numeric"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the locale for formatting numbers."), // AllowedValues: to.Ptr("[A-Za-z0-9._ -]+"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("en_US.utf-8"), // Source: to.Ptr("system-default"), // Value: to.Ptr("en_US.utf-8"), // }, // }, // { // Name: to.Ptr("lo_compat_privileges"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lo_compat_privileges"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables backward compatibility mode for privilege checks on large objects."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("lock_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/lock_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum allowed duration (in milliseconds) of any wait for a lock. 0 turns this off."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("log_autovacuum_min_duration"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_autovacuum_min_duration"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum execution time above which autovacuum actions will be logged."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // Source: to.Ptr("system-default"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("log_checkpoints"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_checkpoints"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs each checkpoint."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("log_connections"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_connections"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs each successful connection."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("log_destination"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_destination"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the destination for server log output."), // AllowedValues: to.Ptr("stderr,csvlog"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("stderr"), // Source: to.Ptr("system-default"), // Value: to.Ptr("stderr"), // }, // }, // { // Name: to.Ptr("log_disconnections"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_disconnections"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs end of a session, including duration."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_duration"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_duration"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs the duration of each completed SQL statement."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_error_verbosity"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_error_verbosity"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the verbosity of logged messages."), // AllowedValues: to.Ptr("terse,default,verbose"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("default"), // Source: to.Ptr("system-default"), // Value: to.Ptr("default"), // }, // }, // { // Name: to.Ptr("log_lock_waits"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_lock_waits"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs long lock waits."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_min_duration_statement"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_duration_statement"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum execution time (in milliseconds) above which statements will be logged. -1 disables logging statement durations."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // Source: to.Ptr("system-default"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("log_min_error_statement"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_error_statement"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Causes all statements generating error at or above this level to be logged."), // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("error"), // Source: to.Ptr("system-default"), // Value: to.Ptr("error"), // }, // }, // { // Name: to.Ptr("log_min_messages"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_min_messages"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the message levels that are logged."), // AllowedValues: to.Ptr("debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("warning"), // Source: to.Ptr("system-default"), // Value: to.Ptr("warning"), // }, // }, // { // Name: to.Ptr("log_replication_commands"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_replication_commands"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs each replication command."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_statement"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_statement"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the type of statements logged."), // AllowedValues: to.Ptr("none,ddl,mod,all"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("none"), // Source: to.Ptr("system-default"), // Value: to.Ptr("none"), // }, // }, // { // Name: to.Ptr("log_statement_stats"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_statement_stats"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("For each query, writes cumulative performance statistics to the server log."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("log_temp_files"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/log_temp_files"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Logs the use of temporary files larger than this number of kilobytes."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-1"), // Source: to.Ptr("system-default"), // Value: to.Ptr("-1"), // }, // }, // { // Name: to.Ptr("maintenance_work_mem"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/maintenance_work_mem"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum memory to be used for maintenance operations."), // AllowedValues: to.Ptr("1024-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("332800"), // Source: to.Ptr("system-default"), // Value: to.Ptr("332800"), // }, // }, // { // Name: to.Ptr("max_parallel_workers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_parallel_workers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of parallel workers than can be active at one time."), // AllowedValues: to.Ptr("0-1024"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("8"), // Source: to.Ptr("system-default"), // Value: to.Ptr("8"), // }, // }, // { // Name: to.Ptr("max_parallel_workers_per_gather"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_parallel_workers_per_gather"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of parallel processes per executor node."), // AllowedValues: to.Ptr("0-1024"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2"), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("max_pred_locks_per_page"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_pred_locks_per_page"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of predicate-locked tuples per page."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2"), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("max_pred_locks_per_relation"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_pred_locks_per_relation"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of predicate-locked pages and tuples per relation."), // AllowedValues: to.Ptr("-2147483648-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("-2"), // Source: to.Ptr("system-default"), // Value: to.Ptr("-2"), // }, // }, // { // Name: to.Ptr("max_standby_archive_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_standby_archive_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum delay before canceling queries when a hot standby server is processing archived WAL data."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("30000"), // Source: to.Ptr("system-default"), // Value: to.Ptr("30000"), // }, // }, // { // Name: to.Ptr("max_standby_streaming_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_standby_streaming_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum delay before canceling queries when a hot standby server is processing streamed WAL data."), // AllowedValues: to.Ptr("-1-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("30000"), // Source: to.Ptr("system-default"), // Value: to.Ptr("30000"), // }, // }, // { // Name: to.Ptr("max_sync_workers_per_subscription"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_sync_workers_per_subscription"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Maximum number of table synchronization workers per subscription."), // AllowedValues: to.Ptr("0-262143"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("2"), // Source: to.Ptr("system-default"), // Value: to.Ptr("2"), // }, // }, // { // Name: to.Ptr("max_wal_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/max_wal_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the WAL size that triggers a checkpoint."), // AllowedValues: to.Ptr("2-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1024"), // Source: to.Ptr("system-default"), // Value: to.Ptr("1024"), // }, // }, // { // Name: to.Ptr("min_parallel_index_scan_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_parallel_index_scan_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum amount of index data for a parallel scan."), // AllowedValues: to.Ptr("0-715827882"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("64"), // Source: to.Ptr("system-default"), // Value: to.Ptr("64"), // }, // }, // { // Name: to.Ptr("min_parallel_table_scan_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_parallel_table_scan_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum amount of table data for a parallel scan."), // AllowedValues: to.Ptr("0-715827882"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1024"), // Source: to.Ptr("system-default"), // Value: to.Ptr("1024"), // }, // }, // { // Name: to.Ptr("min_wal_size"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/min_wal_size"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the minimum size to shrink the WAL to."), // AllowedValues: to.Ptr("2-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("80"), // Source: to.Ptr("system-default"), // Value: to.Ptr("80"), // }, // }, // { // Name: to.Ptr("operator_precedence_warning"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/operator_precedence_warning"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Emits a warning for constructs that changed meaning since PostgreSQL 9.4."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("parallel_setup_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/parallel_setup_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of starting up worker processes for parallel query."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("1000"), // Source: to.Ptr("system-default"), // Value: to.Ptr("1000"), // }, // }, // { // Name: to.Ptr("parallel_tuple_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/parallel_tuple_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of passing each tuple (row) from worker to master backend."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("0.1"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0.1"), // }, // }, // { // Name: to.Ptr("quote_all_identifiers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/quote_all_identifiers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("When generating SQL fragments, quotes all identifiers."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("random_page_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/random_page_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of a nonsequentially fetched disk page."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("4"), // Source: to.Ptr("system-default"), // Value: to.Ptr("4"), // }, // }, // { // Name: to.Ptr("row_security"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/row_security"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables row security."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("search_path"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/search_path"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the schema search order for names that are not schema-qualified."), // AllowedValues: to.Ptr("[A-Za-z.\"$, ]+"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("\"$user\", public"), // Source: to.Ptr("system-default"), // Value: to.Ptr("\"$user\", public"), // }, // }, // { // Name: to.Ptr("seq_page_cost"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/seq_page_cost"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the planner's estimate of the cost of a sequentially fetched disk page."), // AllowedValues: to.Ptr("0-1.79769e+308"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeNumeric), // DefaultValue: to.Ptr("1"), // Source: to.Ptr("system-default"), // Value: to.Ptr("1"), // }, // }, // { // Name: to.Ptr("session_replication_role"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/session_replication_role"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the session's behavior for triggers and rewrite rules."), // AllowedValues: to.Ptr("origin,replica,local"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("origin"), // Source: to.Ptr("system-default"), // Value: to.Ptr("origin"), // }, // }, // { // Name: to.Ptr("standard_conforming_strings"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/standard_conforming_strings"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Causes '...' strings to treat backslashes literally."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("statement_timeout"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/statement_timeout"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum allowed duration (in milliseconds) of any statement. 0 turns this off."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("synchronize_seqscans"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/synchronize_seqscans"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Enables synchronized sequential scans."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("synchronous_commit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/synchronous_commit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the current transaction's synchronization level."), // AllowedValues: to.Ptr("local,remote_write,on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("tcp_keepalives_count"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_count"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Maximum number of TCP keepalive retransmits."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("9"), // Source: to.Ptr("system-default"), // Value: to.Ptr("9"), // }, // }, // { // Name: to.Ptr("tcp_keepalives_idle"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_idle"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Time between issuing TCP keepalives."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("120"), // Source: to.Ptr("system-default"), // Value: to.Ptr("120"), // }, // }, // { // Name: to.Ptr("tcp_keepalives_interval"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/tcp_keepalives_interval"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Time between TCP keepalive retransmits."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("30"), // Source: to.Ptr("system-default"), // Value: to.Ptr("30"), // }, // }, // { // Name: to.Ptr("temp_buffers"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/temp_buffers"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum number of temporary buffers used by each database session."), // AllowedValues: to.Ptr("100-1073741823"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1024"), // Source: to.Ptr("system-default"), // Value: to.Ptr("1024"), // }, // }, // { // Name: to.Ptr("temp_tablespaces"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/temp_tablespaces"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the tablespace(s) to use for temporary tables and sort files."), // AllowedValues: to.Ptr("[A-Za-z._]*"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr(""), // Source: to.Ptr("system-default"), // Value: to.Ptr(""), // }, // }, // { // Name: to.Ptr("TimeZone"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/TimeZone"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the time zone for displaying and interpreting time stamps."), // AllowedValues: to.Ptr("[A-Za-z0-9/+_-]+"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataType("String")), // DefaultValue: to.Ptr("UTC"), // Source: to.Ptr("system-default"), // Value: to.Ptr("UTC"), // }, // }, // { // Name: to.Ptr("track_activities"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_activities"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Collects information about executing commands."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("track_counts"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_counts"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Collects statistics on database activity."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("on"), // Source: to.Ptr("system-default"), // Value: to.Ptr("on"), // }, // }, // { // Name: to.Ptr("track_functions"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_functions"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Collects function-level statistics on database activity."), // AllowedValues: to.Ptr("none,pl,all"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("none"), // Source: to.Ptr("system-default"), // Value: to.Ptr("none"), // }, // }, // { // Name: to.Ptr("track_io_timing"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/track_io_timing"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Collects timing statistics for database I/O activity."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("transform_null_equals"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/transform_null_equals"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Treats \"expr=NULL\" as \"expr IS NULL\"."), // AllowedValues: to.Ptr("on,off"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeBoolean), // DefaultValue: to.Ptr("off"), // Source: to.Ptr("system-default"), // Value: to.Ptr("off"), // }, // }, // { // Name: to.Ptr("vacuum_cost_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Vacuum cost delay in milliseconds."), // AllowedValues: to.Ptr("0-100"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("vacuum_cost_limit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_limit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Vacuum cost amount available before napping."), // AllowedValues: to.Ptr("1-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("200"), // Source: to.Ptr("system-default"), // Value: to.Ptr("200"), // }, // }, // { // Name: to.Ptr("vacuum_cost_page_dirty"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_dirty"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Vacuum cost for a page dirtied by vacuum."), // AllowedValues: to.Ptr("0-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("20"), // Source: to.Ptr("system-default"), // Value: to.Ptr("20"), // }, // }, // { // Name: to.Ptr("vacuum_cost_page_hit"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_hit"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Vacuum cost for a page found in the buffer cache."), // AllowedValues: to.Ptr("0-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("1"), // Source: to.Ptr("system-default"), // Value: to.Ptr("1"), // }, // }, // { // Name: to.Ptr("vacuum_cost_page_miss"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_cost_page_miss"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Vacuum cost for a page not found in the buffer cache."), // AllowedValues: to.Ptr("0-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("10"), // Source: to.Ptr("system-default"), // Value: to.Ptr("10"), // }, // }, // { // Name: to.Ptr("vacuum_defer_cleanup_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_defer_cleanup_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Number of transactions by which VACUUM and HOT cleanup should be deferred, if any."), // AllowedValues: to.Ptr("0-1000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("0"), // Source: to.Ptr("system-default"), // Value: to.Ptr("0"), // }, // }, // { // Name: to.Ptr("vacuum_freeze_min_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_freeze_min_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Minimum age at which VACUUM should freeze a table row."), // AllowedValues: to.Ptr("0-1000000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("50000000"), // Source: to.Ptr("system-default"), // Value: to.Ptr("50000000"), // }, // }, // { // Name: to.Ptr("vacuum_freeze_table_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_freeze_table_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Age at which VACUUM should scan whole table to freeze tuples."), // AllowedValues: to.Ptr("0-2000000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("150000000"), // Source: to.Ptr("system-default"), // Value: to.Ptr("150000000"), // }, // }, // { // Name: to.Ptr("vacuum_multixact_freeze_min_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_multixact_freeze_min_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Minimum age at which VACUUM should freeze a MultiXactId in a table row."), // AllowedValues: to.Ptr("0-1000000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("5000000"), // Source: to.Ptr("system-default"), // Value: to.Ptr("5000000"), // }, // }, // { // Name: to.Ptr("vacuum_multixact_freeze_table_age"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/vacuum_multixact_freeze_table_age"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Multixact age at which VACUUM should scan whole table to freeze tuples."), // AllowedValues: to.Ptr("0-2000000000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("150000000"), // Source: to.Ptr("system-default"), // Value: to.Ptr("150000000"), // }, // }, // { // Name: to.Ptr("wal_receiver_status_interval"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_receiver_status_interval"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the maximum interval between WAL receiver status reports to the primary."), // AllowedValues: to.Ptr("0-2147483"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("10"), // Source: to.Ptr("system-default"), // Value: to.Ptr("10"), // }, // }, // { // Name: to.Ptr("wal_writer_delay"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_writer_delay"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Time between WAL flushes performed in the WAL writer."), // AllowedValues: to.Ptr("1-10000"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("200"), // Source: to.Ptr("system-default"), // Value: to.Ptr("200"), // }, // }, // { // Name: to.Ptr("wal_writer_flush_after"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/wal_writer_flush_after"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Amount of WAL written out by WAL writer that triggers a flush."), // AllowedValues: to.Ptr("0-2147483647"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("128"), // Source: to.Ptr("system-default"), // Value: to.Ptr("128"), // }, // }, // { // Name: to.Ptr("work_mem"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/work_mem"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files."), // AllowedValues: to.Ptr("4096-2097151"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeInteger), // DefaultValue: to.Ptr("115712"), // Source: to.Ptr("system-default"), // Value: to.Ptr("115712"), // }, // }, // { // Name: to.Ptr("xmlbinary"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/xmlbinary"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets how binary values are to be encoded in XML."), // AllowedValues: to.Ptr("base64,hex"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("base64"), // Source: to.Ptr("system-default"), // Value: to.Ptr("base64"), // }, // }, // { // Name: to.Ptr("xmloption"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/configurations"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/xmloption"), // Properties: &armpostgresqlflexibleservers.ConfigurationProperties{ // Description: to.Ptr("Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragments."), // AllowedValues: to.Ptr("content,document"), // DataType: to.Ptr(armpostgresqlflexibleservers.ConfigurationDataTypeEnumeration), // DefaultValue: to.Ptr("content"), // Source: to.Ptr("system-default"), // Value: to.Ptr("content"), // }, // }}, // } }
Output:
type ConfigurationsClientBeginPutOptions ¶
type ConfigurationsClientBeginPutOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigurationsClientBeginPutOptions contains the optional parameters for the ConfigurationsClient.BeginPut method.
type ConfigurationsClientBeginUpdateOptions ¶
type ConfigurationsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigurationsClientBeginUpdateOptions contains the optional parameters for the ConfigurationsClient.BeginUpdate method.
type ConfigurationsClientGetOptions ¶
type ConfigurationsClientGetOptions struct { }
ConfigurationsClientGetOptions contains the optional parameters for the ConfigurationsClient.Get method.
type ConfigurationsClientGetResponse ¶
type ConfigurationsClientGetResponse struct { // Represents a Configuration. Configuration }
ConfigurationsClientGetResponse contains the response from method ConfigurationsClient.Get.
type ConfigurationsClientListByServerOptions ¶
type ConfigurationsClientListByServerOptions struct { }
ConfigurationsClientListByServerOptions contains the optional parameters for the ConfigurationsClient.NewListByServerPager method.
type ConfigurationsClientListByServerResponse ¶
type ConfigurationsClientListByServerResponse struct { // A list of server configurations. ConfigurationListResult }
ConfigurationsClientListByServerResponse contains the response from method ConfigurationsClient.NewListByServerPager.
type ConfigurationsClientPutResponse ¶
type ConfigurationsClientPutResponse struct { // Represents a Configuration. Configuration }
ConfigurationsClientPutResponse contains the response from method ConfigurationsClient.BeginPut.
type ConfigurationsClientUpdateResponse ¶
type ConfigurationsClientUpdateResponse struct { // Represents a Configuration. Configuration }
ConfigurationsClientUpdateResponse contains the response from method ConfigurationsClient.BeginUpdate.
type CreateMode ¶
type CreateMode string
CreateMode - The mode to create a new PostgreSQL server.
const ( CreateModeCreate CreateMode = "Create" CreateModeDefault CreateMode = "Default" CreateModeGeoRestore CreateMode = "GeoRestore" CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" CreateModeReplica CreateMode = "Replica" CreateModeUpdate CreateMode = "Update" )
func PossibleCreateModeValues ¶
func PossibleCreateModeValues() []CreateMode
PossibleCreateModeValues returns the possible values for the CreateMode const type.
type CreateModeForUpdate ¶
type CreateModeForUpdate string
CreateModeForUpdate - The mode to update a new PostgreSQL server.
const ( CreateModeForUpdateDefault CreateModeForUpdate = "Default" CreateModeForUpdateUpdate CreateModeForUpdate = "Update" )
func PossibleCreateModeForUpdateValues ¶
func PossibleCreateModeForUpdateValues() []CreateModeForUpdate
PossibleCreateModeForUpdateValues returns the possible values for the CreateModeForUpdate const type.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type DataEncryption ¶
type DataEncryption struct { // URI for the key for data encryption for primary server. PrimaryKeyURI *string // Resource Id for the User assigned identity to be used for data encryption for primary server. PrimaryUserAssignedIdentityID *string // Data encryption type to depict if it is System Managed vs Azure Key vault. Type *ArmServerKeyType }
DataEncryption - Data encryption properties of a server
func (DataEncryption) MarshalJSON ¶
func (d DataEncryption) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataEncryption.
func (*DataEncryption) UnmarshalJSON ¶
func (d *DataEncryption) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataEncryption.
type Database ¶
type Database struct { // The properties of a database. Properties *DatabaseProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Database - Represents a Database.
func (Database) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Database.
func (*Database) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Database.
type DatabaseListResult ¶
type DatabaseListResult struct { // The link used to get the next page of databases. NextLink *string // The list of databases housed in a server Value []*Database }
DatabaseListResult - A List of databases.
func (DatabaseListResult) MarshalJSON ¶
func (d DatabaseListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DatabaseListResult.
func (*DatabaseListResult) UnmarshalJSON ¶
func (d *DatabaseListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseListResult.
type DatabaseProperties ¶
type DatabaseProperties struct { // The charset of the database. Charset *string // The collation of the database. Collation *string }
DatabaseProperties - The properties of a database.
func (DatabaseProperties) MarshalJSON ¶
func (d DatabaseProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DatabaseProperties.
func (*DatabaseProperties) UnmarshalJSON ¶
func (d *DatabaseProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseProperties.
type DatabasesClient ¶
type DatabasesClient struct {
// contains filtered or unexported fields
}
DatabasesClient contains the methods for the Databases group. Don't use this type directly, use NewDatabasesClient() instead.
func NewDatabasesClient ¶
func NewDatabasesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabasesClient, error)
NewDatabasesClient creates a new instance of DatabasesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DatabasesClient) BeginCreate ¶
func (client *DatabasesClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database, options *DatabasesClientBeginCreateOptions) (*runtime.Poller[DatabasesClientCreateResponse], error)
BeginCreate - Creates a new database or updates an existing database. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- parameters - The required parameters for creating or updating a database.
- options - DatabasesClientBeginCreateOptions contains the optional parameters for the DatabasesClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabaseCreate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDatabasesClient().BeginCreate(ctx, "TestGroup", "testserver", "db1", armpostgresqlflexibleservers.Database{ Properties: &armpostgresqlflexibleservers.DatabaseProperties{ Charset: to.Ptr("utf8"), Collation: to.Ptr("en_US.utf8"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Database = armpostgresqlflexibleservers.Database{ // Name: to.Ptr("db1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1"), // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ // Charset: to.Ptr("utf8"), // Collation: to.Ptr("en_US.utf8"), // }, // }
Output:
func (*DatabasesClient) BeginDelete ¶
func (client *DatabasesClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, options *DatabasesClientBeginDeleteOptions) (*runtime.Poller[DatabasesClientDeleteResponse], error)
BeginDelete - Deletes a database. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- options - DatabasesClientBeginDeleteOptions contains the optional parameters for the DatabasesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabaseDelete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDatabasesClient().BeginDelete(ctx, "TestGroup", "testserver", "db1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
Output:
func (*DatabasesClient) Get ¶
func (client *DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, options *DatabasesClientGetOptions) (DatabasesClientGetResponse, error)
Get - Gets information about a database. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- options - DatabasesClientGetOptions contains the optional parameters for the DatabasesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabaseGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDatabasesClient().Get(ctx, "TestGroup", "testserver", "db1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Database = armpostgresqlflexibleservers.Database{ // Name: to.Ptr("db1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1"), // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ // Charset: to.Ptr("utf8"), // Collation: to.Ptr("en_US.utf8"), // }, // }
Output:
func (*DatabasesClient) NewListByServerPager ¶
func (client *DatabasesClient) NewListByServerPager(resourceGroupName string, serverName string, options *DatabasesClientListByServerOptions) *runtime.Pager[DatabasesClientListByServerResponse]
NewListByServerPager - List all the databases in a given server.
Generated from API version 2022-12-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 method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/DatabasesListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDatabasesClient().NewListByServerPager("TestGroup", "testserver", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DatabaseListResult = armpostgresqlflexibleservers.DatabaseListResult{ // Value: []*armpostgresqlflexibleservers.Database{ // { // Name: to.Ptr("db1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db1"), // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ // Charset: to.Ptr("utf8"), // Collation: to.Ptr("en_US.utf8"), // }, // }, // { // Name: to.Ptr("db2"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/databases"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/databases/db2"), // Properties: &armpostgresqlflexibleservers.DatabaseProperties{ // Charset: to.Ptr("utf8"), // Collation: to.Ptr("en_US.utf8"), // }, // }}, // } }
Output:
type DatabasesClientBeginCreateOptions ¶
type DatabasesClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DatabasesClientBeginCreateOptions contains the optional parameters for the DatabasesClient.BeginCreate method.
type DatabasesClientBeginDeleteOptions ¶
type DatabasesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DatabasesClientBeginDeleteOptions contains the optional parameters for the DatabasesClient.BeginDelete method.
type DatabasesClientCreateResponse ¶
type DatabasesClientCreateResponse struct { // Represents a Database. Database }
DatabasesClientCreateResponse contains the response from method DatabasesClient.BeginCreate.
type DatabasesClientDeleteResponse ¶
type DatabasesClientDeleteResponse struct { }
DatabasesClientDeleteResponse contains the response from method DatabasesClient.BeginDelete.
type DatabasesClientGetOptions ¶
type DatabasesClientGetOptions struct { }
DatabasesClientGetOptions contains the optional parameters for the DatabasesClient.Get method.
type DatabasesClientGetResponse ¶
type DatabasesClientGetResponse struct { // Represents a Database. Database }
DatabasesClientGetResponse contains the response from method DatabasesClient.Get.
type DatabasesClientListByServerOptions ¶
type DatabasesClientListByServerOptions struct { }
DatabasesClientListByServerOptions contains the optional parameters for the DatabasesClient.NewListByServerPager method.
type DatabasesClientListByServerResponse ¶
type DatabasesClientListByServerResponse struct { // A List of databases. DatabaseListResult }
DatabasesClientListByServerResponse contains the response from method DatabasesClient.NewListByServerPager.
type DelegatedSubnetUsage ¶
type DelegatedSubnetUsage struct { // READ-ONLY; Name of the delegated subnet for which IP addresses are in use SubnetName *string // READ-ONLY; Number of IP addresses used by the delegated subnet Usage *int64 }
DelegatedSubnetUsage - Delegated subnet usage data.
func (DelegatedSubnetUsage) MarshalJSON ¶
func (d DelegatedSubnetUsage) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DelegatedSubnetUsage.
func (*DelegatedSubnetUsage) UnmarshalJSON ¶
func (d *DelegatedSubnetUsage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DelegatedSubnetUsage.
type FailoverMode ¶
type FailoverMode string
FailoverMode - Failover mode.
const ( FailoverModeForcedFailover FailoverMode = "ForcedFailover" FailoverModeForcedSwitchover FailoverMode = "ForcedSwitchover" FailoverModePlannedFailover FailoverMode = "PlannedFailover" FailoverModePlannedSwitchover FailoverMode = "PlannedSwitchover" )
func PossibleFailoverModeValues ¶
func PossibleFailoverModeValues() []FailoverMode
PossibleFailoverModeValues returns the possible values for the FailoverMode const type.
type FastProvisioningEditionCapability ¶
type FastProvisioningEditionCapability struct { // READ-ONLY; Fast provisioning supported sku name SupportedSKU *string // READ-ONLY; Fast provisioning supported version SupportedServerVersions *string // READ-ONLY; Fast provisioning supported storage in Gb SupportedStorageGb *int64 }
func (FastProvisioningEditionCapability) MarshalJSON ¶
func (f FastProvisioningEditionCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FastProvisioningEditionCapability.
func (*FastProvisioningEditionCapability) UnmarshalJSON ¶
func (f *FastProvisioningEditionCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FastProvisioningEditionCapability.
type FirewallRule ¶
type FirewallRule struct { // REQUIRED; The properties of a firewall rule. Properties *FirewallRuleProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
FirewallRule - Represents a server firewall rule.
func (FirewallRule) MarshalJSON ¶
func (f FirewallRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallRule.
func (*FirewallRule) UnmarshalJSON ¶
func (f *FirewallRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FirewallRule.
type FirewallRuleListResult ¶
type FirewallRuleListResult struct { // The link used to get the next page of operations. NextLink *string // The list of firewall rules in a server. Value []*FirewallRule }
FirewallRuleListResult - A list of firewall rules.
func (FirewallRuleListResult) MarshalJSON ¶
func (f FirewallRuleListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallRuleListResult.
func (*FirewallRuleListResult) UnmarshalJSON ¶
func (f *FirewallRuleListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FirewallRuleListResult.
type FirewallRuleProperties ¶
type FirewallRuleProperties struct { // REQUIRED; The end IP address of the server firewall rule. Must be IPv4 format. EndIPAddress *string // REQUIRED; The start IP address of the server firewall rule. Must be IPv4 format. StartIPAddress *string }
FirewallRuleProperties - The properties of a server firewall rule.
func (FirewallRuleProperties) MarshalJSON ¶
func (f FirewallRuleProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FirewallRuleProperties.
func (*FirewallRuleProperties) UnmarshalJSON ¶
func (f *FirewallRuleProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FirewallRuleProperties.
type FirewallRulesClient ¶
type FirewallRulesClient struct {
// contains filtered or unexported fields
}
FirewallRulesClient contains the methods for the FirewallRules group. Don't use this type directly, use NewFirewallRulesClient() instead.
func NewFirewallRulesClient ¶
func NewFirewallRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FirewallRulesClient, error)
NewFirewallRulesClient creates a new instance of FirewallRulesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*FirewallRulesClient) BeginCreateOrUpdate ¶
func (client *FirewallRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule, options *FirewallRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[FirewallRulesClientCreateOrUpdateResponse], error)
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 2022-12-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.
- parameters - The required parameters for creating or updating a firewall rule.
- options - FirewallRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallRulesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleCreate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFirewallRulesClient().BeginCreateOrUpdate(ctx, "testrg", "testserver", "rule1", armpostgresqlflexibleservers.FirewallRule{ Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ EndIPAddress: to.Ptr("255.255.255.255"), StartIPAddress: to.Ptr("0.0.0.0"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.FirewallRule = armpostgresqlflexibleservers.FirewallRule{ // Name: to.Ptr("rule1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1"), // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ // EndIPAddress: to.Ptr("255.255.255.255"), // StartIPAddress: to.Ptr("0.0.0.0"), // }, // }
Output:
func (*FirewallRulesClient) BeginDelete ¶
func (client *FirewallRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, options *FirewallRulesClientBeginDeleteOptions) (*runtime.Poller[FirewallRulesClientDeleteResponse], error)
BeginDelete - Deletes a PostgreSQL server firewall rule. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- options - FirewallRulesClientBeginDeleteOptions contains the optional parameters for the FirewallRulesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleDelete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFirewallRulesClient().BeginDelete(ctx, "testrg", "testserver", "rule1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
Output:
func (*FirewallRulesClient) Get ¶
func (client *FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, options *FirewallRulesClientGetOptions) (FirewallRulesClientGetResponse, error)
Get - List all the firewall rules in a given server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- options - FirewallRulesClientGetOptions contains the optional parameters for the FirewallRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewFirewallRulesClient().Get(ctx, "testrg", "testserver", "rule1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.FirewallRule = armpostgresqlflexibleservers.FirewallRule{ // Name: to.Ptr("rule1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1"), // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ // EndIPAddress: to.Ptr("255.255.255.255"), // StartIPAddress: to.Ptr("0.0.0.0"), // }, // }
Output:
func (*FirewallRulesClient) NewListByServerPager ¶
func (client *FirewallRulesClient) NewListByServerPager(resourceGroupName string, serverName string, options *FirewallRulesClientListByServerOptions) *runtime.Pager[FirewallRulesClientListByServerResponse]
NewListByServerPager - List all the firewall rules in a given PostgreSQL server.
Generated from API version 2022-12-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 method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/FirewallRuleListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewFirewallRulesClient().NewListByServerPager("testrg", "testserver", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.FirewallRuleListResult = armpostgresqlflexibleservers.FirewallRuleListResult{ // Value: []*armpostgresqlflexibleservers.FirewallRule{ // { // Name: to.Ptr("rule1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules/rule1"), // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ // EndIPAddress: to.Ptr("255.255.255.255"), // StartIPAddress: to.Ptr("0.0.0.0"), // }, // }, // { // Name: to.Ptr("rule2"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/firewallRules/rule2"), // Properties: &armpostgresqlflexibleservers.FirewallRuleProperties{ // EndIPAddress: to.Ptr("255.0.0.0"), // StartIPAddress: to.Ptr("1.0.0.0"), // }, // }}, // } }
Output:
type FirewallRulesClientBeginCreateOrUpdateOptions ¶
type FirewallRulesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FirewallRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the FirewallRulesClient.BeginCreateOrUpdate method.
type FirewallRulesClientBeginDeleteOptions ¶
type FirewallRulesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FirewallRulesClientBeginDeleteOptions contains the optional parameters for the FirewallRulesClient.BeginDelete method.
type FirewallRulesClientCreateOrUpdateResponse ¶
type FirewallRulesClientCreateOrUpdateResponse struct { // Represents a server firewall rule. FirewallRule }
FirewallRulesClientCreateOrUpdateResponse contains the response from method FirewallRulesClient.BeginCreateOrUpdate.
type FirewallRulesClientDeleteResponse ¶
type FirewallRulesClientDeleteResponse struct { }
FirewallRulesClientDeleteResponse contains the response from method FirewallRulesClient.BeginDelete.
type FirewallRulesClientGetOptions ¶
type FirewallRulesClientGetOptions struct { }
FirewallRulesClientGetOptions contains the optional parameters for the FirewallRulesClient.Get method.
type FirewallRulesClientGetResponse ¶
type FirewallRulesClientGetResponse struct { // Represents a server firewall rule. FirewallRule }
FirewallRulesClientGetResponse contains the response from method FirewallRulesClient.Get.
type FirewallRulesClientListByServerOptions ¶
type FirewallRulesClientListByServerOptions struct { }
FirewallRulesClientListByServerOptions contains the optional parameters for the FirewallRulesClient.NewListByServerPager method.
type FirewallRulesClientListByServerResponse ¶
type FirewallRulesClientListByServerResponse struct { // A list of firewall rules. FirewallRuleListResult }
FirewallRulesClientListByServerResponse contains the response from method FirewallRulesClient.NewListByServerPager.
type FlexibleServerEditionCapability ¶
type FlexibleServerEditionCapability struct { // READ-ONLY; Server edition name Name *string // READ-ONLY; The status Status *string // READ-ONLY; The list of server versions supported by this server edition. SupportedServerVersions []*ServerVersionCapability // READ-ONLY; The list of editions supported by this server edition. SupportedStorageEditions []*StorageEditionCapability }
FlexibleServerEditionCapability - Flexible server edition capabilities.
func (FlexibleServerEditionCapability) MarshalJSON ¶
func (f FlexibleServerEditionCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FlexibleServerEditionCapability.
func (*FlexibleServerEditionCapability) UnmarshalJSON ¶
func (f *FlexibleServerEditionCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FlexibleServerEditionCapability.
type GeoRedundantBackupEnum ¶
type GeoRedundantBackupEnum string
GeoRedundantBackupEnum - A value indicating whether Geo-Redundant backup is enabled on the server.
const ( GeoRedundantBackupEnumDisabled GeoRedundantBackupEnum = "Disabled" GeoRedundantBackupEnumEnabled GeoRedundantBackupEnum = "Enabled" )
func PossibleGeoRedundantBackupEnumValues ¶
func PossibleGeoRedundantBackupEnumValues() []GeoRedundantBackupEnum
PossibleGeoRedundantBackupEnumValues returns the possible values for the GeoRedundantBackupEnum const type.
type GetPrivateDNSZoneSuffixClient ¶
type GetPrivateDNSZoneSuffixClient struct {
// contains filtered or unexported fields
}
GetPrivateDNSZoneSuffixClient contains the methods for the GetPrivateDNSZoneSuffix group. Don't use this type directly, use NewGetPrivateDNSZoneSuffixClient() instead.
func NewGetPrivateDNSZoneSuffixClient ¶
func NewGetPrivateDNSZoneSuffixClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*GetPrivateDNSZoneSuffixClient, error)
NewGetPrivateDNSZoneSuffixClient creates a new instance of GetPrivateDNSZoneSuffixClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*GetPrivateDNSZoneSuffixClient) Execute ¶
func (client *GetPrivateDNSZoneSuffixClient) Execute(ctx context.Context, options *GetPrivateDNSZoneSuffixClientExecuteOptions) (GetPrivateDNSZoneSuffixClientExecuteResponse, error)
Execute - Get private DNS zone suffix in the cloud If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-01
- options - GetPrivateDNSZoneSuffixClientExecuteOptions contains the optional parameters for the GetPrivateDNSZoneSuffixClient.Execute method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/GetPrivateDnsZoneSuffix.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewGetPrivateDNSZoneSuffixClient().Execute(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Value = "postgres.database.azure.com"
Output:
type GetPrivateDNSZoneSuffixClientExecuteOptions ¶
type GetPrivateDNSZoneSuffixClientExecuteOptions struct { }
GetPrivateDNSZoneSuffixClientExecuteOptions contains the optional parameters for the GetPrivateDNSZoneSuffixClient.Execute method.
type GetPrivateDNSZoneSuffixClientExecuteResponse ¶
type GetPrivateDNSZoneSuffixClientExecuteResponse struct { // Represents a resource name availability. Value *string }
GetPrivateDNSZoneSuffixClientExecuteResponse contains the response from method GetPrivateDNSZoneSuffixClient.Execute.
type HighAvailability ¶
type HighAvailability struct { // The HA mode for the server. Mode *HighAvailabilityMode // availability zone information of the standby. StandbyAvailabilityZone *string // READ-ONLY; A state of a HA server that is visible to user. State *ServerHAState }
HighAvailability - High availability properties of a server
func (HighAvailability) MarshalJSON ¶
func (h HighAvailability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HighAvailability.
func (*HighAvailability) UnmarshalJSON ¶
func (h *HighAvailability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HighAvailability.
type HighAvailabilityMode ¶
type HighAvailabilityMode string
HighAvailabilityMode - The HA mode for the server.
const ( HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant" )
func PossibleHighAvailabilityModeValues ¶
func PossibleHighAvailabilityModeValues() []HighAvailabilityMode
PossibleHighAvailabilityModeValues returns the possible values for the HighAvailabilityMode const type.
type HyperscaleNodeEditionCapability ¶
type HyperscaleNodeEditionCapability struct { // READ-ONLY; Server edition name Name *string // READ-ONLY; The status Status *string // READ-ONLY; The list of Node Types supported by this server edition. SupportedNodeTypes []*NodeTypeCapability // READ-ONLY; The list of server versions supported by this server edition. SupportedServerVersions []*ServerVersionCapability // READ-ONLY; The list of editions supported by this server edition. SupportedStorageEditions []*StorageEditionCapability }
HyperscaleNodeEditionCapability - Hyperscale node edition capabilities.
func (HyperscaleNodeEditionCapability) MarshalJSON ¶
func (h HyperscaleNodeEditionCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperscaleNodeEditionCapability.
func (*HyperscaleNodeEditionCapability) UnmarshalJSON ¶
func (h *HyperscaleNodeEditionCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperscaleNodeEditionCapability.
type IdentityType ¶
type IdentityType string
IdentityType - the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned'
const ( IdentityTypeNone IdentityType = "None" IdentityTypeSystemAssigned IdentityType = "SystemAssigned" IdentityTypeUserAssigned IdentityType = "UserAssigned" )
func PossibleIdentityTypeValues ¶
func PossibleIdentityTypeValues() []IdentityType
PossibleIdentityTypeValues returns the possible values for the IdentityType const type.
type LocationBasedCapabilitiesClient ¶
type LocationBasedCapabilitiesClient struct {
// contains filtered or unexported fields
}
LocationBasedCapabilitiesClient contains the methods for the LocationBasedCapabilities group. Don't use this type directly, use NewLocationBasedCapabilitiesClient() instead.
func NewLocationBasedCapabilitiesClient ¶
func NewLocationBasedCapabilitiesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LocationBasedCapabilitiesClient, error)
NewLocationBasedCapabilitiesClient creates a new instance of LocationBasedCapabilitiesClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*LocationBasedCapabilitiesClient) NewExecutePager ¶
func (client *LocationBasedCapabilitiesClient) NewExecutePager(locationName string, options *LocationBasedCapabilitiesClientExecuteOptions) *runtime.Pager[LocationBasedCapabilitiesClientExecuteResponse]
NewExecutePager - Get capabilities at specified location in a given subscription.
Generated from API version 2022-12-01
- locationName - The name of the location.
- options - LocationBasedCapabilitiesClientExecuteOptions contains the optional parameters for the LocationBasedCapabilitiesClient.NewExecutePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/CapabilitiesByLocation.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewLocationBasedCapabilitiesClient().NewExecutePager("westus", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.CapabilitiesListResult = armpostgresqlflexibleservers.CapabilitiesListResult{ // Value: []*armpostgresqlflexibleservers.CapabilityProperties{ // { // GeoBackupSupported: to.Ptr(true), // Status: to.Ptr("Default"), // SupportedFlexibleServerEditions: []*armpostgresqlflexibleservers.FlexibleServerEditionCapability{ // { // Name: to.Ptr("Burstable"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }, // { // Name: to.Ptr("GeneralPurpose"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }, // { // Name: to.Ptr("MemoryOptimized"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }}, // SupportedHAMode: []*string{ // to.Ptr("SameZone"), // to.Ptr("ZoneRedundant")}, // SupportedHyperscaleNodeEditions: []*armpostgresqlflexibleservers.HyperscaleNodeEditionCapability{ // { // Name: to.Ptr("GeneralPurpose"), // Status: to.Ptr("Available"), // SupportedNodeTypes: []*armpostgresqlflexibleservers.NodeTypeCapability{ // { // Name: to.Ptr("Coordinator"), // NodeType: to.Ptr("Coordinator"), // Status: to.Ptr("Default"), // }}, // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](25600), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](51200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](80000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("11.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("11.2"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](25600), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](51200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](80000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("11.2.8"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](25600), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](51200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](80000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("33553408"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](33553408), // SupportedIops: to.Ptr[int64](20000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }, // { // Name: to.Ptr("MemoryOptimized"), // Status: to.Ptr("Available"), // SupportedNodeTypes: []*armpostgresqlflexibleservers.NodeTypeCapability{ // { // Name: to.Ptr("Worker"), // NodeType: to.Ptr("Worker"), // Status: to.Ptr("Default"), // }}, // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](25600), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](51200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](80000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](64), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("11.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](25600), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](51200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](80000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("11.2"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](25600), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](51200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](80000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("11.2.8"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](25600), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](51200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](80000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("33553408"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](33553408), // SupportedIops: to.Ptr[int64](20000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }}, // Zone: to.Ptr("none"), // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(true), // ZoneRedundantHaSupported: to.Ptr(true), // }, // { // GeoBackupSupported: to.Ptr(true), // Status: to.Ptr("Available"), // SupportedFlexibleServerEditions: []*armpostgresqlflexibleservers.FlexibleServerEditionCapability{ // { // Name: to.Ptr("Burstable"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }, // { // Name: to.Ptr("GeneralPurpose"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }, // { // Name: to.Ptr("MemoryOptimized"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }}, // SupportedHyperscaleNodeEditions: []*armpostgresqlflexibleservers.HyperscaleNodeEditionCapability{ // }, // Zone: to.Ptr("1"), // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(true), // ZoneRedundantHaSupported: to.Ptr(true), // }, // { // GeoBackupSupported: to.Ptr(true), // Status: to.Ptr("Available"), // SupportedFlexibleServerEditions: []*armpostgresqlflexibleservers.FlexibleServerEditionCapability{ // { // Name: to.Ptr("Burstable"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }, // { // Name: to.Ptr("GeneralPurpose"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }, // { // Name: to.Ptr("MemoryOptimized"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }}, // SupportedHyperscaleNodeEditions: []*armpostgresqlflexibleservers.HyperscaleNodeEditionCapability{ // }, // Zone: to.Ptr("2"), // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(true), // ZoneRedundantHaSupported: to.Ptr(true), // }, // { // GeoBackupSupported: to.Ptr(true), // Status: to.Ptr("Available"), // SupportedFlexibleServerEditions: []*armpostgresqlflexibleservers.FlexibleServerEditionCapability{ // { // Name: to.Ptr("Burstable"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_B1ms"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](640), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](1), // }, // { // Name: to.Ptr("Standard_B2s"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](1280), // SupportedMemoryPerVcoreMB: to.Ptr[int64](2048), // VCores: to.Ptr[int64](2), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }, // { // Name: to.Ptr("GeneralPurpose"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_D2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_D2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_D4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_D8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_D16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_D32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_D48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_D64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](4096), // VCores: to.Ptr[int64](64), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }, // { // Name: to.Ptr("MemoryOptimized"), // Status: to.Ptr("Available"), // SupportedServerVersions: []*armpostgresqlflexibleservers.ServerVersionCapability{ // { // Name: to.Ptr("11"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // SupportedVersionsToUpgrade: []*string{ // to.Ptr("12"), // to.Ptr("13"), // to.Ptr("14")}, // }, // { // Name: to.Ptr("12"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.0"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("12.1"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }, // { // Name: to.Ptr("13"), // Status: to.Ptr("Available"), // SupportedVcores: []*armpostgresqlflexibleservers.VcoreCapability{ // { // Name: to.Ptr("Standard_E2s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E32s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64s_v3"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }, // { // Name: to.Ptr("Standard_E2ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](3200), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](2), // }, // { // Name: to.Ptr("Standard_E4ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](6400), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](4), // }, // { // Name: to.Ptr("Standard_E8ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](12800), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](8), // }, // { // Name: to.Ptr("Standard_E16ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](16), // }, // { // Name: to.Ptr("Standard_E20ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](20), // }, // { // Name: to.Ptr("Standard_E32ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](32), // }, // { // Name: to.Ptr("Standard_E48ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](8192), // VCores: to.Ptr[int64](48), // }, // { // Name: to.Ptr("Standard_E64ds_v4"), // Status: to.Ptr("Available"), // SupportedIops: to.Ptr[int64](18000), // SupportedMemoryPerVcoreMB: to.Ptr[int64](6912), // VCores: to.Ptr[int64](64), // }}, // }}, // SupportedStorageEditions: []*armpostgresqlflexibleservers.StorageEditionCapability{ // { // Name: to.Ptr("ManagedDisk"), // Status: to.Ptr("Default"), // SupportedStorageMB: []*armpostgresqlflexibleservers.StorageMBCapability{ // { // Name: to.Ptr("32768"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](32768), // SupportedIops: to.Ptr[int64](120), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("65536"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](65536), // SupportedIops: to.Ptr[int64](240), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("131072"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](131072), // SupportedIops: to.Ptr[int64](500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("262144"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](262144), // SupportedIops: to.Ptr[int64](1100), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("524288"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](524288), // SupportedIops: to.Ptr[int64](2300), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("1048576"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](1048576), // SupportedIops: to.Ptr[int64](5000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("2097152"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](2097152), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("4194304"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](4194304), // SupportedIops: to.Ptr[int64](7500), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("8388608"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](8388608), // SupportedIops: to.Ptr[int64](16000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }, // { // Name: to.Ptr("16777216"), // Status: to.Ptr("Available"), // StorageSizeMB: to.Ptr[int64](16777216), // SupportedIops: to.Ptr[int64](18000), // SupportedUpgradableTierList: []*armpostgresqlflexibleservers.StorageTierCapability{ // { // Name: to.Ptr("P4"), // Iops: to.Ptr[int64](120), // IsBaseline: to.Ptr(true), // Status: to.Ptr("Available"), // TierName: to.Ptr("P4"), // }, // { // Name: to.Ptr("P6"), // Iops: to.Ptr[int64](240), // IsBaseline: to.Ptr(false), // Status: to.Ptr("Available"), // TierName: to.Ptr("P6"), // }}, // }}, // }}, // }}, // SupportedHyperscaleNodeEditions: []*armpostgresqlflexibleservers.HyperscaleNodeEditionCapability{ // }, // Zone: to.Ptr("3"), // ZoneRedundantHaAndGeoBackupSupported: to.Ptr(true), // ZoneRedundantHaSupported: to.Ptr(true), // }}, // } }
Output:
type LocationBasedCapabilitiesClientExecuteOptions ¶
type LocationBasedCapabilitiesClientExecuteOptions struct { }
LocationBasedCapabilitiesClientExecuteOptions contains the optional parameters for the LocationBasedCapabilitiesClient.NewExecutePager method.
type LocationBasedCapabilitiesClientExecuteResponse ¶
type LocationBasedCapabilitiesClientExecuteResponse struct { // location capability CapabilitiesListResult }
LocationBasedCapabilitiesClientExecuteResponse contains the response from method LocationBasedCapabilitiesClient.NewExecutePager.
type MaintenanceWindow ¶
type MaintenanceWindow struct { // indicates whether custom window is enabled or disabled CustomWindow *string // day of week for maintenance window DayOfWeek *int32 // start hour for maintenance window StartHour *int32 // start minute for maintenance window StartMinute *int32 }
MaintenanceWindow - Maintenance window properties of a server.
func (MaintenanceWindow) MarshalJSON ¶
func (m MaintenanceWindow) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MaintenanceWindow.
func (*MaintenanceWindow) UnmarshalJSON ¶
func (m *MaintenanceWindow) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MaintenanceWindow.
type NameAvailability ¶
type NameAvailability struct { // Detailed reason why the given name is available. Message *string // Indicates if the resource name is available. NameAvailable *bool // The reason why the given name is not available. Reason *CheckNameAvailabilityReason // READ-ONLY; name of the PostgreSQL server. Name *string // READ-ONLY; type of the server Type *string }
NameAvailability - Represents a resource name availability.
func (NameAvailability) MarshalJSON ¶
func (n NameAvailability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NameAvailability.
func (*NameAvailability) UnmarshalJSON ¶
func (n *NameAvailability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NameAvailability.
type Network ¶
type Network struct { // delegated subnet arm resource id. DelegatedSubnetResourceID *string // private dns zone arm resource id. PrivateDNSZoneArmResourceID *string // READ-ONLY; public network access is enabled or not PublicNetworkAccess *ServerPublicNetworkAccessState }
Network properties of a server
func (Network) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Network.
func (*Network) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Network.
type NodeTypeCapability ¶
type NodeTypeCapability struct { // READ-ONLY; note type name Name *string // READ-ONLY; note type NodeType *string // READ-ONLY; The status Status *string }
NodeTypeCapability - node type capability
func (NodeTypeCapability) MarshalJSON ¶
func (n NodeTypeCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NodeTypeCapability.
func (*NodeTypeCapability) UnmarshalJSON ¶
func (n *NodeTypeCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NodeTypeCapability.
type Operation ¶
type Operation struct { // Indicates whether the operation is a data action IsDataAction *bool // READ-ONLY; The localized display information for this particular operation or action. Display *OperationDisplay // READ-ONLY; The name of the operation being performed on this particular object. Name *string // READ-ONLY; The intended executor of the operation. Origin *OperationOrigin // READ-ONLY; Additional descriptions for the operation. Properties map[string]any }
Operation - REST API operation definition.
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; Operation description. Description *string // READ-ONLY; Localized friendly name for the operation. Operation *string // READ-ONLY; Operation resource provider name. Provider *string // READ-ONLY; Resource on which the operation is performed. Resource *string }
OperationDisplay - Display metadata associated with the operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { // URL client should use to fetch the next page (per server side paging). It's null for now, added for future use. NextLink *string // Collection of available operation details Value []*Operation }
OperationListResult - A list of resource provider operations.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationOrigin ¶
type OperationOrigin string
OperationOrigin - The intended executor of the operation.
const ( OperationOriginNotSpecified OperationOrigin = "NotSpecified" OperationOriginSystem OperationOrigin = "system" OperationOriginUser OperationOrigin = "user" )
func PossibleOperationOriginValues ¶
func PossibleOperationOriginValues() []OperationOrigin
PossibleOperationOriginValues returns the possible values for the OperationOrigin const type.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(ctx context.Context, options *OperationsClientListOptions) (OperationsClientListResponse, error)
List - Lists all of the available REST API operations. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-01
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/OperationList.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewOperationsClient().List(ctx, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.OperationListResult = armpostgresqlflexibleservers.OperationListResult{ // Value: []*armpostgresqlflexibleservers.Operation{ // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of servers or gets the properties for the specified server."), // Operation: to.Ptr("List/Get PostgreSQL Servers"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a server with the specified parameters or update the properties or tags for the specified server."), // Operation: to.Ptr("Create/Update PostgreSQL Server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing server."), // Operation: to.Ptr("Delete PostgreSQL Server"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("PostgreSQL Server"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return the list of firewall rules for a server or gets the properties for the specified firewall rule."), // Operation: to.Ptr("List/Get Firewall Rules"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates a firewall rule with the specified parameters or update an existing rule."), // Operation: to.Ptr("Create/Update Firewall Rule"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/firewallRules/delete"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Deletes an existing firewall rule."), // Operation: to.Ptr("Delete Firewall Rule"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Firewall Rules"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/metricDefinitions/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Return types of metrics that are available for databases"), // Operation: to.Ptr("Get database metric definitions"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // Properties: map[string]any{ // "serviceSpecification": map[string]any{ // "metricSpecifications":[]any{ // map[string]any{ // "name": "cpu_percent", // "aggregationType": "Average", // "displayDescription": "CPU percent", // "displayName": "CPU percent", // "fillGapWithZero": true, // "unit": "Percent", // }, // map[string]any{ // "name": "compute_limit", // "aggregationType": "Average", // "displayDescription": "Compute Unit limit", // "displayName": "Compute Unit limit", // "unit": "Count", // }, // map[string]any{ // "name": "compute_consumption_percent", // "aggregationType": "Average", // "displayDescription": "Compute Unit percentage", // "displayName": "Compute Unit percentage", // "fillGapWithZero": true, // "unit": "Percent", // }, // map[string]any{ // "name": "memory_percent", // "aggregationType": "Average", // "displayDescription": "Memory percent", // "displayName": "Memory percent", // "fillGapWithZero": true, // "unit": "Percent", // }, // map[string]any{ // "name": "io_consumption_percent", // "aggregationType": "Average", // "displayDescription": "IO percent", // "displayName": "IO percent", // "fillGapWithZero": true, // "unit": "Percent", // }, // map[string]any{ // "name": "storage_percent", // "aggregationType": "Average", // "displayDescription": "Storage percentage", // "displayName": "Storage percentage", // "unit": "Percent", // }, // map[string]any{ // "name": "storage_used", // "aggregationType": "Average", // "displayDescription": "Storage used", // "displayName": "Storage used", // "unit": "Bytes", // }, // map[string]any{ // "name": "storage_limit", // "aggregationType": "Average", // "displayDescription": "Storage limit", // "displayName": "Storage limit", // "unit": "Bytes", // }, // map[string]any{ // "name": "active_connections", // "aggregationType": "Average", // "displayDescription": "Total active connections", // "displayName": "Total active connections", // "fillGapWithZero": true, // "unit": "Count", // }, // map[string]any{ // "name": "connections_failed", // "aggregationType": "Average", // "displayDescription": "Total failed connections", // "displayName": "Total failed connections", // "fillGapWithZero": true, // "unit": "Count", // }, // }, // }, // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/read"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Gets the disagnostic setting for the resource"), // Operation: to.Ptr("Read diagnostic setting"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // }, // { // Name: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/write"), // Display: &armpostgresqlflexibleservers.OperationDisplay{ // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), // Operation: to.Ptr("Write diagnostic setting"), // Provider: to.Ptr("Microsoft DB for PostgreSQL"), // Resource: to.Ptr("Database Metric Definition"), // }, // }}, // }
Output:
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct { // A list of resource provider operations. OperationListResult }
OperationsClientListResponse contains the response from method OperationsClient.List.
type Origin ¶
type Origin string
Origin - Backup type.
const (
OriginFull Origin = "Full"
)
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type PasswordAuthEnum ¶
type PasswordAuthEnum string
PasswordAuthEnum - If Enabled, Password authentication is enabled.
const ( PasswordAuthEnumDisabled PasswordAuthEnum = "Disabled" PasswordAuthEnumEnabled PasswordAuthEnum = "Enabled" )
func PossiblePasswordAuthEnumValues ¶
func PossiblePasswordAuthEnumValues() []PasswordAuthEnum
PossiblePasswordAuthEnumValues returns the possible values for the PasswordAuthEnum const type.
type PrincipalType ¶
type PrincipalType string
PrincipalType - The principal type used to represent the type of Active Directory Administrator.
const ( PrincipalTypeGroup PrincipalType = "Group" PrincipalTypeServicePrincipal PrincipalType = "ServicePrincipal" PrincipalTypeUnknown PrincipalType = "Unknown" PrincipalTypeUser PrincipalType = "User" )
func PossiblePrincipalTypeValues ¶
func PossiblePrincipalTypeValues() []PrincipalType
PossiblePrincipalTypeValues returns the possible values for the PrincipalType const type.
type ReplicasClient ¶
type ReplicasClient struct {
// contains filtered or unexported fields
}
ReplicasClient contains the methods for the Replicas group. Don't use this type directly, use NewReplicasClient() instead.
func NewReplicasClient ¶
func NewReplicasClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicasClient, error)
NewReplicasClient creates a new instance of ReplicasClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ReplicasClient) NewListByServerPager ¶
func (client *ReplicasClient) NewListByServerPager(resourceGroupName string, serverName string, options *ReplicasClientListByServerOptions) *runtime.Pager[ReplicasClientListByServerResponse]
NewListByServerPager - List all the replicas for a given server.
Generated from API version 2022-12-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 method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ReplicasListByServer.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewReplicasClient().NewListByServerPager("testrg", "sourcepgservername", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServerListResult = armpostgresqlflexibleservers.ServerListResult{ // Value: []*armpostgresqlflexibleservers.Server{ // { // Name: to.Ptr("pgtestsvc5rep"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5rep"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("2"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-27T00:28:17.727Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc5rep.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // ReplicaCapacity: to.Ptr[int32](0), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRoleAsyncReplica), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }}, // } }
Output:
type ReplicasClientListByServerOptions ¶
type ReplicasClientListByServerOptions struct { }
ReplicasClientListByServerOptions contains the optional parameters for the ReplicasClient.NewListByServerPager method.
type ReplicasClientListByServerResponse ¶
type ReplicasClientListByServerResponse struct { // A list of servers. ServerListResult }
ReplicasClientListByServerResponse contains the response from method ReplicasClient.NewListByServerPager.
type ReplicationRole ¶
type ReplicationRole string
ReplicationRole - Used to indicate role of the server in replication set.
const ( ReplicationRoleAsyncReplica ReplicationRole = "AsyncReplica" ReplicationRoleGeoAsyncReplica ReplicationRole = "GeoAsyncReplica" ReplicationRoleNone ReplicationRole = "None" ReplicationRolePrimary ReplicationRole = "Primary" )
func PossibleReplicationRoleValues ¶
func PossibleReplicationRoleValues() []ReplicationRole
PossibleReplicationRoleValues returns the possible values for the ReplicationRole const type.
type RestartParameter ¶
type RestartParameter struct { // Failover mode. FailoverMode *FailoverMode // Indicates whether to restart the server with failover. RestartWithFailover *bool }
RestartParameter - Represents server restart parameters.
func (RestartParameter) MarshalJSON ¶
func (r RestartParameter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RestartParameter.
func (*RestartParameter) UnmarshalJSON ¶
func (r *RestartParameter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RestartParameter.
type SKU ¶
type SKU struct { // REQUIRED; The name of the sku, typically, tier + family + cores, e.g. StandardD4sv3. Name *string // REQUIRED; The tier of the particular SKU, e.g. Burstable. Tier *SKUTier }
SKU - Sku information related properties of a server.
func (SKU) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type SKU.
func (*SKU) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type SKU.
type SKUTier ¶
type SKUTier string
SKUTier - The tier of the particular SKU, e.g. Burstable.
func PossibleSKUTierValues ¶
func PossibleSKUTierValues() []SKUTier
PossibleSKUTierValues returns the possible values for the SKUTier const type.
type Server ¶
type Server struct { // REQUIRED; The geo-location where the resource lives Location *string // Describes the identity of the application. Identity *UserAssignedIdentity // Properties of the server. Properties *ServerProperties // The SKU (pricing tier) of the server. SKU *SKU // Resource tags. Tags map[string]*string // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
Server - Represents a server.
func (Server) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Server.
func (*Server) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Server.
type ServerBackup ¶
type ServerBackup struct { // The properties of a server backup. Properties *ServerBackupProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string }
ServerBackup - Server backup properties
func (ServerBackup) MarshalJSON ¶
func (s ServerBackup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerBackup.
func (*ServerBackup) UnmarshalJSON ¶
func (s *ServerBackup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerBackup.
type ServerBackupListResult ¶
type ServerBackupListResult struct { // The link used to get the next page of operations. NextLink *string // The list of backups of a server. Value []*ServerBackup }
ServerBackupListResult - A list of server backups.
func (ServerBackupListResult) MarshalJSON ¶
func (s ServerBackupListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerBackupListResult.
func (*ServerBackupListResult) UnmarshalJSON ¶
func (s *ServerBackupListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerBackupListResult.
type ServerBackupProperties ¶
type ServerBackupProperties struct { // Backup type. BackupType *Origin // Backup completed time (ISO8601 format). CompletedTime *time.Time // Backup source Source *string }
ServerBackupProperties - The properties of a server backup.
func (ServerBackupProperties) MarshalJSON ¶
func (s ServerBackupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerBackupProperties.
func (*ServerBackupProperties) UnmarshalJSON ¶
func (s *ServerBackupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerBackupProperties.
type ServerForUpdate ¶
type ServerForUpdate struct { // Describes the identity of the application. Identity *UserAssignedIdentity // Properties of the server. Properties *ServerPropertiesForUpdate // The SKU (pricing tier) of the server. SKU *SKU // Application-specific metadata in the form of key-value pairs. Tags map[string]*string }
ServerForUpdate - Represents a server to be updated.
func (ServerForUpdate) MarshalJSON ¶
func (s ServerForUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerForUpdate.
func (*ServerForUpdate) UnmarshalJSON ¶
func (s *ServerForUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerForUpdate.
type ServerHAState ¶
type ServerHAState string
ServerHAState - A state of a HA server that is visible to user.
const ( ServerHAStateCreatingStandby ServerHAState = "CreatingStandby" ServerHAStateFailingOver ServerHAState = "FailingOver" ServerHAStateHealthy ServerHAState = "Healthy" ServerHAStateNotEnabled ServerHAState = "NotEnabled" ServerHAStateRemovingStandby ServerHAState = "RemovingStandby" ServerHAStateReplicatingData ServerHAState = "ReplicatingData" )
func PossibleServerHAStateValues ¶
func PossibleServerHAStateValues() []ServerHAState
PossibleServerHAStateValues returns the possible values for the ServerHAState const type.
type ServerListResult ¶
type ServerListResult struct { // The link used to get the next page of operations. NextLink *string // The list of flexible servers Value []*Server }
ServerListResult - A list of servers.
func (ServerListResult) MarshalJSON ¶
func (s ServerListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerListResult.
func (*ServerListResult) UnmarshalJSON ¶
func (s *ServerListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerListResult.
type ServerProperties ¶
type ServerProperties struct { // The administrator's login name of a server. Can only be specified when the server is being created (and is required for // creation). AdministratorLogin *string // The administrator login password (required for server creation). AdministratorLoginPassword *string // AuthConfig properties of a server. AuthConfig *AuthConfig // availability zone information of the server. AvailabilityZone *string // Backup properties of a server. Backup *Backup // The mode to create a new PostgreSQL server. CreateMode *CreateMode // Data encryption properties of a server. DataEncryption *DataEncryption // High availability properties of a server. HighAvailability *HighAvailability // Maintenance window properties of a server. MaintenanceWindow *MaintenanceWindow // Network properties of a server. Network *Network // Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' // or 'GeoRestore'. PointInTimeUTC *time.Time // Replicas allowed for a server. ReplicaCapacity *int32 // Replication role of the server ReplicationRole *ReplicationRole // The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' // or 'Replica'. SourceServerResourceID *string // Storage properties of a server. Storage *Storage // PostgreSQL Server version. Version *ServerVersion // READ-ONLY; The fully qualified domain name of a server. FullyQualifiedDomainName *string // READ-ONLY; The minor version of the server. MinorVersion *string // READ-ONLY; A state of a server that is visible to user. State *ServerState }
ServerProperties - The properties of a server.
func (ServerProperties) MarshalJSON ¶
func (s ServerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerProperties.
func (*ServerProperties) UnmarshalJSON ¶
func (s *ServerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerProperties.
type ServerPropertiesForUpdate ¶
type ServerPropertiesForUpdate struct { // The password of the administrator login. AdministratorLoginPassword *string // AuthConfig properties of a server. AuthConfig *AuthConfig // Backup properties of a server. Backup *Backup // The mode to update a new PostgreSQL server. CreateMode *CreateModeForUpdate // Data encryption properties of a server. DataEncryption *DataEncryption // High availability properties of a server. HighAvailability *HighAvailability // Maintenance window properties of a server. MaintenanceWindow *MaintenanceWindow // Replication role of the server ReplicationRole *ReplicationRole // Storage properties of a server. Storage *Storage // PostgreSQL Server version. Version *ServerVersion }
func (ServerPropertiesForUpdate) MarshalJSON ¶
func (s ServerPropertiesForUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerPropertiesForUpdate.
func (*ServerPropertiesForUpdate) UnmarshalJSON ¶
func (s *ServerPropertiesForUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerPropertiesForUpdate.
type ServerPublicNetworkAccessState ¶
type ServerPublicNetworkAccessState string
ServerPublicNetworkAccessState - public network access is enabled or not
const ( ServerPublicNetworkAccessStateDisabled ServerPublicNetworkAccessState = "Disabled" ServerPublicNetworkAccessStateEnabled ServerPublicNetworkAccessState = "Enabled" )
func PossibleServerPublicNetworkAccessStateValues ¶
func PossibleServerPublicNetworkAccessStateValues() []ServerPublicNetworkAccessState
PossibleServerPublicNetworkAccessStateValues returns the possible values for the ServerPublicNetworkAccessState const type.
type ServerState ¶
type ServerState string
ServerState - A state of a server that is visible to user.
const ( ServerStateDisabled ServerState = "Disabled" ServerStateDropping ServerState = "Dropping" ServerStateReady ServerState = "Ready" ServerStateStarting ServerState = "Starting" ServerStateStopped ServerState = "Stopped" ServerStateStopping ServerState = "Stopping" ServerStateUpdating ServerState = "Updating" )
func PossibleServerStateValues ¶
func PossibleServerStateValues() []ServerState
PossibleServerStateValues returns the possible values for the ServerState const type.
type ServerVersion ¶
type ServerVersion string
ServerVersion - The version of a server.
const ( ServerVersionEleven ServerVersion = "11" ServerVersionFourteen ServerVersion = "14" ServerVersionThirteen ServerVersion = "13" ServerVersionTwelve ServerVersion = "12" )
func PossibleServerVersionValues ¶
func PossibleServerVersionValues() []ServerVersion
PossibleServerVersionValues returns the possible values for the ServerVersion const type.
type ServerVersionCapability ¶
type ServerVersionCapability struct { // READ-ONLY; server version Name *string // READ-ONLY; The status Status *string // READ-ONLY SupportedVcores []*VcoreCapability // READ-ONLY; Supported servers versions to upgrade SupportedVersionsToUpgrade []*string }
ServerVersionCapability - Server version capabilities.
func (ServerVersionCapability) MarshalJSON ¶
func (s ServerVersionCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServerVersionCapability.
func (*ServerVersionCapability) UnmarshalJSON ¶
func (s *ServerVersionCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServerVersionCapability.
type ServersClient ¶
type ServersClient struct {
// contains filtered or unexported fields
}
ServersClient contains the methods for the Servers group. Don't use this type directly, use NewServersClient() instead.
func NewServersClient ¶
func NewServersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServersClient, error)
NewServersClient creates a new instance of ServersClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ServersClient) BeginCreate ¶
func (client *ServersClient) BeginCreate(ctx context.Context, resourceGroupName string, serverName string, parameters Server, options *ServersClientBeginCreateOptions) (*runtime.Poller[ServersClientCreateResponse], error)
BeginCreate - Creates a new server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- options - ServersClientBeginCreateOptions contains the optional parameters for the ServersClient.BeginCreate method.
Example (CreateADatabaseAsAGeoRestoreInGeoPairedLocation) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreateGeoRestore.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc5geo", armpostgresqlflexibleservers.Server{ Location: to.Ptr("eastus"), Properties: &armpostgresqlflexibleservers.ServerProperties{ CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeGeoRestore), PointInTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-27T00:04:59.407Z"); return t }()), SourceServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc5geo"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5geo"), // Location: to.Ptr("eastus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("2"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-27T00:28:17.727Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumEnabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc5geo.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
Example (CreateADatabaseAsAPointInTimeRestore) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreatePointInTimeRestore.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc5", armpostgresqlflexibleservers.Server{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.ServerProperties{ CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModePointInTimeRestore), PointInTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-27T00:04:59.407Z"); return t }()), SourceServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc5"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("2"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-27T00:28:17.727Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc5.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
Example (CreateANewServer) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.Server{ Location: to.Ptr("westus"), Tags: map[string]*string{ "ElasticServer": to.Ptr("1"), }, Properties: &armpostgresqlflexibleservers.ServerProperties{ AdministratorLogin: to.Ptr("cloudsa"), AdministratorLoginPassword: to.Ptr("password"), AvailabilityZone: to.Ptr("1"), Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](7), GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeCreate), HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), }, Network: &armpostgresqlflexibleservers.Network{ DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), }, Storage: &armpostgresqlflexibleservers.Storage{ StorageSizeGB: to.Ptr[int32](512), }, Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D4s_v3"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:08:06.719Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
Example (CreateANewServerWithActiveDirectoryAuthenticationEnabled) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreateWithAadAuthEnabled.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.Server{ Location: to.Ptr("westus"), Tags: map[string]*string{ "ElasticServer": to.Ptr("1"), }, Properties: &armpostgresqlflexibleservers.ServerProperties{ AdministratorLogin: to.Ptr("cloudsa"), AdministratorLoginPassword: to.Ptr("password"), AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), }, AvailabilityZone: to.Ptr("1"), Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](7), GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeCreate), DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), }, HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), }, Network: &armpostgresqlflexibleservers.Network{ DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), }, Storage: &armpostgresqlflexibleservers.Storage{ StorageSizeGB: to.Ptr[int32](512), }, Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D4s_v3"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:08:06.719Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
Example (ServerCreateReplica) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreateReplica.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc5rep", armpostgresqlflexibleservers.Server{ Location: to.Ptr("westus"), Properties: &armpostgresqlflexibleservers.ServerProperties{ CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeReplica), PointInTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-27T00:04:59.407Z"); return t }()), SourceServerResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc5rep"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5rep"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("2"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-27T00:28:17.727Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc5rep.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // ReplicaCapacity: to.Ptr[int32](0), // ReplicationRole: to.Ptr(armpostgresqlflexibleservers.ReplicationRoleAsyncReplica), // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
Example (ServerCreateWithDataEncryptionEnabled) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerCreateWithDataEncryptionEnabled.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginCreate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.Server{ Location: to.Ptr("westus"), Tags: map[string]*string{ "ElasticServer": to.Ptr("1"), }, Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {}, }, }, Properties: &armpostgresqlflexibleservers.ServerProperties{ AdministratorLogin: to.Ptr("cloudsa"), AdministratorLoginPassword: to.Ptr("password"), AvailabilityZone: to.Ptr("1"), Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](7), GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeCreate), DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787"), PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), }, HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), }, Network: &armpostgresqlflexibleservers.Network{ DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), }, Storage: &armpostgresqlflexibleservers.Storage{ StorageSizeGB: to.Ptr[int32](512), }, Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D4s_v3"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ // Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), // UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // PrincipalID: to.Ptr("0a4e0c6e-7751-4078-ae1f-a477306c11e9"), // }, // }, // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:08:06.719Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), // PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787"), // PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), // }, // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
func (*ServersClient) BeginDelete ¶
func (client *ServersClient) BeginDelete(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginDeleteOptions) (*runtime.Poller[ServersClientDeleteResponse], error)
BeginDelete - Deletes a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerDelete.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginDelete(ctx, "testrg", "testserver", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
Output:
func (*ServersClient) BeginRestart ¶
func (client *ServersClient) BeginRestart(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginRestartOptions) (*runtime.Poller[ServersClientRestartResponse], error)
BeginRestart - Restarts a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
Example (ServerRestart) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerRestart.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginRestart(ctx, "testrg", "testserver", &armpostgresqlflexibleservers.ServersClientBeginRestartOptions{Parameters: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
Output:
Example (ServerRestartWithFailover) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerRestartWithFailover.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginRestart(ctx, "testrg", "testserver", &armpostgresqlflexibleservers.ServersClientBeginRestartOptions{Parameters: &armpostgresqlflexibleservers.RestartParameter{ FailoverMode: to.Ptr(armpostgresqlflexibleservers.FailoverModeForcedFailover), RestartWithFailover: to.Ptr(true), }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
Output:
func (*ServersClient) BeginStart ¶
func (client *ServersClient) BeginStart(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginStartOptions) (*runtime.Poller[ServersClientStartResponse], error)
BeginStart - Starts a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerStart.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginStart(ctx, "testrg", "testserver", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
Output:
func (*ServersClient) BeginStop ¶
func (client *ServersClient) BeginStop(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientBeginStopOptions) (*runtime.Poller[ServersClientStopResponse], error)
BeginStop - Stops a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerStop.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginStop(ctx, "testrg", "testserver", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) }
Output:
func (*ServersClient) BeginUpdate ¶
func (client *ServersClient) BeginUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForUpdate, options *ServersClientBeginUpdateOptions) (*runtime.Poller[ServersClientUpdateResponse], error)
BeginUpdate - Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
- options - ServersClientBeginUpdateOptions contains the optional parameters for the ServersClient.BeginUpdate method.
Example (ServerUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "TestGroup", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ AdministratorLoginPassword: to.Ptr("newpassword"), Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](20), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), Storage: &armpostgresqlflexibleservers.Storage{ StorageSizeGB: to.Ptr[int32](1024), }, }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D8s_v3"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](20), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](1024), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D8s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
Example (ServerUpdateWithAadAuthEnabled) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerUpdateWithAadAuthEnabled.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "TestGroup", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ AdministratorLoginPassword: to.Ptr("newpassword"), AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), }, Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](20), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), Storage: &armpostgresqlflexibleservers.Storage{ StorageSizeGB: to.Ptr[int32](1024), }, }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D8s_v3"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumEnabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // TenantID: to.Ptr("tttttt-tttt-tttt-tttt-tttttttttttt"), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](20), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](1024), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D8s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
Example (ServerUpdateWithCustomerMaintenanceWindow) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ CustomWindow: to.Ptr("Enabled"), DayOfWeek: to.Ptr[int32](0), StartHour: to.Ptr[int32](8), StartMinute: to.Ptr[int32](0), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Enabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](8), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
Example (ServerUpdateWithDataEncryptionEnabled) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerUpdateWithDataEncryptionEnabled.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "TestGroup", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {}, }, }, Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ AdministratorLoginPassword: to.Ptr("newpassword"), Backup: &armpostgresqlflexibleservers.Backup{ BackupRetentionDays: to.Ptr[int32](20), }, CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787"), PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), }, Storage: &armpostgresqlflexibleservers.Storage{ StorageSizeGB: to.Ptr[int32](1024), }, }, SKU: &armpostgresqlflexibleservers.SKU{ Name: to.Ptr("Standard_D8s_v3"), Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Identity: &armpostgresqlflexibleservers.UserAssignedIdentity{ // Type: to.Ptr(armpostgresqlflexibleservers.IdentityTypeUserAssigned), // UserAssignedIdentities: map[string]*armpostgresqlflexibleservers.UserIdentity{ // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // PrincipalID: to.Ptr("0a4e0c6e-7751-4078-ae1f-a477306c11e9"), // }, // "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity-1": &armpostgresqlflexibleservers.UserIdentity{ // ClientID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), // PrincipalID: to.Ptr("90008082-e024-4cc3-8fcf-63bcdb9cf6b6"), // }, // }, // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](20), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeAzureKeyVault), // PrimaryKeyURI: to.Ptr("https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787"), // PrimaryUserAssignedIdentityID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"), // }, // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](1024), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D8s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
Example (ServerUpdateWithMajorVersionUpgrade) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerUpdateWithMajorVersionUpgrade.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewServersClient().BeginUpdate(ctx, "testrg", "pgtestsvc4", armpostgresqlflexibleservers.ServerForUpdate{ Properties: &armpostgresqlflexibleservers.ServerPropertiesForUpdate{ CreateMode: to.Ptr(armpostgresqlflexibleservers.CreateModeForUpdateUpdate), Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionFourteen), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // DataEncryption: &armpostgresqlflexibleservers.DataEncryption{ // Type: to.Ptr(armpostgresqlflexibleservers.ArmServerKeyTypeSystemManaged), // }, // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionFourteen), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
func (*ServersClient) Get ¶
func (client *ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string, options *ServersClientGetOptions) (ServersClientGetResponse, error)
Get - Gets information about a server. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2022-12-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.
Example (ServerGet) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerGet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServersClient().Get(ctx, "testrg", "pgtestsvc1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T23:07:25.816Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc1.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
Example (ServerGetWithVnet) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerGetWithVnet.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewServersClient().Get(ctx, "testrg", "pgtestsvc4", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Server = armpostgresqlflexibleservers.Server{ // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MaintenanceWindow: &armpostgresqlflexibleservers.MaintenanceWindow{ // CustomWindow: to.Ptr("Disabled"), // DayOfWeek: to.Ptr[int32](0), // StartHour: to.Ptr[int32](0), // StartMinute: to.Ptr[int32](0), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }
Output:
func (*ServersClient) NewListByResourceGroupPager ¶
func (client *ServersClient) NewListByResourceGroupPager(resourceGroupName string, options *ServersClientListByResourceGroupOptions) *runtime.Pager[ServersClientListByResourceGroupResponse]
NewListByResourceGroupPager - List all the servers in a given resource group.
Generated from API version 2022-12-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - ServersClientListByResourceGroupOptions contains the optional parameters for the ServersClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerListByResourceGroup.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewServersClient().NewListByResourceGroupPager("testrg", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServerListResult = armpostgresqlflexibleservers.ServerListResult{ // Value: []*armpostgresqlflexibleservers.Server{ // { // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }, // { // Name: to.Ptr("pgtestsvc1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T23:15:38.813Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc1.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }}, // } }
Output:
func (*ServersClient) NewListPager ¶
func (client *ServersClient) NewListPager(options *ServersClientListOptions) *runtime.Pager[ServersClientListResponse]
NewListPager - List all the servers in a given subscription.
Generated from API version 2022-12-01
- options - ServersClientListOptions contains the optional parameters for the ServersClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/ServerList.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewServersClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.ServerListResult = armpostgresqlflexibleservers.ServerListResult{ // Value: []*armpostgresqlflexibleservers.Server{ // { // Name: to.Ptr("pgtestsvc4"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc4"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T01:16:58.372Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // FullyQualifiedDomainName: to.Ptr("c7d7483a8ceb.test-private-dns-zone.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeZoneRedundant), // StandbyAvailabilityZone: to.Ptr("2"), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateHealthy), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // DelegatedSubnetResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"), // PrivateDNSZoneArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"), // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateDisabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }, // { // Name: to.Ptr("pgtestsvc1"), // Type: to.Ptr("Microsoft.DBforPostgreSQL/flexibleServers"), // ID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc1"), // Location: to.Ptr("westus"), // Tags: map[string]*string{ // "ElasticServer": to.Ptr("1"), // }, // Properties: &armpostgresqlflexibleservers.ServerProperties{ // AdministratorLogin: to.Ptr("cloudsa"), // AuthConfig: &armpostgresqlflexibleservers.AuthConfig{ // ActiveDirectoryAuth: to.Ptr(armpostgresqlflexibleservers.ActiveDirectoryAuthEnumDisabled), // PasswordAuth: to.Ptr(armpostgresqlflexibleservers.PasswordAuthEnumEnabled), // }, // AvailabilityZone: to.Ptr("1"), // Backup: &armpostgresqlflexibleservers.Backup{ // BackupRetentionDays: to.Ptr[int32](7), // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-26T23:15:38.813Z"); return t}()), // GeoRedundantBackup: to.Ptr(armpostgresqlflexibleservers.GeoRedundantBackupEnumDisabled), // }, // FullyQualifiedDomainName: to.Ptr("pgtestsvc1.postgres.database.azure.com"), // HighAvailability: &armpostgresqlflexibleservers.HighAvailability{ // Mode: to.Ptr(armpostgresqlflexibleservers.HighAvailabilityModeDisabled), // State: to.Ptr(armpostgresqlflexibleservers.ServerHAStateNotEnabled), // }, // MinorVersion: to.Ptr("6"), // Network: &armpostgresqlflexibleservers.Network{ // PublicNetworkAccess: to.Ptr(armpostgresqlflexibleservers.ServerPublicNetworkAccessStateEnabled), // }, // State: to.Ptr(armpostgresqlflexibleservers.ServerStateReady), // Storage: &armpostgresqlflexibleservers.Storage{ // StorageSizeGB: to.Ptr[int32](512), // }, // Version: to.Ptr(armpostgresqlflexibleservers.ServerVersionTwelve), // }, // SKU: &armpostgresqlflexibleservers.SKU{ // Name: to.Ptr("Standard_D4s_v3"), // Tier: to.Ptr(armpostgresqlflexibleservers.SKUTierGeneralPurpose), // }, // }}, // } }
Output:
type ServersClientBeginCreateOptions ¶
type ServersClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServersClientBeginCreateOptions contains the optional parameters for the ServersClient.BeginCreate method.
type ServersClientBeginDeleteOptions ¶
type ServersClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServersClientBeginDeleteOptions contains the optional parameters for the ServersClient.BeginDelete method.
type ServersClientBeginRestartOptions ¶
type ServersClientBeginRestartOptions struct { // The parameters for restarting a server. Parameters *RestartParameter // Resumes the LRO from the provided token. ResumeToken string }
ServersClientBeginRestartOptions contains the optional parameters for the ServersClient.BeginRestart method.
type ServersClientBeginStartOptions ¶
type ServersClientBeginStartOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServersClientBeginStartOptions contains the optional parameters for the ServersClient.BeginStart method.
type ServersClientBeginStopOptions ¶
type ServersClientBeginStopOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServersClientBeginStopOptions contains the optional parameters for the ServersClient.BeginStop method.
type ServersClientBeginUpdateOptions ¶
type ServersClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ServersClientBeginUpdateOptions contains the optional parameters for the ServersClient.BeginUpdate method.
type ServersClientCreateResponse ¶
type ServersClientCreateResponse struct { // Represents a server. Server }
ServersClientCreateResponse contains the response from method ServersClient.BeginCreate.
type ServersClientDeleteResponse ¶
type ServersClientDeleteResponse struct { }
ServersClientDeleteResponse contains the response from method ServersClient.BeginDelete.
type ServersClientGetOptions ¶
type ServersClientGetOptions struct { }
ServersClientGetOptions contains the optional parameters for the ServersClient.Get method.
type ServersClientGetResponse ¶
type ServersClientGetResponse struct { // Represents a server. Server }
ServersClientGetResponse contains the response from method ServersClient.Get.
type ServersClientListByResourceGroupOptions ¶
type ServersClientListByResourceGroupOptions struct { }
ServersClientListByResourceGroupOptions contains the optional parameters for the ServersClient.NewListByResourceGroupPager method.
type ServersClientListByResourceGroupResponse ¶
type ServersClientListByResourceGroupResponse struct { // A list of servers. ServerListResult }
ServersClientListByResourceGroupResponse contains the response from method ServersClient.NewListByResourceGroupPager.
type ServersClientListOptions ¶
type ServersClientListOptions struct { }
ServersClientListOptions contains the optional parameters for the ServersClient.NewListPager method.
type ServersClientListResponse ¶
type ServersClientListResponse struct { // A list of servers. ServerListResult }
ServersClientListResponse contains the response from method ServersClient.NewListPager.
type ServersClientRestartResponse ¶
type ServersClientRestartResponse struct { }
ServersClientRestartResponse contains the response from method ServersClient.BeginRestart.
type ServersClientStartResponse ¶
type ServersClientStartResponse struct { }
ServersClientStartResponse contains the response from method ServersClient.BeginStart.
type ServersClientStopResponse ¶
type ServersClientStopResponse struct { }
ServersClientStopResponse contains the response from method ServersClient.BeginStop.
type ServersClientUpdateResponse ¶
type ServersClientUpdateResponse struct { // Represents a server. Server }
ServersClientUpdateResponse contains the response from method ServersClient.BeginUpdate.
type Storage ¶
type Storage struct { // Max storage allowed for a server. StorageSizeGB *int32 }
Storage properties of a server
func (Storage) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Storage.
func (*Storage) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Storage.
type StorageEditionCapability ¶
type StorageEditionCapability struct { // READ-ONLY; storage edition name Name *string // READ-ONLY; The status Status *string // READ-ONLY SupportedStorageMB []*StorageMBCapability }
StorageEditionCapability - storage edition capability
func (StorageEditionCapability) MarshalJSON ¶
func (s StorageEditionCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageEditionCapability.
func (*StorageEditionCapability) UnmarshalJSON ¶
func (s *StorageEditionCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageEditionCapability.
type StorageMBCapability ¶
type StorageMBCapability struct { // READ-ONLY; storage MB name Name *string // READ-ONLY; The status Status *string // READ-ONLY; storage size in MB StorageSizeMB *int64 // READ-ONLY; supported IOPS SupportedIops *int64 // READ-ONLY SupportedUpgradableTierList []*StorageTierCapability }
StorageMBCapability - storage size in MB capability
func (StorageMBCapability) MarshalJSON ¶
func (s StorageMBCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageMBCapability.
func (*StorageMBCapability) UnmarshalJSON ¶
func (s *StorageMBCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageMBCapability.
type StorageTierCapability ¶
type StorageTierCapability struct { // READ-ONLY; Supported IOPS for this storage tier Iops *int64 // READ-ONLY; Indicates if this is a baseline storage tier or not IsBaseline *bool // READ-ONLY; Name to represent Storage tier capability Name *string // READ-ONLY; Status os this storage tier Status *string // READ-ONLY; Storage tier name TierName *string }
func (StorageTierCapability) MarshalJSON ¶
func (s StorageTierCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageTierCapability.
func (*StorageTierCapability) UnmarshalJSON ¶
func (s *StorageTierCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageTierCapability.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. CreatedBy *string // The type of identity that created the resource. CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time // The identity that last modified the resource. LastModifiedBy *string // The type of identity that last modified the resource. LastModifiedByType *CreatedByType }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type UserAssignedIdentity ¶
type UserAssignedIdentity struct { // REQUIRED; the types of identities associated with this resource; currently restricted to 'SystemAssigned and UserAssigned' Type *IdentityType // represents user assigned identities map. UserAssignedIdentities map[string]*UserIdentity }
UserAssignedIdentity - Information describing the identities associated with this application.
func (UserAssignedIdentity) MarshalJSON ¶
func (u UserAssignedIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity.
func (*UserAssignedIdentity) UnmarshalJSON ¶
func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentity.
type UserIdentity ¶
type UserIdentity struct { // the client identifier of the Service Principal which this identity represents. ClientID *string // the object identifier of the Service Principal which this identity represents. PrincipalID *string }
UserIdentity - Describes a single user-assigned identity associated with the application.
func (UserIdentity) MarshalJSON ¶
func (u UserIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserIdentity.
func (*UserIdentity) UnmarshalJSON ¶
func (u *UserIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserIdentity.
type VcoreCapability ¶
type VcoreCapability struct { // READ-ONLY; vCore name Name *string // READ-ONLY; The status Status *string // READ-ONLY; supported IOPS SupportedIops *int64 // READ-ONLY; supported memory per vCore in MB SupportedMemoryPerVcoreMB *int64 // READ-ONLY; supported vCores VCores *int64 }
VcoreCapability - Vcores capability
func (VcoreCapability) MarshalJSON ¶
func (v VcoreCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VcoreCapability.
func (*VcoreCapability) UnmarshalJSON ¶
func (v *VcoreCapability) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VcoreCapability.
type VirtualNetworkSubnetUsageClient ¶
type VirtualNetworkSubnetUsageClient struct {
// contains filtered or unexported fields
}
VirtualNetworkSubnetUsageClient contains the methods for the VirtualNetworkSubnetUsage group. Don't use this type directly, use NewVirtualNetworkSubnetUsageClient() instead.
func NewVirtualNetworkSubnetUsageClient ¶
func NewVirtualNetworkSubnetUsageClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualNetworkSubnetUsageClient, error)
NewVirtualNetworkSubnetUsageClient creates a new instance of VirtualNetworkSubnetUsageClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*VirtualNetworkSubnetUsageClient) Execute ¶
func (client *VirtualNetworkSubnetUsageClient) Execute(ctx context.Context, locationName string, parameters VirtualNetworkSubnetUsageParameter, options *VirtualNetworkSubnetUsageClientExecuteOptions) (VirtualNetworkSubnetUsageClientExecuteResponse, error)
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 2022-12-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 method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/75ece9197dbac70ac0ba651c53a79c1841944be2/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/examples/VirtualNetworkSubnetUsage.json
cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armpostgresqlflexibleservers.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewVirtualNetworkSubnetUsageClient().Execute(ctx, "westus", armpostgresqlflexibleservers.VirtualNetworkSubnetUsageParameter{ VirtualNetworkArmResourceID: to.Ptr("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/testvnet"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.VirtualNetworkSubnetUsageResult = armpostgresqlflexibleservers.VirtualNetworkSubnetUsageResult{ // DelegatedSubnetsUsage: []*armpostgresqlflexibleservers.DelegatedSubnetUsage{ // { // SubnetName: to.Ptr("test-subnet-1"), // Usage: to.Ptr[int64](2), // }, // { // SubnetName: to.Ptr("test-subnet-2"), // Usage: to.Ptr[int64](3), // }}, // Location: to.Ptr("westus"), // SubscriptionID: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff"), // }
Output:
type VirtualNetworkSubnetUsageClientExecuteOptions ¶
type VirtualNetworkSubnetUsageClientExecuteOptions struct { }
VirtualNetworkSubnetUsageClientExecuteOptions contains the optional parameters for the VirtualNetworkSubnetUsageClient.Execute method.
type VirtualNetworkSubnetUsageClientExecuteResponse ¶
type VirtualNetworkSubnetUsageClientExecuteResponse struct { // Virtual network subnet usage data. VirtualNetworkSubnetUsageResult }
VirtualNetworkSubnetUsageClientExecuteResponse contains the response from method VirtualNetworkSubnetUsageClient.Execute.
type VirtualNetworkSubnetUsageParameter ¶
type VirtualNetworkSubnetUsageParameter struct { // Virtual network resource id. VirtualNetworkArmResourceID *string }
VirtualNetworkSubnetUsageParameter - Virtual network subnet usage parameter
func (VirtualNetworkSubnetUsageParameter) MarshalJSON ¶
func (v VirtualNetworkSubnetUsageParameter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkSubnetUsageParameter.
func (*VirtualNetworkSubnetUsageParameter) UnmarshalJSON ¶
func (v *VirtualNetworkSubnetUsageParameter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkSubnetUsageParameter.
type VirtualNetworkSubnetUsageResult ¶
type VirtualNetworkSubnetUsageResult struct { // READ-ONLY DelegatedSubnetsUsage []*DelegatedSubnetUsage // READ-ONLY; location of the delegated subnet usage Location *string // READ-ONLY; subscriptionId of the delegated subnet usage SubscriptionID *string }
VirtualNetworkSubnetUsageResult - Virtual network subnet usage data.
func (VirtualNetworkSubnetUsageResult) MarshalJSON ¶
func (v VirtualNetworkSubnetUsageResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkSubnetUsageResult.
func (*VirtualNetworkSubnetUsageResult) UnmarshalJSON ¶
func (v *VirtualNetworkSubnetUsageResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkSubnetUsageResult.
Source Files ¶
- administrators_client.go
- backups_client.go
- build.go
- checknameavailability_client.go
- checknameavailabilitywithlocation_client.go
- client_factory.go
- configurations_client.go
- constants.go
- databases_client.go
- firewallrules_client.go
- getprivatednszonesuffix_client.go
- locationbasedcapabilities_client.go
- models.go
- models_serde.go
- operations_client.go
- options.go
- replicas_client.go
- response_types.go
- servers_client.go
- time_rfc3339.go
- virtualnetworksubnetusage_client.go