From 7f60bd3a7850ae1053fe5a0e3d2ce39b18811716 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Fri, 24 Nov 2023 09:18:37 +0000 Subject: [PATCH] Update postgres API version --- internal/services/postgres/client/client.go | 2 +- .../postgresql_flexible_server_data_source.go | 2 +- .../postgresql_flexible_server_resource.go | 2 +- ...ostgresql_flexible_server_resource_test.go | 2 +- .../servers/model_serverproperties.go | 44 --- .../servers/README.md | 6 +- .../servers/client.go | 0 .../servers/constants.go | 270 ++++++++++++++++++ .../servers/id_flexibleserver.go | 0 .../servers/method_create.go | 0 .../servers/method_delete.go | 0 .../servers/method_get.go | 0 .../servers/method_list.go | 0 .../servers/method_listbyresourcegroup.go | 0 .../servers/method_update.go | 0 .../servers/model_authconfig.go | 0 .../servers/model_backup.go | 0 .../servers/model_dataencryption.go | 0 .../servers/model_highavailability.go | 0 .../servers/model_maintenancewindow.go | 0 .../servers/model_network.go | 0 .../servers/model_privateendpoint.go | 8 + .../model_privateendpointconnection.go | 16 ++ ...del_privateendpointconnectionproperties.go | 11 + ...model_privatelinkserviceconnectionstate.go | 10 + .../servers/model_replica.go | 12 + .../servers/model_server.go | 0 .../servers/model_serverforupdate.go | 0 .../servers/model_serverproperties.go | 46 +++ .../model_serverpropertiesforupdate.go | 1 + .../servers/model_sku.go | 0 .../servers/model_storage.go | 2 + .../servers/predicates.go | 0 .../servers/version.go | 2 +- vendor/modules.txt | 2 +- 35 files changed, 385 insertions(+), 53 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_serverproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/constants.go (72%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/id_flexibleserver.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/method_create.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/model_authconfig.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/model_backup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/model_dataencryption.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/model_highavailability.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/model_maintenancewindow.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/model_network.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_replica.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/model_server.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/model_serverforupdate.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_serverproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/model_serverpropertiesforupdate.go (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/model_sku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/model_storage.go (76%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/{2023-03-01-preview => 2023-06-01-preview}/servers/version.go (86%) diff --git a/internal/services/postgres/client/client.go b/internal/services/postgres/client/client.go index be58f6d8438c..af2e6813a56c 100644 --- a/internal/services/postgres/client/client.go +++ b/internal/services/postgres/client/client.go @@ -20,7 +20,7 @@ import ( flexibleserveradministrators "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators" flexibleserverdatabases "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases" flexibleserverfirewallrules "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules" - flexibleservers "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers" + flexibleservers "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/postgres/postgresql_flexible_server_data_source.go b/internal/services/postgres/postgresql_flexible_server_data_source.go index 45945c14cfe6..aacdc20ac85e 100644 --- a/internal/services/postgres/postgresql_flexible_server_data_source.go +++ b/internal/services/postgres/postgresql_flexible_server_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/postgres/postgresql_flexible_server_resource.go b/internal/services/postgres/postgresql_flexible_server_resource.go index 09452c79e04f..b59da096e91d 100644 --- a/internal/services/postgres/postgresql_flexible_server_resource.go +++ b/internal/services/postgres/postgresql_flexible_server_resource.go @@ -19,7 +19,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers" "github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/postgres/postgresql_flexible_server_resource_test.go b/internal/services/postgres/postgresql_flexible_server_resource_test.go index 1275ae7ba1b9..730b74e7aa6b 100644 --- a/internal/services/postgres/postgresql_flexible_server_resource_test.go +++ b/internal/services/postgres/postgresql_flexible_server_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_serverproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_serverproperties.go deleted file mode 100644 index 857de2172c71..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_serverproperties.go +++ /dev/null @@ -1,44 +0,0 @@ -package servers - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServerProperties struct { - AdministratorLogin *string `json:"administratorLogin,omitempty"` - AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` - AuthConfig *AuthConfig `json:"authConfig,omitempty"` - AvailabilityZone *string `json:"availabilityZone,omitempty"` - Backup *Backup `json:"backup,omitempty"` - CreateMode *CreateMode `json:"createMode,omitempty"` - DataEncryption *DataEncryption `json:"dataEncryption,omitempty"` - FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` - HighAvailability *HighAvailability `json:"highAvailability,omitempty"` - MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` - MinorVersion *string `json:"minorVersion,omitempty"` - Network *Network `json:"network,omitempty"` - PointInTimeUTC *string `json:"pointInTimeUTC,omitempty"` - ReplicaCapacity *int64 `json:"replicaCapacity,omitempty"` - ReplicationRole *ReplicationRole `json:"replicationRole,omitempty"` - SourceServerResourceId *string `json:"sourceServerResourceId,omitempty"` - State *ServerState `json:"state,omitempty"` - Storage *Storage `json:"storage,omitempty"` - Version *ServerVersion `json:"version,omitempty"` -} - -func (o *ServerProperties) GetPointInTimeUTCAsTime() (*time.Time, error) { - if o.PointInTimeUTC == nil { - return nil, nil - } - return dates.ParseAsFormat(o.PointInTimeUTC, "2006-01-02T15:04:05Z07:00") -} - -func (o *ServerProperties) SetPointInTimeUTCAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.PointInTimeUTC = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/README.md index 053db7464ad1..c42f91436f48 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers` Documentation -The `servers` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2023-03-01-preview`). +The `servers` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers" +import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/constants.go similarity index 72% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/constants.go index 794dbadfca98..23011e6a11f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/constants.go @@ -432,6 +432,179 @@ func parsePasswordAuthEnum(input string) (*PasswordAuthEnum, error) { return &out, nil } +type PrivateEndpointConnectionProvisioningState string + +const ( + PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" + PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" + PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" + PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" +) + +func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string { + return []string{ + string(PrivateEndpointConnectionProvisioningStateCreating), + string(PrivateEndpointConnectionProvisioningStateDeleting), + string(PrivateEndpointConnectionProvisioningStateFailed), + string(PrivateEndpointConnectionProvisioningStateSucceeded), + } +} + +func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointConnectionProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointConnectionProvisioningState(input string) (*PrivateEndpointConnectionProvisioningState, error) { + vals := map[string]PrivateEndpointConnectionProvisioningState{ + "creating": PrivateEndpointConnectionProvisioningStateCreating, + "deleting": PrivateEndpointConnectionProvisioningStateDeleting, + "failed": PrivateEndpointConnectionProvisioningStateFailed, + "succeeded": PrivateEndpointConnectionProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointConnectionProvisioningState(input) + return &out, nil +} + +type PrivateEndpointServiceConnectionStatus string + +const ( + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" +) + +func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string { + return []string{ + string(PrivateEndpointServiceConnectionStatusApproved), + string(PrivateEndpointServiceConnectionStatusPending), + string(PrivateEndpointServiceConnectionStatusRejected), + } +} + +func (s *PrivateEndpointServiceConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointServiceConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointServiceConnectionStatus(input string) (*PrivateEndpointServiceConnectionStatus, error) { + vals := map[string]PrivateEndpointServiceConnectionStatus{ + "approved": PrivateEndpointServiceConnectionStatusApproved, + "pending": PrivateEndpointServiceConnectionStatusPending, + "rejected": PrivateEndpointServiceConnectionStatusRejected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointServiceConnectionStatus(input) + return &out, nil +} + +type ReadReplicaPromoteMode string + +const ( + ReadReplicaPromoteModeStandalone ReadReplicaPromoteMode = "standalone" + ReadReplicaPromoteModeSwitchover ReadReplicaPromoteMode = "switchover" +) + +func PossibleValuesForReadReplicaPromoteMode() []string { + return []string{ + string(ReadReplicaPromoteModeStandalone), + string(ReadReplicaPromoteModeSwitchover), + } +} + +func (s *ReadReplicaPromoteMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseReadReplicaPromoteMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseReadReplicaPromoteMode(input string) (*ReadReplicaPromoteMode, error) { + vals := map[string]ReadReplicaPromoteMode{ + "standalone": ReadReplicaPromoteModeStandalone, + "switchover": ReadReplicaPromoteModeSwitchover, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ReadReplicaPromoteMode(input) + return &out, nil +} + +type ReplicationPromoteOption string + +const ( + ReplicationPromoteOptionForced ReplicationPromoteOption = "forced" + ReplicationPromoteOptionPlanned ReplicationPromoteOption = "planned" +) + +func PossibleValuesForReplicationPromoteOption() []string { + return []string{ + string(ReplicationPromoteOptionForced), + string(ReplicationPromoteOptionPlanned), + } +} + +func (s *ReplicationPromoteOption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseReplicationPromoteOption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseReplicationPromoteOption(input string) (*ReplicationPromoteOption, error) { + vals := map[string]ReplicationPromoteOption{ + "forced": ReplicationPromoteOptionForced, + "planned": ReplicationPromoteOptionPlanned, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ReplicationPromoteOption(input) + return &out, nil +} + type ReplicationRole string const ( @@ -479,6 +652,59 @@ func parseReplicationRole(input string) (*ReplicationRole, error) { return &out, nil } +type ReplicationState string + +const ( + ReplicationStateActive ReplicationState = "Active" + ReplicationStateBroken ReplicationState = "Broken" + ReplicationStateCatchup ReplicationState = "Catchup" + ReplicationStateProvisioning ReplicationState = "Provisioning" + ReplicationStateReconfiguring ReplicationState = "Reconfiguring" + ReplicationStateUpdating ReplicationState = "Updating" +) + +func PossibleValuesForReplicationState() []string { + return []string{ + string(ReplicationStateActive), + string(ReplicationStateBroken), + string(ReplicationStateCatchup), + string(ReplicationStateProvisioning), + string(ReplicationStateReconfiguring), + string(ReplicationStateUpdating), + } +} + +func (s *ReplicationState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseReplicationState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseReplicationState(input string) (*ReplicationState, error) { + vals := map[string]ReplicationState{ + "active": ReplicationStateActive, + "broken": ReplicationStateBroken, + "catchup": ReplicationStateCatchup, + "provisioning": ReplicationStateProvisioning, + "reconfiguring": ReplicationStateReconfiguring, + "updating": ReplicationStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ReplicationState(input) + return &out, nil +} + type ServerHAState string const ( @@ -635,6 +861,7 @@ const ( ServerVersionOneFive ServerVersion = "15" ServerVersionOneFour ServerVersion = "14" ServerVersionOneOne ServerVersion = "11" + ServerVersionOneSix ServerVersion = "16" ServerVersionOneThree ServerVersion = "13" ServerVersionOneTwo ServerVersion = "12" ) @@ -644,6 +871,7 @@ func PossibleValuesForServerVersion() []string { string(ServerVersionOneFive), string(ServerVersionOneFour), string(ServerVersionOneOne), + string(ServerVersionOneSix), string(ServerVersionOneThree), string(ServerVersionOneTwo), } @@ -667,6 +895,7 @@ func parseServerVersion(input string) (*ServerVersion, error) { "15": ServerVersionOneFive, "14": ServerVersionOneFour, "11": ServerVersionOneOne, + "16": ServerVersionOneSix, "13": ServerVersionOneThree, "12": ServerVersionOneTwo, } @@ -763,3 +992,44 @@ func parseStorageAutoGrow(input string) (*StorageAutoGrow, error) { out := StorageAutoGrow(input) return &out, nil } + +type StorageType string + +const ( + StorageTypePremiumLRS StorageType = "Premium_LRS" + StorageTypePremiumVTwoLRS StorageType = "PremiumV2_LRS" +) + +func PossibleValuesForStorageType() []string { + return []string{ + string(StorageTypePremiumLRS), + string(StorageTypePremiumVTwoLRS), + } +} + +func (s *StorageType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseStorageType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseStorageType(input string) (*StorageType, error) { + vals := map[string]StorageType{ + "premium_lrs": StorageTypePremiumLRS, + "premiumv2_lrs": StorageTypePremiumVTwoLRS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := StorageType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_authconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_authconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_authconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_authconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_backup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_backup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_backup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_dataencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_dataencryption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_dataencryption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_dataencryption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_highavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_highavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_highavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_highavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_maintenancewindow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_maintenancewindow.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_maintenancewindow.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_maintenancewindow.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_network.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_network.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_network.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_network.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpoint.go new file mode 100644 index 000000000000..edbc5878b033 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpoint.go @@ -0,0 +1,8 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpointconnection.go new file mode 100644 index 000000000000..d6ff31c5dad0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpointconnection.go @@ -0,0 +1,16 @@ +package servers + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..ee2ec79f43b7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privateendpointconnectionproperties.go @@ -0,0 +1,11 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState"` + ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..8a2ade12ed85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_replica.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_replica.go new file mode 100644 index 000000000000..12e298b48932 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_replica.go @@ -0,0 +1,12 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Replica struct { + Capacity *int64 `json:"capacity,omitempty"` + PromoteMode *ReadReplicaPromoteMode `json:"promoteMode,omitempty"` + PromoteOption *ReplicationPromoteOption `json:"promoteOption,omitempty"` + ReplicationState *ReplicationState `json:"replicationState,omitempty"` + Role *ReplicationRole `json:"role,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_server.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_server.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_server.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_serverforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_serverforupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_serverforupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_serverforupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_serverproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_serverproperties.go new file mode 100644 index 000000000000..eb9243f81d32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_serverproperties.go @@ -0,0 +1,46 @@ +package servers + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerProperties struct { + AdministratorLogin *string `json:"administratorLogin,omitempty"` + AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` + AuthConfig *AuthConfig `json:"authConfig,omitempty"` + AvailabilityZone *string `json:"availabilityZone,omitempty"` + Backup *Backup `json:"backup,omitempty"` + CreateMode *CreateMode `json:"createMode,omitempty"` + DataEncryption *DataEncryption `json:"dataEncryption,omitempty"` + FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` + HighAvailability *HighAvailability `json:"highAvailability,omitempty"` + MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` + MinorVersion *string `json:"minorVersion,omitempty"` + Network *Network `json:"network,omitempty"` + PointInTimeUTC *string `json:"pointInTimeUTC,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + Replica *Replica `json:"replica,omitempty"` + ReplicaCapacity *int64 `json:"replicaCapacity,omitempty"` + ReplicationRole *ReplicationRole `json:"replicationRole,omitempty"` + SourceServerResourceId *string `json:"sourceServerResourceId,omitempty"` + State *ServerState `json:"state,omitempty"` + Storage *Storage `json:"storage,omitempty"` + Version *ServerVersion `json:"version,omitempty"` +} + +func (o *ServerProperties) GetPointInTimeUTCAsTime() (*time.Time, error) { + if o.PointInTimeUTC == nil { + return nil, nil + } + return dates.ParseAsFormat(o.PointInTimeUTC, "2006-01-02T15:04:05Z07:00") +} + +func (o *ServerProperties) SetPointInTimeUTCAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.PointInTimeUTC = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_serverpropertiesforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_serverpropertiesforupdate.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_serverpropertiesforupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_serverpropertiesforupdate.go index d5c0eb4352d7..3ea7ac0c67d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_serverpropertiesforupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_serverpropertiesforupdate.go @@ -12,6 +12,7 @@ type ServerPropertiesForUpdate struct { HighAvailability *HighAvailability `json:"highAvailability,omitempty"` MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` Network *Network `json:"network,omitempty"` + Replica *Replica `json:"replica,omitempty"` ReplicationRole *ReplicationRole `json:"replicationRole,omitempty"` Storage *Storage `json:"storage,omitempty"` Version *ServerVersion `json:"version,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_storage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_storage.go similarity index 76% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_storage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_storage.go index adef2f0d8b02..5bd77807cd4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/model_storage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/model_storage.go @@ -7,5 +7,7 @@ type Storage struct { AutoGrow *StorageAutoGrow `json:"autoGrow,omitempty"` Iops *int64 `json:"iops,omitempty"` StorageSizeGB *int64 `json:"storageSizeGB,omitempty"` + Throughput *int64 `json:"throughput,omitempty"` Tier *AzureManagedDiskPerformanceTiers `json:"tier,omitempty"` + Type *StorageType `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/version.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/version.go index 94a30ee974c7..26b10ba6dad6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-03-01-preview" +const defaultApiVersion = "2023-06-01-preview" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/servers/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index f3a39774126b..f22e6bf57457 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -816,7 +816,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverr github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules -github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-03-01-preview/servers +github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules