diff --git a/internal/services/mysql/client/client.go b/internal/services/mysql/client/client.go index e28342957d4b..f89658780af1 100644 --- a/internal/services/mysql/client/client.go +++ b/internal/services/mysql/client/client.go @@ -8,14 +8,14 @@ import ( servers_v2017_12_01 "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01" servers_v2020_01_01 "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2020-01-01" - flexibleServers_v2021_05_01 "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01" + flexibleServers_v2022_01_01 "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01" "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) type Client struct { - FlexibleServers *flexibleServers_v2021_05_01.Client + FlexibleServers *flexibleServers_v2022_01_01.Client MySqlClient *servers_v2017_12_01.Client ServerKeysClient *servers_v2020_01_01.Client @@ -24,7 +24,7 @@ type Client struct { } func NewClient(o *common.ClientOptions) (*Client, error) { - flexibleServersMetaClient, err := flexibleServers_v2021_05_01.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { + flexibleServersMetaClient, err := flexibleServers_v2022_01_01.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) if err != nil { diff --git a/internal/services/mysql/mysql_flexible_database_resource.go b/internal/services/mysql/mysql_flexible_database_resource.go index 752115170c73..ede689e04440 100644 --- a/internal/services/mysql/mysql_flexible_database_resource.go +++ b/internal/services/mysql/mysql_flexible_database_resource.go @@ -10,7 +10,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/mysql/2021-05-01/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-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/services/mysql/validate" diff --git a/internal/services/mysql/mysql_flexible_database_resource_test.go b/internal/services/mysql/mysql_flexible_database_resource_test.go index f4d402e5fb59..03a8b3fd5861 100644 --- a/internal/services/mysql/mysql_flexible_database_resource_test.go +++ b/internal/services/mysql/mysql_flexible_database_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-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/mysql/mysql_flexible_server_configuration_resource.go b/internal/services/mysql/mysql_flexible_server_configuration_resource.go index 34d7bfae36ac..d8192065b7cf 100644 --- a/internal/services/mysql/mysql_flexible_server_configuration_resource.go +++ b/internal/services/mysql/mysql_flexible_server_configuration_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/mysql/2021-05-01/configurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mysql/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/mysql/mysql_flexible_server_configuration_resource_test.go b/internal/services/mysql/mysql_flexible_server_configuration_resource_test.go index 5ba818d75106..5036a934896a 100644 --- a/internal/services/mysql/mysql_flexible_server_configuration_resource_test.go +++ b/internal/services/mysql/mysql_flexible_server_configuration_resource_test.go @@ -10,8 +10,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/mysql/mysql_flexible_server_data_source.go b/internal/services/mysql/mysql_flexible_server_data_source.go index b979156d4371..871b84757e2d 100644 --- a/internal/services/mysql/mysql_flexible_server_data_source.go +++ b/internal/services/mysql/mysql_flexible_server_data_source.go @@ -13,7 +13,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/mysql/2021-05-01/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mysql/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/mysql/mysql_flexible_server_firewall_rule_resource.go b/internal/services/mysql/mysql_flexible_server_firewall_rule_resource.go index f487771ddb25..26f14891a88c 100644 --- a/internal/services/mysql/mysql_flexible_server_firewall_rule_resource.go +++ b/internal/services/mysql/mysql_flexible_server_firewall_rule_resource.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" azValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/mysql/mysql_flexible_server_firewall_rule_resource_test.go b/internal/services/mysql/mysql_flexible_server_firewall_rule_resource_test.go index 4906036ea8a0..afee7905c39b 100644 --- a/internal/services/mysql/mysql_flexible_server_firewall_rule_resource_test.go +++ b/internal/services/mysql/mysql_flexible_server_firewall_rule_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-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/mysql/mysql_flexible_server_resource.go b/internal/services/mysql/mysql_flexible_server_resource.go index a17c670dc204..99464198f07a 100644 --- a/internal/services/mysql/mysql_flexible_server_resource.go +++ b/internal/services/mysql/mysql_flexible_server_resource.go @@ -17,8 +17,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" "github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/mysql/mysql_flexible_server_resource_test.go b/internal/services/mysql/mysql_flexible_server_resource_test.go index 6bee6927b964..a563427a9590 100644 --- a/internal/services/mysql/mysql_flexible_server_resource_test.go +++ b/internal/services/mysql/mysql_flexible_server_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-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/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/README.md similarity index 74% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/README.md index 6c2bc8556d51..d6bc92c2acf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups` Documentation -The `backups` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2021-05-01`). +The `backups` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-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/mysql/2021-05-01/backups" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups" ``` @@ -51,3 +51,19 @@ for _, item := range items { // do something } ``` + + +### Example Usage: `BackupsClient.Put` + +```go +ctx := context.TODO() +id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "backupValue") + +read, err := client.Put(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/id_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_backup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/id_backup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_backup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_put.go new file mode 100644 index 000000000000..37f1376f7824 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_put.go @@ -0,0 +1,51 @@ +package backups + +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 PutOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ServerBackup +} + +// Put ... +func (c BackupsClient) Put(ctx context.Context, id BackupId) (result PutOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + 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 + } + + if err = resp.Unmarshal(&result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/model_serverbackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/model_serverbackup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/model_serverbackup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/model_serverbackup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/model_serverbackupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/model_serverbackupproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/model_serverbackupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/model_serverbackupproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/version.go index 650fe50c24ab..91f95dd8aeb2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/backups/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/README.md index dd5e294050ae..b509c2abd519 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability` Documentation -The `checknameavailability` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2021-05-01`). +The `checknameavailability` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-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/mysql/2021-05-01/checknameavailability" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/method_execute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_execute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/method_execute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_execute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/method_withoutlocationexecute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_withoutlocationexecute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/method_withoutlocationexecute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_withoutlocationexecute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/model_nameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/model_nameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/model_nameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/model_nameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/model_nameavailabilityrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/model_nameavailabilityrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/model_nameavailabilityrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/model_nameavailabilityrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/version.go index e8c1f33be52c..570fa81a003c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/checknameavailability/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/client.go similarity index 70% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/client.go index 570363f85471..68a55624f0cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/client.go @@ -1,4 +1,4 @@ -package v2021_05_01 +package v2022_01_01 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -6,23 +6,26 @@ package v2021_05_01 import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstart" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstop" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" ) type Client struct { + AzureADAdministrators *azureadadministrators.AzureADAdministratorsClient Backups *backups.BackupsClient CheckNameAvailability *checknameavailability.CheckNameAvailabilityClient Configurations *configurations.ConfigurationsClient @@ -30,6 +33,7 @@ type Client struct { FirewallRules *firewallrules.FirewallRulesClient GetPrivateDnsZoneSuffix *getprivatednszonesuffix.GetPrivateDnsZoneSuffixClient LocationBasedCapabilities *locationbasedcapabilities.LocationBasedCapabilitiesClient + LogFiles *logfiles.LogFilesClient ServerFailover *serverfailover.ServerFailoverClient ServerRestart *serverrestart.ServerRestartClient ServerStart *serverstart.ServerStartClient @@ -38,6 +42,12 @@ type Client struct { } func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { + azureADAdministratorsClient, err := azureadadministrators.NewAzureADAdministratorsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building AzureADAdministrators client: %+v", err) + } + configureFunc(azureADAdministratorsClient.Client) + backupsClient, err := backups.NewBackupsClientWithBaseURI(sdkApi) if err != nil { return nil, fmt.Errorf("building Backups client: %+v", err) @@ -80,6 +90,12 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag } configureFunc(locationBasedCapabilitiesClient.Client) + logFilesClient, err := logfiles.NewLogFilesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building LogFiles client: %+v", err) + } + configureFunc(logFilesClient.Client) + serverFailoverClient, err := serverfailover.NewServerFailoverClientWithBaseURI(sdkApi) if err != nil { return nil, fmt.Errorf("building ServerFailover client: %+v", err) @@ -111,6 +127,7 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag configureFunc(serversClient.Client) return &Client{ + AzureADAdministrators: azureADAdministratorsClient, Backups: backupsClient, CheckNameAvailability: checkNameAvailabilityClient, Configurations: configurationsClient, @@ -118,6 +135,7 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag FirewallRules: firewallRulesClient, GetPrivateDnsZoneSuffix: getPrivateDnsZoneSuffixClient, LocationBasedCapabilities: locationBasedCapabilitiesClient, + LogFiles: logFilesClient, ServerFailover: serverFailoverClient, ServerRestart: serverRestartClient, ServerStart: serverStartClient, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md similarity index 72% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md index 67771a9be586..867d4e86462b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations` Documentation -The `configurations` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2021-05-01`). +The `configurations` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-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/mysql/2021-05-01/configurations" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations" ``` @@ -37,6 +37,23 @@ if err := client.BatchUpdateThenPoll(ctx, id, payload); err != nil { ``` +### Example Usage: `ConfigurationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "configurationValue") + +payload := configurations.Configuration{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + ### Example Usage: `ConfigurationsClient.Get` ```go @@ -59,8 +76,8 @@ if model := read.Model; model != nil { ctx := context.TODO() id := configurations.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") -// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination -items, err := client.ListByServerComplete(ctx, id) +// alternatively `client.ListByServer(ctx, id, configurations.DefaultListByServerOperationOptions())` can be used to do batched pagination +items, err := client.ListByServerComplete(ctx, id, configurations.DefaultListByServerOperationOptions()) if err != nil { // handle the error } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/constants.go similarity index 81% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/constants.go index f1dd2076e3c4..5508483dcba5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/constants.go @@ -172,3 +172,44 @@ func parseIsReadOnly(input string) (*IsReadOnly, error) { out := IsReadOnly(input) return &out, nil } + +type ResetAllToDefault string + +const ( + ResetAllToDefaultFalse ResetAllToDefault = "False" + ResetAllToDefaultTrue ResetAllToDefault = "True" +) + +func PossibleValuesForResetAllToDefault() []string { + return []string{ + string(ResetAllToDefaultFalse), + string(ResetAllToDefaultTrue), + } +} + +func (s *ResetAllToDefault) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResetAllToDefault(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResetAllToDefault(input string) (*ResetAllToDefault, error) { + vals := map[string]ResetAllToDefault{ + "false": ResetAllToDefaultFalse, + "true": ResetAllToDefaultTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResetAllToDefault(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_configuration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/id_configuration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_configuration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/method_batchupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/method_batchupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_createorupdate.go new file mode 100644 index 000000000000..56e5056d1406 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_createorupdate.go @@ -0,0 +1,74 @@ +package configurations + +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 CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// CreateOrUpdate ... +func (c ConfigurationsClient) CreateOrUpdate(ctx context.Context, id ConfigurationId, input Configuration) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + 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 +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ConfigurationsClient) CreateOrUpdateThenPoll(ctx context.Context, id ConfigurationId, input Configuration) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go new file mode 100644 index 000000000000..47b61512371f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go @@ -0,0 +1,129 @@ +package configurations + +import ( + "context" + "fmt" + "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 ListByServerOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Configuration +} + +type ListByServerCompleteResult struct { + Items []Configuration +} + +type ListByServerOperationOptions struct { + Keyword *string + Page *int64 + PageSize *int64 + Tags *string +} + +func DefaultListByServerOperationOptions() ListByServerOperationOptions { + return ListByServerOperationOptions{} +} + +func (o ListByServerOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListByServerOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ListByServerOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Keyword != nil { + out.Append("keyword", fmt.Sprintf("%v", *o.Keyword)) + } + if o.Page != nil { + out.Append("page", fmt.Sprintf("%v", *o.Page)) + } + if o.PageSize != nil { + out.Append("pageSize", fmt.Sprintf("%v", *o.PageSize)) + } + if o.Tags != nil { + out.Append("tags", fmt.Sprintf("%v", *o.Tags)) + } + return &out +} + +// ListByServer ... +func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServerId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/configurations", id.ID()), + OptionsObject: options, + } + + 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 *[]Configuration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByServerComplete retrieves all the results into a single object +func (c ConfigurationsClient) ListByServerComplete(ctx context.Context, id FlexibleServerId, options ListByServerOperationOptions) (ListByServerCompleteResult, error) { + return c.ListByServerCompleteMatchingPredicate(ctx, id, options, ConfigurationOperationPredicate{}) +} + +// ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ConfigurationsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, options ListByServerOperationOptions, predicate ConfigurationOperationPredicate) (result ListByServerCompleteResult, err error) { + items := make([]Configuration, 0) + + resp, err := c.ListByServer(ctx, id, options) + if err != nil { + 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 = ListByServerCompleteResult{ + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configuration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configuration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configuration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationforbatchupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationforbatchupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationforbatchupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationforbatchupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationforbatchupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationforbatchupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationforbatchupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationforbatchupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationlistforbatchupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationlistforbatchupdate.go similarity index 58% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationlistforbatchupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationlistforbatchupdate.go index 9a2ca76edd1b..a5f4e77694e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationlistforbatchupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationlistforbatchupdate.go @@ -4,5 +4,6 @@ package configurations // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ConfigurationListForBatchUpdate struct { - Value *[]ConfigurationForBatchUpdate `json:"value,omitempty"` + ResetAllToDefault *ResetAllToDefault `json:"resetAllToDefault,omitempty"` + Value *[]ConfigurationForBatchUpdate `json:"value,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationproperties.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationproperties.go index c1a6803626aa..51d6836b9a56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/model_configurationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationproperties.go @@ -5,9 +5,11 @@ package configurations type ConfigurationProperties struct { AllowedValues *string `json:"allowedValues,omitempty"` + CurrentValue *string `json:"currentValue,omitempty"` DataType *string `json:"dataType,omitempty"` DefaultValue *string `json:"defaultValue,omitempty"` Description *string `json:"description,omitempty"` + DocumentationLink *string `json:"documentationLink,omitempty"` IsConfigPendingRestart *IsConfigPendingRestart `json:"isConfigPendingRestart,omitempty"` IsDynamicConfig *IsDynamicConfig `json:"isDynamicConfig,omitempty"` IsReadOnly *IsReadOnly `json:"isReadOnly,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/version.go index b06cb044d76b..c91dc76206fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/configurations/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/README.md index 3b3657e76db3..d81cd68c5c42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases` Documentation -The `databases` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2021-05-01`). +The `databases` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-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/mysql/2021-05-01/databases" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_database.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/id_database.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_database.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/model_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/model_database.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/model_database.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/model_database.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/model_databaseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/model_databaseproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/model_databaseproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/model_databaseproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/version.go index b1bf2c06bca0..925ad65c153e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/databases/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/README.md index ae8c0ef4a459..c5b4f8ab7f35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules` Documentation -The `firewallrules` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2021-05-01`). +The `firewallrules` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-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/mysql/2021-05-01/firewallrules" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_firewallrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/id_firewallrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_firewallrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/model_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/model_firewallrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/model_firewallrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/model_firewallrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/model_firewallruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/model_firewallruleproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/model_firewallruleproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/model_firewallruleproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/version.go index f42dd905c1ff..c96e99a28a32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/firewallrules/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/README.md similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/README.md index 55d3d5d889d7..a893cd14eacf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix` Documentation -The `getprivatednszonesuffix` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2021-05-01`). +The `getprivatednszonesuffix` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-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/mysql/2021-05-01/getprivatednszonesuffix" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/method_execute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/method_execute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/method_execute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/method_execute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/model_getprivatednszonesuffixresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/model_getprivatednszonesuffixresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/model_getprivatednszonesuffixresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/model_getprivatednszonesuffixresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/version.go index c6e2c966af0c..d5e2b6bda7b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/getprivatednszonesuffix/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/README.md similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/README.md index 79572dad66a7..a8c4f04afa8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities` Documentation -The `locationbasedcapabilities` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2021-05-01`). +The `locationbasedcapabilities` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-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/mysql/2021-05-01/locationbasedcapabilities" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/model_capabilityproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_capabilityproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/model_capabilityproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_capabilityproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/model_servereditioncapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_servereditioncapability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/model_servereditioncapability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_servereditioncapability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/model_serverversioncapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_serverversioncapability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/model_serverversioncapability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_serverversioncapability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/model_skucapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_skucapability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/model_skucapability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_skucapability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/model_storageeditioncapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_storageeditioncapability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/model_storageeditioncapability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_storageeditioncapability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/version.go index 513cc3a111d4..2d0679772a8c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/locationbasedcapabilities/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/README.md new file mode 100644 index 000000000000..7f7d09c87291 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles` Documentation + +The `logfiles` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-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/mysql/2022-01-01/logfiles" +``` + + +### Client Initialization + +```go +client := logfiles.NewLogFilesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `LogFilesClient.ListByServer` + +```go +ctx := context.TODO() +id := logfiles.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") + +// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination +items, err := client.ListByServerComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/client.go new file mode 100644 index 000000000000..8e5eb3275286 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/client.go @@ -0,0 +1,26 @@ +package logfiles + +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 LogFilesClient struct { + Client *resourcemanager.Client +} + +func NewLogFilesClientWithBaseURI(sdkApi sdkEnv.Api) (*LogFilesClient, error) { + client, err := resourcemanager.NewResourceManagerClient(sdkApi, "logfiles", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating LogFilesClient: %+v", err) + } + + return &LogFilesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/id_flexibleserver.go new file mode 100644 index 000000000000..3bf684f08d90 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/id_flexibleserver.go @@ -0,0 +1,127 @@ +package logfiles + +import ( + "fmt" + "strings" + + "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. + +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) + } + + var ok bool + id := FlexibleServerId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.FlexibleServerName, ok = parsed.Parsed["flexibleServerName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", *parsed) + } + + 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) + } + + var ok bool + id := FlexibleServerId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.FlexibleServerName, ok = parsed.Parsed["flexibleServerName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", *parsed) + } + + return &id, 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.DBforMySQL/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("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), + resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + } +} + +// 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/mysql/2021-05-01/configurations/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/method_listbyserver.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/method_listbyserver.go index 9e8eca7ab726..d8381b932e46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations/method_listbyserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/method_listbyserver.go @@ -1,4 +1,4 @@ -package configurations +package logfiles import ( "context" @@ -15,22 +15,22 @@ import ( type ListByServerOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]Configuration + Model *[]LogFile } type ListByServerCompleteResult struct { - Items []Configuration + Items []LogFile } // ListByServer ... -func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { +func (c LogFilesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/configurations", id.ID()), + Path: fmt.Sprintf("%s/logFiles", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) @@ -49,7 +49,7 @@ func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServe } var values struct { - Values *[]Configuration `json:"value"` + Values *[]LogFile `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -61,13 +61,13 @@ func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServe } // ListByServerComplete retrieves all the results into a single object -func (c ConfigurationsClient) ListByServerComplete(ctx context.Context, id FlexibleServerId) (ListByServerCompleteResult, error) { - return c.ListByServerCompleteMatchingPredicate(ctx, id, ConfigurationOperationPredicate{}) +func (c LogFilesClient) ListByServerComplete(ctx context.Context, id FlexibleServerId) (ListByServerCompleteResult, error) { + return c.ListByServerCompleteMatchingPredicate(ctx, id, LogFileOperationPredicate{}) } // ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ConfigurationsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, predicate ConfigurationOperationPredicate) (result ListByServerCompleteResult, err error) { - items := make([]Configuration, 0) +func (c LogFilesClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, predicate LogFileOperationPredicate) (result ListByServerCompleteResult, err error) { + items := make([]LogFile, 0) resp, err := c.ListByServer(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/model_logfile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/model_logfile.go new file mode 100644 index 000000000000..238e512289b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/model_logfile.go @@ -0,0 +1,16 @@ +package logfiles + +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 LogFile struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *LogFileProperties `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/mysql/2022-01-01/logfiles/model_logfileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/model_logfileproperties.go new file mode 100644 index 000000000000..43030a1fdc1b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/model_logfileproperties.go @@ -0,0 +1,42 @@ +package logfiles + +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 LogFileProperties struct { + CreatedTime *string `json:"createdTime,omitempty"` + LastModifiedTime *string `json:"lastModifiedTime,omitempty"` + SizeInKB *int64 `json:"sizeInKB,omitempty"` + Type *string `json:"type,omitempty"` + Url *string `json:"url,omitempty"` +} + +func (o *LogFileProperties) GetCreatedTimeAsTime() (*time.Time, error) { + if o.CreatedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.CreatedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *LogFileProperties) SetCreatedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.CreatedTime = &formatted +} + +func (o *LogFileProperties) GetLastModifiedTimeAsTime() (*time.Time, error) { + if o.LastModifiedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.LastModifiedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *LogFileProperties) SetLastModifiedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.LastModifiedTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/predicates.go new file mode 100644 index 000000000000..3b4f9690c5d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/predicates.go @@ -0,0 +1,27 @@ +package logfiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LogFileOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p LogFileOperationPredicate) Matches(input LogFile) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + 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/mysql/2022-01-01/logfiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/version.go new file mode 100644 index 000000000000..5f0a51699f00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/version.go @@ -0,0 +1,12 @@ +package logfiles + +import "fmt" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2022-01-01" + +func userAgent() string { + return fmt.Sprintf("hashicorp/go-azure-sdk/logfiles/%s", defaultApiVersion) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover/method_serversfailover.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/method_serversfailover.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover/method_serversfailover.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/method_serversfailover.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/version.go index 2fe100ead4b2..062cc1c455a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/serverfailover/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/README.md similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/README.md index 903ba8ec30bb..927869906b01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart` Documentation -The `serverrestart` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2021-05-01`). +The `serverrestart` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-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/mysql/2021-05-01/serverrestart" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/method_serversrestart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/method_serversrestart.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/method_serversrestart.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/method_serversrestart.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/model_serverrestartparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/model_serverrestartparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/model_serverrestartparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/model_serverrestartparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/version.go index e2aa43b27de4..80aaca6b1f13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/serverrestart/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/README.md index 68a0a2d84096..15ec8a110ff3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers` Documentation -The `servers` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2021-05-01`). +The `servers` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-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/mysql/2021-05-01/servers" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_replicaslistbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_replicaslistbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_replicaslistbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_replicaslistbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_backup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_backup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_backup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_dataencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_dataencryption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_dataencryption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_dataencryption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_highavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_highavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_highavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_highavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_identity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_identity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_identity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_identity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_maintenancewindow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_maintenancewindow.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_maintenancewindow.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_maintenancewindow.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_network.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_network.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_network.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_network.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_server.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_server.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_server.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_serverforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverforupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_serverforupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverforupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_serverproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_serverproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_serverpropertiesforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverpropertiesforupdate.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_serverpropertiesforupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverpropertiesforupdate.go index a6b7c345f55e..a5b79594b3c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_serverpropertiesforupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverpropertiesforupdate.go @@ -11,4 +11,5 @@ type ServerPropertiesForUpdate struct { MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,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/mysql/2021-05-01/servers/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_storage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_storage.go similarity index 77% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_storage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_storage.go index 3dfb466f0701..ae3776c4e789 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/model_storage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_storage.go @@ -5,7 +5,9 @@ package servers type Storage struct { AutoGrow *EnableStatusEnum `json:"autoGrow,omitempty"` + AutoIoScaling *EnableStatusEnum `json:"autoIoScaling,omitempty"` Iops *int64 `json:"iops,omitempty"` + LogOnDisk *EnableStatusEnum `json:"logOnDisk,omitempty"` StorageSizeGB *int64 `json:"storageSizeGB,omitempty"` StorageSku *string `json:"storageSku,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/version.go index 111072603c62..ca20aadce54a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/servers/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstart/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstart/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstart/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstart/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstart/method_serversstart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/method_serversstart.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstart/method_serversstart.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/method_serversstart.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstart/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstart/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/version.go index c0a1cd1e96f2..4c27bb142235 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstart/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/serverstart/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstop/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstop/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstop/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstop/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstop/method_serversstop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/method_serversstop.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstop/method_serversstop.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/method_serversstop.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstop/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstop/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/version.go index 5ba165c24f76..a2f8f0dc7c73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstop/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-05-01" +const defaultApiVersion = "2022-01-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/serverstop/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index 40e4ac1e3be0..e3ab2e90dba3 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -605,20 +605,21 @@ github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2020-01-01/serverkeys github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2020-01-01/serverstart github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2020-01-01/serverstop github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2020-01-01/serverupgrade -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01 -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/backups -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/checknameavailability -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/configurations -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/databases -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/firewallrules -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/getprivatednszonesuffix -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/locationbasedcapabilities -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverfailover -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverrestart -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/servers -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstart -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2021-05-01/serverstop +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01 github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy