diff --git a/internal/services/postgres/client/client.go b/internal/services/postgres/client/client.go index 7de68d1e4572..705c384448b3 100644 --- a/internal/services/postgres/client/client.go +++ b/internal/services/postgres/client/client.go @@ -17,11 +17,11 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys" flexibleserverconfigurations "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations" "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart" - 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-06-01-preview/servers" - flexibleservervirtualendpoints "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints" + flexibleserveradministrators "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators" + flexibleserverdatabases "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases" + flexibleserverfirewallrules "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules" + flexibleservers "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers" + flexibleservervirtualendpoints "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/postgres/postgresql_flexible_server_aad_administrator_resource.go b/internal/services/postgres/postgresql_flexible_server_aad_administrator_resource.go index 2476db81beea..380cfb749be2 100644 --- a/internal/services/postgres/postgresql_flexible_server_aad_administrator_resource.go +++ b/internal/services/postgres/postgresql_flexible_server_aad_administrator_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/postgres/postgresql_flexible_server_aad_administrator_resource_test.go b/internal/services/postgres/postgresql_flexible_server_aad_administrator_resource_test.go index bfa25103c24a..db580b23a498 100644 --- a/internal/services/postgres/postgresql_flexible_server_aad_administrator_resource_test.go +++ b/internal/services/postgres/postgresql_flexible_server_aad_administrator_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators" "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/internal/services/postgres/postgresql_flexible_server_data_source.go b/internal/services/postgres/postgresql_flexible_server_data_source.go index aacdc20ac85e..58d2b0cb33e5 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-06-01-preview/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/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_database_resource.go b/internal/services/postgres/postgresql_flexible_server_database_resource.go index 1eced17c3943..aa466ca96abb 100644 --- a/internal/services/postgres/postgresql_flexible_server_database_resource.go +++ b/internal/services/postgres/postgresql_flexible_server_database_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/postgres/postgresql_flexible_server_database_resource_test.go b/internal/services/postgres/postgresql_flexible_server_database_resource_test.go index 3a6494fdb1eb..edc9b97af7cf 100644 --- a/internal/services/postgres/postgresql_flexible_server_database_resource_test.go +++ b/internal/services/postgres/postgresql_flexible_server_database_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases" "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/internal/services/postgres/postgresql_flexible_server_firewall_rule_resource.go b/internal/services/postgres/postgresql_flexible_server_firewall_rule_resource.go index f6c129e7a923..eab96b6d9ea4 100644 --- a/internal/services/postgres/postgresql_flexible_server_firewall_rule_resource.go +++ b/internal/services/postgres/postgresql_flexible_server_firewall_rule_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/postgres/postgresql_flexible_server_firewall_rule_resource_test.go b/internal/services/postgres/postgresql_flexible_server_firewall_rule_resource_test.go index c1b904802ed7..c0b228de2f7c 100644 --- a/internal/services/postgres/postgresql_flexible_server_firewall_rule_resource_test.go +++ b/internal/services/postgres/postgresql_flexible_server_firewall_rule_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules" "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/internal/services/postgres/postgresql_flexible_server_resource.go b/internal/services/postgres/postgresql_flexible_server_resource.go index 7d5b7eb89cd4..39a5c90431ed 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-06-01-preview/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers" "github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" diff --git a/internal/services/postgres/postgresql_flexible_server_resource_test.go b/internal/services/postgres/postgresql_flexible_server_resource_test.go index a5bbe6dc83aa..c1ebc0febfc6 100644 --- a/internal/services/postgres/postgresql_flexible_server_resource_test.go +++ b/internal/services/postgres/postgresql_flexible_server_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/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/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource.go b/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource.go index c5ca00ab05bf..2a82f12f8bea 100644 --- a/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource.go +++ b/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource.go @@ -12,8 +12,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource_test.go b/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource_test.go index 1d2973e58f6c..89695f0ac79b 100644 --- a/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource_test.go +++ b/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints" "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/internal/services/postgres/validate/flexible_server_storage_tier.go b/internal/services/postgres/validate/flexible_server_storage_tier.go index 12c7cc59d9d7..663d59912c8e 100644 --- a/internal/services/postgres/validate/flexible_server_storage_tier.go +++ b/internal/services/postgres/validate/flexible_server_storage_tier.go @@ -4,7 +4,7 @@ package validate import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers" ) type StorageTiers struct { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/README.md index 26b77d32729e..83bfb00d806c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators` Documentation -The `administrators` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2022-12-01`). +The `administrators` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2024-08-01`). 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/2022-12-01/administrators" +import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_administrator.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/id_administrator.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_administrator.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/id_administrator.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/model_activedirectoryadministrator.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/model_activedirectoryadministrator.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/model_activedirectoryadministrator.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/model_activedirectoryadministrator.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/model_activedirectoryadministratoradd.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/model_activedirectoryadministratoradd.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/model_activedirectoryadministratoradd.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/model_activedirectoryadministratoradd.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/model_administratorproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/model_administratorproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/model_administratorproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/model_administratorproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/model_administratorpropertiesforadd.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/model_administratorpropertiesforadd.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/model_administratorpropertiesforadd.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/model_administratorpropertiesforadd.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/version.go index 78aefc28eb70..f866ba24634b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators/version.go @@ -3,8 +3,8 @@ package administrators // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-12-01" +const defaultApiVersion = "2024-08-01" func userAgent() string { - return "hashicorp/go-azure-sdk/administrators/2022-12-01" + return "hashicorp/go-azure-sdk/administrators/2024-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/README.md index 9f1da5b91b30..32e6db658d45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases` Documentation -The `databases` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2022-12-01`). +The `databases` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2024-08-01`). 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/2022-12-01/databases" +import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/id_database.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_database.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/id_database.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/model_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/model_database.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/model_database.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/model_database.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/model_databaseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/model_databaseproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/model_databaseproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/model_databaseproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/version.go index dc150c80b006..bcb1af1009b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases/version.go @@ -3,8 +3,8 @@ package databases // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-12-01" +const defaultApiVersion = "2024-08-01" func userAgent() string { - return "hashicorp/go-azure-sdk/databases/2022-12-01" + return "hashicorp/go-azure-sdk/databases/2024-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/README.md index 259c03d4f809..43527d8e1b98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules` Documentation -The `firewallrules` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2022-12-01`). +The `firewallrules` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2024-08-01`). 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/2022-12-01/firewallrules" +import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/id_firewallrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_firewallrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/id_firewallrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/model_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/model_firewallrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/model_firewallrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/model_firewallrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/model_firewallruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/model_firewallruleproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/model_firewallruleproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/model_firewallruleproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/version.go index e34e91fb7239..d1bb00cf1ea4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules/version.go @@ -3,8 +3,8 @@ package firewallrules // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-12-01" +const defaultApiVersion = "2024-08-01" func userAgent() string { - return "hashicorp/go-azure-sdk/firewallrules/2022-12-01" + return "hashicorp/go-azure-sdk/firewallrules/2024-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/README.md new file mode 100644 index 000000000000..ae51876e8af3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/README.md @@ -0,0 +1,117 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers` Documentation + +The `servers` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2024-08-01`). + +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-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers" +``` + + +### Client Initialization + +```go +client := servers.NewServersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ServersClient.Create` + +```go +ctx := context.TODO() +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := servers.Server{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ServersClient.Delete` + +```go +ctx := context.TODO() +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ServersClient.Get` + +```go +ctx := context.TODO() +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ServersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ServersClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ServersClient.Update` + +```go +ctx := context.TODO() +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := servers.ServerForUpdate{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/client.go new file mode 100644 index 000000000000..806c95250004 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/client.go @@ -0,0 +1,26 @@ +package servers + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServersClient struct { + Client *resourcemanager.Client +} + +func NewServersClientWithBaseURI(sdkApi sdkEnv.Api) (*ServersClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "servers", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ServersClient: %+v", err) + } + + return &ServersClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/constants.go new file mode 100644 index 000000000000..23011e6a11f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/constants.go @@ -0,0 +1,1035 @@ +package servers + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ActiveDirectoryAuthEnum string + +const ( + ActiveDirectoryAuthEnumDisabled ActiveDirectoryAuthEnum = "Disabled" + ActiveDirectoryAuthEnumEnabled ActiveDirectoryAuthEnum = "Enabled" +) + +func PossibleValuesForActiveDirectoryAuthEnum() []string { + return []string{ + string(ActiveDirectoryAuthEnumDisabled), + string(ActiveDirectoryAuthEnumEnabled), + } +} + +func (s *ActiveDirectoryAuthEnum) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseActiveDirectoryAuthEnum(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseActiveDirectoryAuthEnum(input string) (*ActiveDirectoryAuthEnum, error) { + vals := map[string]ActiveDirectoryAuthEnum{ + "disabled": ActiveDirectoryAuthEnumDisabled, + "enabled": ActiveDirectoryAuthEnumEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ActiveDirectoryAuthEnum(input) + return &out, nil +} + +type ArmServerKeyType string + +const ( + ArmServerKeyTypeAzureKeyVault ArmServerKeyType = "AzureKeyVault" + ArmServerKeyTypeSystemManaged ArmServerKeyType = "SystemManaged" +) + +func PossibleValuesForArmServerKeyType() []string { + return []string{ + string(ArmServerKeyTypeAzureKeyVault), + string(ArmServerKeyTypeSystemManaged), + } +} + +func (s *ArmServerKeyType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseArmServerKeyType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseArmServerKeyType(input string) (*ArmServerKeyType, error) { + vals := map[string]ArmServerKeyType{ + "azurekeyvault": ArmServerKeyTypeAzureKeyVault, + "systemmanaged": ArmServerKeyTypeSystemManaged, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ArmServerKeyType(input) + return &out, nil +} + +type AzureManagedDiskPerformanceTiers string + +const ( + AzureManagedDiskPerformanceTiersPEightZero AzureManagedDiskPerformanceTiers = "P80" + AzureManagedDiskPerformanceTiersPFiveZero AzureManagedDiskPerformanceTiers = "P50" + AzureManagedDiskPerformanceTiersPFour AzureManagedDiskPerformanceTiers = "P4" + AzureManagedDiskPerformanceTiersPFourZero AzureManagedDiskPerformanceTiers = "P40" + AzureManagedDiskPerformanceTiersPOne AzureManagedDiskPerformanceTiers = "P1" + AzureManagedDiskPerformanceTiersPOneFive AzureManagedDiskPerformanceTiers = "P15" + AzureManagedDiskPerformanceTiersPOneZero AzureManagedDiskPerformanceTiers = "P10" + AzureManagedDiskPerformanceTiersPSevenZero AzureManagedDiskPerformanceTiers = "P70" + AzureManagedDiskPerformanceTiersPSix AzureManagedDiskPerformanceTiers = "P6" + AzureManagedDiskPerformanceTiersPSixZero AzureManagedDiskPerformanceTiers = "P60" + AzureManagedDiskPerformanceTiersPThree AzureManagedDiskPerformanceTiers = "P3" + AzureManagedDiskPerformanceTiersPThreeZero AzureManagedDiskPerformanceTiers = "P30" + AzureManagedDiskPerformanceTiersPTwo AzureManagedDiskPerformanceTiers = "P2" + AzureManagedDiskPerformanceTiersPTwoZero AzureManagedDiskPerformanceTiers = "P20" +) + +func PossibleValuesForAzureManagedDiskPerformanceTiers() []string { + return []string{ + string(AzureManagedDiskPerformanceTiersPEightZero), + string(AzureManagedDiskPerformanceTiersPFiveZero), + string(AzureManagedDiskPerformanceTiersPFour), + string(AzureManagedDiskPerformanceTiersPFourZero), + string(AzureManagedDiskPerformanceTiersPOne), + string(AzureManagedDiskPerformanceTiersPOneFive), + string(AzureManagedDiskPerformanceTiersPOneZero), + string(AzureManagedDiskPerformanceTiersPSevenZero), + string(AzureManagedDiskPerformanceTiersPSix), + string(AzureManagedDiskPerformanceTiersPSixZero), + string(AzureManagedDiskPerformanceTiersPThree), + string(AzureManagedDiskPerformanceTiersPThreeZero), + string(AzureManagedDiskPerformanceTiersPTwo), + string(AzureManagedDiskPerformanceTiersPTwoZero), + } +} + +func (s *AzureManagedDiskPerformanceTiers) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureManagedDiskPerformanceTiers(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureManagedDiskPerformanceTiers(input string) (*AzureManagedDiskPerformanceTiers, error) { + vals := map[string]AzureManagedDiskPerformanceTiers{ + "p80": AzureManagedDiskPerformanceTiersPEightZero, + "p50": AzureManagedDiskPerformanceTiersPFiveZero, + "p4": AzureManagedDiskPerformanceTiersPFour, + "p40": AzureManagedDiskPerformanceTiersPFourZero, + "p1": AzureManagedDiskPerformanceTiersPOne, + "p15": AzureManagedDiskPerformanceTiersPOneFive, + "p10": AzureManagedDiskPerformanceTiersPOneZero, + "p70": AzureManagedDiskPerformanceTiersPSevenZero, + "p6": AzureManagedDiskPerformanceTiersPSix, + "p60": AzureManagedDiskPerformanceTiersPSixZero, + "p3": AzureManagedDiskPerformanceTiersPThree, + "p30": AzureManagedDiskPerformanceTiersPThreeZero, + "p2": AzureManagedDiskPerformanceTiersPTwo, + "p20": AzureManagedDiskPerformanceTiersPTwoZero, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureManagedDiskPerformanceTiers(input) + return &out, nil +} + +type CreateMode string + +const ( + CreateModeCreate CreateMode = "Create" + CreateModeDefault CreateMode = "Default" + CreateModeGeoRestore CreateMode = "GeoRestore" + CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" + CreateModeReplica CreateMode = "Replica" + CreateModeReviveDropped CreateMode = "ReviveDropped" + CreateModeUpdate CreateMode = "Update" +) + +func PossibleValuesForCreateMode() []string { + return []string{ + string(CreateModeCreate), + string(CreateModeDefault), + string(CreateModeGeoRestore), + string(CreateModePointInTimeRestore), + string(CreateModeReplica), + string(CreateModeReviveDropped), + string(CreateModeUpdate), + } +} + +func (s *CreateMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCreateMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCreateMode(input string) (*CreateMode, error) { + vals := map[string]CreateMode{ + "create": CreateModeCreate, + "default": CreateModeDefault, + "georestore": CreateModeGeoRestore, + "pointintimerestore": CreateModePointInTimeRestore, + "replica": CreateModeReplica, + "revivedropped": CreateModeReviveDropped, + "update": CreateModeUpdate, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CreateMode(input) + return &out, nil +} + +type CreateModeForUpdate string + +const ( + CreateModeForUpdateDefault CreateModeForUpdate = "Default" + CreateModeForUpdateUpdate CreateModeForUpdate = "Update" +) + +func PossibleValuesForCreateModeForUpdate() []string { + return []string{ + string(CreateModeForUpdateDefault), + string(CreateModeForUpdateUpdate), + } +} + +func (s *CreateModeForUpdate) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCreateModeForUpdate(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCreateModeForUpdate(input string) (*CreateModeForUpdate, error) { + vals := map[string]CreateModeForUpdate{ + "default": CreateModeForUpdateDefault, + "update": CreateModeForUpdateUpdate, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CreateModeForUpdate(input) + return &out, nil +} + +type GeoRedundantBackupEnum string + +const ( + GeoRedundantBackupEnumDisabled GeoRedundantBackupEnum = "Disabled" + GeoRedundantBackupEnumEnabled GeoRedundantBackupEnum = "Enabled" +) + +func PossibleValuesForGeoRedundantBackupEnum() []string { + return []string{ + string(GeoRedundantBackupEnumDisabled), + string(GeoRedundantBackupEnumEnabled), + } +} + +func (s *GeoRedundantBackupEnum) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGeoRedundantBackupEnum(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGeoRedundantBackupEnum(input string) (*GeoRedundantBackupEnum, error) { + vals := map[string]GeoRedundantBackupEnum{ + "disabled": GeoRedundantBackupEnumDisabled, + "enabled": GeoRedundantBackupEnumEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GeoRedundantBackupEnum(input) + return &out, nil +} + +type HighAvailabilityMode string + +const ( + HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" + HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" + HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant" +) + +func PossibleValuesForHighAvailabilityMode() []string { + return []string{ + string(HighAvailabilityModeDisabled), + string(HighAvailabilityModeSameZone), + string(HighAvailabilityModeZoneRedundant), + } +} + +func (s *HighAvailabilityMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHighAvailabilityMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHighAvailabilityMode(input string) (*HighAvailabilityMode, error) { + vals := map[string]HighAvailabilityMode{ + "disabled": HighAvailabilityModeDisabled, + "samezone": HighAvailabilityModeSameZone, + "zoneredundant": HighAvailabilityModeZoneRedundant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HighAvailabilityMode(input) + return &out, nil +} + +type KeyStatusEnum string + +const ( + KeyStatusEnumInvalid KeyStatusEnum = "Invalid" + KeyStatusEnumValid KeyStatusEnum = "Valid" +) + +func PossibleValuesForKeyStatusEnum() []string { + return []string{ + string(KeyStatusEnumInvalid), + string(KeyStatusEnumValid), + } +} + +func (s *KeyStatusEnum) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseKeyStatusEnum(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseKeyStatusEnum(input string) (*KeyStatusEnum, error) { + vals := map[string]KeyStatusEnum{ + "invalid": KeyStatusEnumInvalid, + "valid": KeyStatusEnumValid, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := KeyStatusEnum(input) + return &out, nil +} + +type PasswordAuthEnum string + +const ( + PasswordAuthEnumDisabled PasswordAuthEnum = "Disabled" + PasswordAuthEnumEnabled PasswordAuthEnum = "Enabled" +) + +func PossibleValuesForPasswordAuthEnum() []string { + return []string{ + string(PasswordAuthEnumDisabled), + string(PasswordAuthEnumEnabled), + } +} + +func (s *PasswordAuthEnum) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePasswordAuthEnum(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePasswordAuthEnum(input string) (*PasswordAuthEnum, error) { + vals := map[string]PasswordAuthEnum{ + "disabled": PasswordAuthEnumDisabled, + "enabled": PasswordAuthEnumEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PasswordAuthEnum(input) + 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 ( + ReplicationRoleAsyncReplica ReplicationRole = "AsyncReplica" + ReplicationRoleGeoAsyncReplica ReplicationRole = "GeoAsyncReplica" + ReplicationRoleNone ReplicationRole = "None" + ReplicationRolePrimary ReplicationRole = "Primary" +) + +func PossibleValuesForReplicationRole() []string { + return []string{ + string(ReplicationRoleAsyncReplica), + string(ReplicationRoleGeoAsyncReplica), + string(ReplicationRoleNone), + string(ReplicationRolePrimary), + } +} + +func (s *ReplicationRole) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseReplicationRole(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseReplicationRole(input string) (*ReplicationRole, error) { + vals := map[string]ReplicationRole{ + "asyncreplica": ReplicationRoleAsyncReplica, + "geoasyncreplica": ReplicationRoleGeoAsyncReplica, + "none": ReplicationRoleNone, + "primary": ReplicationRolePrimary, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ReplicationRole(input) + 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 ( + ServerHAStateCreatingStandby ServerHAState = "CreatingStandby" + ServerHAStateFailingOver ServerHAState = "FailingOver" + ServerHAStateHealthy ServerHAState = "Healthy" + ServerHAStateNotEnabled ServerHAState = "NotEnabled" + ServerHAStateRemovingStandby ServerHAState = "RemovingStandby" + ServerHAStateReplicatingData ServerHAState = "ReplicatingData" +) + +func PossibleValuesForServerHAState() []string { + return []string{ + string(ServerHAStateCreatingStandby), + string(ServerHAStateFailingOver), + string(ServerHAStateHealthy), + string(ServerHAStateNotEnabled), + string(ServerHAStateRemovingStandby), + string(ServerHAStateReplicatingData), + } +} + +func (s *ServerHAState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServerHAState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServerHAState(input string) (*ServerHAState, error) { + vals := map[string]ServerHAState{ + "creatingstandby": ServerHAStateCreatingStandby, + "failingover": ServerHAStateFailingOver, + "healthy": ServerHAStateHealthy, + "notenabled": ServerHAStateNotEnabled, + "removingstandby": ServerHAStateRemovingStandby, + "replicatingdata": ServerHAStateReplicatingData, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServerHAState(input) + return &out, nil +} + +type ServerPublicNetworkAccessState string + +const ( + ServerPublicNetworkAccessStateDisabled ServerPublicNetworkAccessState = "Disabled" + ServerPublicNetworkAccessStateEnabled ServerPublicNetworkAccessState = "Enabled" +) + +func PossibleValuesForServerPublicNetworkAccessState() []string { + return []string{ + string(ServerPublicNetworkAccessStateDisabled), + string(ServerPublicNetworkAccessStateEnabled), + } +} + +func (s *ServerPublicNetworkAccessState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServerPublicNetworkAccessState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServerPublicNetworkAccessState(input string) (*ServerPublicNetworkAccessState, error) { + vals := map[string]ServerPublicNetworkAccessState{ + "disabled": ServerPublicNetworkAccessStateDisabled, + "enabled": ServerPublicNetworkAccessStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServerPublicNetworkAccessState(input) + return &out, nil +} + +type ServerState string + +const ( + ServerStateDisabled ServerState = "Disabled" + ServerStateDropping ServerState = "Dropping" + ServerStateReady ServerState = "Ready" + ServerStateStarting ServerState = "Starting" + ServerStateStopped ServerState = "Stopped" + ServerStateStopping ServerState = "Stopping" + ServerStateUpdating ServerState = "Updating" +) + +func PossibleValuesForServerState() []string { + return []string{ + string(ServerStateDisabled), + string(ServerStateDropping), + string(ServerStateReady), + string(ServerStateStarting), + string(ServerStateStopped), + string(ServerStateStopping), + string(ServerStateUpdating), + } +} + +func (s *ServerState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServerState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServerState(input string) (*ServerState, error) { + vals := map[string]ServerState{ + "disabled": ServerStateDisabled, + "dropping": ServerStateDropping, + "ready": ServerStateReady, + "starting": ServerStateStarting, + "stopped": ServerStateStopped, + "stopping": ServerStateStopping, + "updating": ServerStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServerState(input) + return &out, nil +} + +type ServerVersion string + +const ( + ServerVersionOneFive ServerVersion = "15" + ServerVersionOneFour ServerVersion = "14" + ServerVersionOneOne ServerVersion = "11" + ServerVersionOneSix ServerVersion = "16" + ServerVersionOneThree ServerVersion = "13" + ServerVersionOneTwo ServerVersion = "12" +) + +func PossibleValuesForServerVersion() []string { + return []string{ + string(ServerVersionOneFive), + string(ServerVersionOneFour), + string(ServerVersionOneOne), + string(ServerVersionOneSix), + string(ServerVersionOneThree), + string(ServerVersionOneTwo), + } +} + +func (s *ServerVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServerVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServerVersion(input string) (*ServerVersion, error) { + vals := map[string]ServerVersion{ + "15": ServerVersionOneFive, + "14": ServerVersionOneFour, + "11": ServerVersionOneOne, + "16": ServerVersionOneSix, + "13": ServerVersionOneThree, + "12": ServerVersionOneTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServerVersion(input) + return &out, nil +} + +type SkuTier string + +const ( + SkuTierBurstable SkuTier = "Burstable" + SkuTierGeneralPurpose SkuTier = "GeneralPurpose" + SkuTierMemoryOptimized SkuTier = "MemoryOptimized" +) + +func PossibleValuesForSkuTier() []string { + return []string{ + string(SkuTierBurstable), + string(SkuTierGeneralPurpose), + string(SkuTierMemoryOptimized), + } +} + +func (s *SkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSkuTier(input string) (*SkuTier, error) { + vals := map[string]SkuTier{ + "burstable": SkuTierBurstable, + "generalpurpose": SkuTierGeneralPurpose, + "memoryoptimized": SkuTierMemoryOptimized, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SkuTier(input) + return &out, nil +} + +type StorageAutoGrow string + +const ( + StorageAutoGrowDisabled StorageAutoGrow = "Disabled" + StorageAutoGrowEnabled StorageAutoGrow = "Enabled" +) + +func PossibleValuesForStorageAutoGrow() []string { + return []string{ + string(StorageAutoGrowDisabled), + string(StorageAutoGrowEnabled), + } +} + +func (s *StorageAutoGrow) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseStorageAutoGrow(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseStorageAutoGrow(input string) (*StorageAutoGrow, error) { + vals := map[string]StorageAutoGrow{ + "disabled": StorageAutoGrowDisabled, + "enabled": StorageAutoGrowEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + 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/2024-08-01/servers/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/id_flexibleserver.go new file mode 100644 index 000000000000..de631236f43c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/id_flexibleserver.go @@ -0,0 +1,130 @@ +package servers + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FlexibleServerId{}) +} + +var _ resourceids.ResourceId = &FlexibleServerId{} + +// FlexibleServerId is a struct representing the Resource ID for a Flexible Server +type FlexibleServerId struct { + SubscriptionId string + ResourceGroupName string + FlexibleServerName string +} + +// NewFlexibleServerID returns a new FlexibleServerId struct +func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId { + return FlexibleServerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FlexibleServerName: flexibleServerName, + } +} + +// ParseFlexibleServerID parses 'input' into a FlexibleServerId +func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFlexibleServerIDInsensitively parses 'input' case-insensitively into a FlexibleServerId +// note: this method should only be used for API response data and not user input +func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FlexibleServerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FlexibleServerName, ok = input.Parsed["flexibleServerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", input) + } + + return nil +} + +// ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID +func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFlexibleServerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Flexible Server ID +func (id FlexibleServerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DBforPostgreSQL/flexibleServers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FlexibleServerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Flexible Server ID +func (id FlexibleServerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), + resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), + resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerName"), + } +} + +// String returns a human-readable description of this Flexible Server ID +func (id FlexibleServerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Flexible Server Name: %q", id.FlexibleServerName), + } + return fmt.Sprintf("Flexible Server (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_create.go new file mode 100644 index 000000000000..e5340cf82481 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_create.go @@ -0,0 +1,76 @@ +package servers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Server +} + +// Create ... +func (c ServersClient) Create(ctx context.Context, id FlexibleServerId, input Server) (result CreateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateThenPoll performs Create then polls until it's completed +func (c ServersClient) CreateThenPoll(ctx context.Context, id FlexibleServerId, input Server) error { + result, err := c.Create(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Create: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Create: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_delete.go new file mode 100644 index 000000000000..8f4fee59957c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_delete.go @@ -0,0 +1,71 @@ +package servers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ServersClient) Delete(ctx context.Context, id FlexibleServerId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ServersClient) DeleteThenPoll(ctx context.Context, id FlexibleServerId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_get.go new file mode 100644 index 000000000000..fea9d5443d84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_get.go @@ -0,0 +1,53 @@ +package servers + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Server +} + +// Get ... +func (c ServersClient) Get(ctx context.Context, id FlexibleServerId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Server + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_list.go new file mode 100644 index 000000000000..e288bb76ead7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_list.go @@ -0,0 +1,106 @@ +package servers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Server +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []Server +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DBforPostgreSQL/flexibleServers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Server `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ServersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ServerOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ServersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ServerOperationPredicate) (result ListCompleteResult, err error) { + items := make([]Server, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_listbyresourcegroup.go new file mode 100644 index 000000000000..f2e980ef6e1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package servers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Server +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []Server +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DBforPostgreSQL/flexibleServers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Server `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c ServersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, ServerOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ServersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ServerOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]Server, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_update.go new file mode 100644 index 000000000000..780395798482 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/method_update.go @@ -0,0 +1,75 @@ +package servers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Server +} + +// Update ... +func (c ServersClient) Update(ctx context.Context, id FlexibleServerId, input ServerForUpdate) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c ServersClient) UpdateThenPoll(ctx context.Context, id FlexibleServerId, input ServerForUpdate) error { + result, err := c.Update(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_authconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_authconfig.go new file mode 100644 index 000000000000..82537c38df06 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_authconfig.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 AuthConfig struct { + ActiveDirectoryAuth *ActiveDirectoryAuthEnum `json:"activeDirectoryAuth,omitempty"` + PasswordAuth *PasswordAuthEnum `json:"passwordAuth,omitempty"` + TenantId *string `json:"tenantId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_backup.go new file mode 100644 index 000000000000..940795343577 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_backup.go @@ -0,0 +1,28 @@ +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 Backup struct { + BackupRetentionDays *int64 `json:"backupRetentionDays,omitempty"` + EarliestRestoreDate *string `json:"earliestRestoreDate,omitempty"` + GeoRedundantBackup *GeoRedundantBackupEnum `json:"geoRedundantBackup,omitempty"` +} + +func (o *Backup) GetEarliestRestoreDateAsTime() (*time.Time, error) { + if o.EarliestRestoreDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EarliestRestoreDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *Backup) SetEarliestRestoreDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EarliestRestoreDate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_dataencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_dataencryption.go new file mode 100644 index 000000000000..00229fec7758 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_dataencryption.go @@ -0,0 +1,14 @@ +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 DataEncryption struct { + GeoBackupEncryptionKeyStatus *KeyStatusEnum `json:"geoBackupEncryptionKeyStatus,omitempty"` + GeoBackupKeyURI *string `json:"geoBackupKeyURI,omitempty"` + GeoBackupUserAssignedIdentityId *string `json:"geoBackupUserAssignedIdentityId,omitempty"` + PrimaryEncryptionKeyStatus *KeyStatusEnum `json:"primaryEncryptionKeyStatus,omitempty"` + PrimaryKeyURI *string `json:"primaryKeyURI,omitempty"` + PrimaryUserAssignedIdentityId *string `json:"primaryUserAssignedIdentityId,omitempty"` + Type *ArmServerKeyType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_highavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_highavailability.go new file mode 100644 index 000000000000..767274023181 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_highavailability.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 HighAvailability struct { + Mode *HighAvailabilityMode `json:"mode,omitempty"` + StandbyAvailabilityZone *string `json:"standbyAvailabilityZone,omitempty"` + State *ServerHAState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_maintenancewindow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_maintenancewindow.go new file mode 100644 index 000000000000..e3316db4574d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_maintenancewindow.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 MaintenanceWindow struct { + CustomWindow *string `json:"customWindow,omitempty"` + DayOfWeek *int64 `json:"dayOfWeek,omitempty"` + StartHour *int64 `json:"startHour,omitempty"` + StartMinute *int64 `json:"startMinute,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_network.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_network.go new file mode 100644 index 000000000000..7aeb70fc3a0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_network.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 Network struct { + DelegatedSubnetResourceId *string `json:"delegatedSubnetResourceId,omitempty"` + PrivateDnsZoneArmResourceId *string `json:"privateDnsZoneArmResourceId,omitempty"` + PublicNetworkAccess *ServerPublicNetworkAccessState `json:"publicNetworkAccess,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_privateendpoint.go new file mode 100644 index 000000000000..edbc5878b033 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/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/2024-08-01/servers/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_privateendpointconnection.go new file mode 100644 index 000000000000..d6ff31c5dad0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/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/2024-08-01/servers/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..ee2ec79f43b7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/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/2024-08-01/servers/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..8a2ade12ed85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/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/2024-08-01/servers/model_replica.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_replica.go new file mode 100644 index 000000000000..12e298b48932 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/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/2024-08-01/servers/model_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_server.go new file mode 100644 index 000000000000..bbf3ab9ba4e5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_server.go @@ -0,0 +1,21 @@ +package servers + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "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 Server struct { + Id *string `json:"id,omitempty"` + Identity *identity.UserAssignedMap `json:"identity,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *ServerProperties `json:"properties,omitempty"` + Sku *Sku `json:"sku,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_serverforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_serverforupdate.go new file mode 100644 index 000000000000..17611eb8b4bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_serverforupdate.go @@ -0,0 +1,15 @@ +package servers + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerForUpdate struct { + Identity *identity.UserAssignedMap `json:"identity,omitempty"` + Properties *ServerPropertiesForUpdate `json:"properties,omitempty"` + Sku *Sku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_serverproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_serverproperties.go new file mode 100644 index 000000000000..eb9243f81d32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/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/2024-08-01/servers/model_serverpropertiesforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_serverpropertiesforupdate.go new file mode 100644 index 000000000000..e865ead1b942 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_serverpropertiesforupdate.go @@ -0,0 +1,20 @@ +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 ServerPropertiesForUpdate struct { + AdministratorLogin *string `json:"administratorLogin,omitempty"` + AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` + AuthConfig *AuthConfig `json:"authConfig,omitempty"` + Backup *Backup `json:"backup,omitempty"` + CreateMode *CreateModeForUpdate `json:"createMode,omitempty"` + DataEncryption *DataEncryption `json:"dataEncryption,omitempty"` + 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/2024-08-01/servers/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_sku.go new file mode 100644 index 000000000000..6302164cd2e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_sku.go @@ -0,0 +1,9 @@ +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 Sku struct { + Name string `json:"name"` + Tier SkuTier `json:"tier"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_storage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_storage.go new file mode 100644 index 000000000000..5bd77807cd4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/model_storage.go @@ -0,0 +1,13 @@ +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 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/2024-08-01/servers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/predicates.go new file mode 100644 index 000000000000..8b49f30ccbe3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/predicates.go @@ -0,0 +1,32 @@ +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 ServerOperationPredicate struct { + Id *string + Location *string + Name *string + Type *string +} + +func (p ServerOperationPredicate) Matches(input Server) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && *p.Location != input.Location { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/version.go new file mode 100644 index 000000000000..92a6dea43cd4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers/version.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. + +const defaultApiVersion = "2024-08-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/servers/2024-08-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/README.md index ef1573aa7fa1..7abc1ca8f6db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints` Documentation -The `virtualendpoints` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2023-06-01-preview`). +The `virtualendpoints` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2024-08-01`). 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-06-01-preview/virtualendpoints" +import "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_virtualendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/id_virtualendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_virtualendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/id_virtualendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/model_virtualendpointresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/model_virtualendpointresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/model_virtualendpointresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/model_virtualendpointresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/model_virtualendpointresourceforpatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/model_virtualendpointresourceforpatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/model_virtualendpointresourceforpatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/model_virtualendpointresourceforpatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/model_virtualendpointresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/model_virtualendpointresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/model_virtualendpointresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/model_virtualendpointresourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/version.go similarity index 64% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/version.go index ae8e04490b95..e7bc0b24434c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints/version.go @@ -3,8 +3,8 @@ package virtualendpoints // 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-06-01-preview" +const defaultApiVersion = "2024-08-01" func userAgent() string { - return "hashicorp/go-azure-sdk/virtualendpoints/2023-06-01-preview" + return "hashicorp/go-azure-sdk/virtualendpoints/2024-08-01" } diff --git a/vendor/modules.txt b/vendor/modules.txt index 8b8b6cea4f66..8651b954c660 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -943,11 +943,12 @@ github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtual github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart -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-06-01-preview/servers -github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints +github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/administrators +github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/databases +github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/firewallrules +github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/servers +github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2024-08-01/virtualendpoints 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