diff --git a/internal/services/mysql/client/client.go b/internal/services/mysql/client/client.go index 0834fd28c1f5..19bea28550b9 100644 --- a/internal/services/mysql/client/client.go +++ b/internal/services/mysql/client/client.go @@ -2,7 +2,7 @@ package client import ( "github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2020-01-01/mysql" - "github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers" + "github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/mysql/mysql_flexible_server_resource.go b/internal/services/mysql/mysql_flexible_server_resource.go index bb4070e38adc..d3b0af56b027 100644 --- a/internal/services/mysql/mysql_flexible_server_resource.go +++ b/internal/services/mysql/mysql_flexible_server_resource.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers" + "github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers" "github.com/Azure/go-autorest/autorest/date" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/CHANGELOG.md similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/CHANGELOG.md rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/CHANGELOG.md diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/_meta.json b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/_meta.json similarity index 53% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/_meta.json rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/_meta.json index 174855e3ede7..438cf93c46a8 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/_meta.json +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/_meta.json @@ -1,10 +1,10 @@ { - "commit": "e9a6009d8f1a98656cf5b6f1fe5809251bfa0085", + "commit": "51b37b069ecbb9d2fcd300eabd4b10b7911b7d7d", "readme": "/_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", - "tag": "package-flexibleserver-2021-05-01-preview", + "tag": "package-flexibleserver-2021-05-01", "use": "@microsoft.azure/autorest.go@2.1.187", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.187 --tag=package-flexibleserver-2021-05-01-preview --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.187 --tag=package-flexibleserver-2021-05-01 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/mysql/resource-manager/readme.md", "additional_properties": { "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/backups.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/backups.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/backups.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/backups.go index 1f1b3b047a73..adbc5912ce0e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/backups.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/backups.go @@ -89,7 +89,7 @@ func (client BackupsClient) GetPreparer(ctx context.Context, resourceGroupName s "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -179,7 +179,7 @@ func (client BackupsClient) ListByServerPreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/checknameavailability.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/checknameavailability.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/checknameavailability.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/checknameavailability.go index 07fd963c9b4c..7b49f4a0ed3b 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/checknameavailability.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/checknameavailability.go @@ -86,7 +86,7 @@ func (client CheckNameAvailabilityClient) ExecutePreparer(ctx context.Context, l "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/checkvirtualnetworksubnetusage.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/checkvirtualnetworksubnetusage.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/checkvirtualnetworksubnetusage.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/checkvirtualnetworksubnetusage.go index 915dd3c77c7b..04c022fa941d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/checkvirtualnetworksubnetusage.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/checkvirtualnetworksubnetusage.go @@ -84,7 +84,7 @@ func (client CheckVirtualNetworkSubnetUsageClient) ExecutePreparer(ctx context.C "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/client.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/client.go similarity index 96% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/client.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/client.go index 2bacc20f7c24..265ff2e111c3 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/client.go @@ -1,4 +1,4 @@ -// Package mysqlflexibleservers implements the Azure ARM Mysqlflexibleservers service API version 2021-05-01-preview. +// Package mysqlflexibleservers implements the Azure ARM Mysqlflexibleservers service API version 2021-05-01. // // The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources // including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/configurations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/configurations.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/configurations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/configurations.go index 04db7553e426..084a7a0aabdf 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/configurations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/configurations.go @@ -81,7 +81,7 @@ func (client ConfigurationsClient) BatchUpdatePreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -180,7 +180,7 @@ func (client ConfigurationsClient) GetPreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -270,7 +270,7 @@ func (client ConfigurationsClient) ListByServerPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -388,7 +388,7 @@ func (client ConfigurationsClient) UpdatePreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/databases.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/databases.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/databases.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/databases.go index 113aa96a153a..67bbed7adfe8 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/databases.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/databases.go @@ -83,7 +83,7 @@ func (client DatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -176,7 +176,7 @@ func (client DatabasesClient) DeletePreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -272,7 +272,7 @@ func (client DatabasesClient) GetPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -362,7 +362,7 @@ func (client DatabasesClient) ListByServerPreparer(ctx context.Context, resource "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/enums.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/enums.go similarity index 92% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/enums.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/enums.go index e7dac0b251f5..bbe1138df635 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/enums.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/enums.go @@ -80,8 +80,6 @@ type HighAvailabilityMode string const ( // HighAvailabilityModeDisabled ... HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" - // HighAvailabilityModeEnabled ... - HighAvailabilityModeEnabled HighAvailabilityMode = "Enabled" // HighAvailabilityModeSameZone ... HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" // HighAvailabilityModeZoneRedundant ... @@ -90,7 +88,7 @@ const ( // PossibleHighAvailabilityModeValues returns an array of possible values for the HighAvailabilityMode const type. func PossibleHighAvailabilityModeValues() []HighAvailabilityMode { - return []HighAvailabilityMode{HighAvailabilityModeDisabled, HighAvailabilityModeEnabled, HighAvailabilityModeSameZone, HighAvailabilityModeZoneRedundant} + return []HighAvailabilityMode{HighAvailabilityModeDisabled, HighAvailabilityModeSameZone, HighAvailabilityModeZoneRedundant} } // HighAvailabilityState enumerates the values for high availability state. @@ -176,19 +174,6 @@ func PossibleReplicationRoleValues() []ReplicationRole { return []ReplicationRole{ReplicationRoleNone, ReplicationRoleReplica, ReplicationRoleSource} } -// ResourceIdentityType enumerates the values for resource identity type. -type ResourceIdentityType string - -const ( - // ResourceIdentityTypeSystemAssigned ... - ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" -) - -// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. -func PossibleResourceIdentityTypeValues() []ResourceIdentityType { - return []ResourceIdentityType{ResourceIdentityTypeSystemAssigned} -} - // ServerState enumerates the values for server state. type ServerState string diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/firewallrules.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/firewallrules.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/firewallrules.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/firewallrules.go index 067247f41d7b..1c444a89dd2f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/firewallrules.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/firewallrules.go @@ -90,7 +90,7 @@ func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -183,7 +183,7 @@ func (client FirewallRulesClient) DeletePreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -279,7 +279,7 @@ func (client FirewallRulesClient) GetPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -369,7 +369,7 @@ func (client FirewallRulesClient) ListByServerPreparer(ctx context.Context, reso "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/getprivatednszonesuffix.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/getprivatednszonesuffix.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/getprivatednszonesuffix.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/getprivatednszonesuffix.go index d7f0426839f5..991af082882d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/getprivatednszonesuffix.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/getprivatednszonesuffix.go @@ -69,7 +69,7 @@ func (client GetPrivateDNSZoneSuffixClient) Execute(ctx context.Context) (result // ExecutePreparer prepares the Execute request. func (client GetPrivateDNSZoneSuffixClient) ExecutePreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/locationbasedcapabilities.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/locationbasedcapabilities.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/locationbasedcapabilities.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/locationbasedcapabilities.go index c9ebde57568b..bd713b36d68e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/locationbasedcapabilities.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/locationbasedcapabilities.go @@ -88,7 +88,7 @@ func (client LocationBasedCapabilitiesClient) ListPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/models.go similarity index 93% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/models.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/models.go index 36de3cef2046..627502681498 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/models.go @@ -18,7 +18,7 @@ import ( ) // The package's fully qualified name. -const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers" +const fqdn = "github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers" // AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag. type AzureEntityResource struct { @@ -1399,7 +1399,7 @@ type GetPrivateDNSZoneSuffixResponse struct { // HighAvailability network related properties of a server type HighAvailability struct { - // Mode - High availability mode for a server. Possible values include: 'HighAvailabilityModeEnabled', 'HighAvailabilityModeDisabled', 'HighAvailabilityModeZoneRedundant', 'HighAvailabilityModeSameZone' + // Mode - High availability mode for a server. Possible values include: 'HighAvailabilityModeDisabled', 'HighAvailabilityModeZoneRedundant', 'HighAvailabilityModeSameZone' Mode HighAvailabilityMode `json:"mode,omitempty"` // State - READ-ONLY; The state of server high availability. Possible values include: 'HighAvailabilityStateNotEnabled', 'HighAvailabilityStateCreatingStandby', 'HighAvailabilityStateHealthy', 'HighAvailabilityStateFailingOver', 'HighAvailabilityStateRemovingStandby' State HighAvailabilityState `json:"state,omitempty"` @@ -1419,25 +1419,6 @@ func (ha HighAvailability) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Identity identity for the resource. -type Identity struct { - // PrincipalID - READ-ONLY; The principal ID of resource identity. - PrincipalID *string `json:"principalId,omitempty"` - // TenantID - READ-ONLY; The tenant ID of resource. - TenantID *string `json:"tenantId,omitempty"` - // Type - The identity type. Possible values include: 'ResourceIdentityTypeSystemAssigned' - Type ResourceIdentityType `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for Identity. -func (i Identity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if i.Type != "" { - objectMap["type"] = i.Type - } - return json.Marshal(objectMap) -} - // MaintenanceWindow maintenance window of a server. type MaintenanceWindow struct { // CustomWindow - indicates whether custom window is enabled or disabled @@ -1692,20 +1673,6 @@ func NewOperationListResultPage(cur OperationListResult, getNextPage func(contex } } -// Plan plan for the resource. -type Plan struct { - // Name - A user defined name of the 3rd Party Artifact that is being procured. - Name *string `json:"name,omitempty"` - // Publisher - The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic - Publisher *string `json:"publisher,omitempty"` - // Product - The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. - Product *string `json:"product,omitempty"` - // PromotionCode - A publisher provided promotion code as provisioned in Data Market for the said product/artifact. - PromotionCode *string `json:"promotionCode,omitempty"` - // Version - The version of the desired product/artifact. - Version *string `json:"version,omitempty"` -} - // ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not // have tags and a location type ProxyResource struct { @@ -1739,104 +1706,9 @@ func (r Resource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed -// properties for a resource. Except properties bag, there cannot be a top level property outside of this -// set. -type ResourceModelWithAllowedPropertySet struct { - // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The name of the resource - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty"` - // Location - The geo-location where the resource lives - Location *string `json:"location,omitempty"` - // ManagedBy - The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - ManagedBy *string `json:"managedBy,omitempty"` - // Kind - Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. - Kind *string `json:"kind,omitempty"` - // Etag - READ-ONLY; The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. - Etag *string `json:"etag,omitempty"` - // Tags - Resource tags. - Tags map[string]*string `json:"tags"` - Identity *ResourceModelWithAllowedPropertySetIdentity `json:"identity,omitempty"` - Sku *ResourceModelWithAllowedPropertySetSku `json:"sku,omitempty"` - Plan *ResourceModelWithAllowedPropertySetPlan `json:"plan,omitempty"` -} - -// MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySet. -func (rmwaps ResourceModelWithAllowedPropertySet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rmwaps.Location != nil { - objectMap["location"] = rmwaps.Location - } - if rmwaps.ManagedBy != nil { - objectMap["managedBy"] = rmwaps.ManagedBy - } - if rmwaps.Kind != nil { - objectMap["kind"] = rmwaps.Kind - } - if rmwaps.Tags != nil { - objectMap["tags"] = rmwaps.Tags - } - if rmwaps.Identity != nil { - objectMap["identity"] = rmwaps.Identity - } - if rmwaps.Sku != nil { - objectMap["sku"] = rmwaps.Sku - } - if rmwaps.Plan != nil { - objectMap["plan"] = rmwaps.Plan - } - return json.Marshal(objectMap) -} - -// ResourceModelWithAllowedPropertySetIdentity ... -type ResourceModelWithAllowedPropertySetIdentity struct { - // PrincipalID - READ-ONLY; The principal ID of resource identity. - PrincipalID *string `json:"principalId,omitempty"` - // TenantID - READ-ONLY; The tenant ID of resource. - TenantID *string `json:"tenantId,omitempty"` - // Type - The identity type. Possible values include: 'ResourceIdentityTypeSystemAssigned' - Type ResourceIdentityType `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySetIdentity. -func (rmwaps ResourceModelWithAllowedPropertySetIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rmwaps.Type != "" { - objectMap["type"] = rmwaps.Type - } - return json.Marshal(objectMap) -} - -// ResourceModelWithAllowedPropertySetPlan ... -type ResourceModelWithAllowedPropertySetPlan struct { - // Name - A user defined name of the 3rd Party Artifact that is being procured. - Name *string `json:"name,omitempty"` - // Publisher - The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic - Publisher *string `json:"publisher,omitempty"` - // Product - The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. - Product *string `json:"product,omitempty"` - // PromotionCode - A publisher provided promotion code as provisioned in Data Market for the said product/artifact. - PromotionCode *string `json:"promotionCode,omitempty"` - // Version - The version of the desired product/artifact. - Version *string `json:"version,omitempty"` -} - -// ResourceModelWithAllowedPropertySetSku ... -type ResourceModelWithAllowedPropertySetSku struct { - // Name - The name of the sku, e.g. Standard_D32s_v3. - Name *string `json:"name,omitempty"` - // Tier - The tier of the particular SKU, e.g. GeneralPurpose. Possible values include: 'SkuTierBurstable', 'SkuTierGeneralPurpose', 'SkuTierMemoryOptimized' - Tier SkuTier `json:"tier,omitempty"` -} - // Server represents a server. type Server struct { autorest.Response `json:"-"` - // Identity - The Azure Active Directory identity of the server. - Identity *Identity `json:"identity,omitempty"` // Sku - The SKU (pricing tier) of the server. Sku *Sku `json:"sku,omitempty"` // ServerProperties - Properties of the server. @@ -1858,9 +1730,6 @@ type Server struct { // MarshalJSON is the custom marshaler for Server. func (s Server) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) - if s.Identity != nil { - objectMap["identity"] = s.Identity - } if s.Sku != nil { objectMap["sku"] = s.Sku } @@ -1885,15 +1754,6 @@ func (s *Server) UnmarshalJSON(body []byte) error { } for k, v := range m { switch k { - case "identity": - if v != nil { - var identity Identity - err = json.Unmarshal(*v, &identity) - if err != nil { - return err - } - s.Identity = &identity - } case "sku": if v != nil { var sku Sku diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/operations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/operations.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/operations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/operations.go index ee86817dd734..0e1772fd1b28 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/operations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/operations.go @@ -73,7 +73,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe // ListPreparer prepares the List request. func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/replicas.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/replicas.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/replicas.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/replicas.go index 3cd128ee82af..ac238172ff3c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/replicas.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/replicas.go @@ -92,7 +92,7 @@ func (client ReplicasClient) ListByServerPreparer(ctx context.Context, resourceG "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/servers.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/servers.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/servers.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/servers.go index 4850294064d6..71aa67de3aeb 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/servers.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/servers.go @@ -88,7 +88,7 @@ func (client ServersClient) CreatePreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -179,7 +179,7 @@ func (client ServersClient) DeletePreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -266,7 +266,7 @@ func (client ServersClient) FailoverPreparer(ctx context.Context, resourceGroupN "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -360,7 +360,7 @@ func (client ServersClient) GetPreparer(ctx context.Context, resourceGroupName s "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -442,7 +442,7 @@ func (client ServersClient) ListPreparer(ctx context.Context) (*http.Request, er "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -567,7 +567,7 @@ func (client ServersClient) ListByResourceGroupPreparer(ctx context.Context, res "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -683,7 +683,7 @@ func (client ServersClient) RestartPreparer(ctx context.Context, resourceGroupNa "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -772,7 +772,7 @@ func (client ServersClient) StartPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -859,7 +859,7 @@ func (client ServersClient) StopPreparer(ctx context.Context, resourceGroupName "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -948,7 +948,7 @@ func (client ServersClient) UpdatePreparer(ctx context.Context, resourceGroupNam "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2021-05-01-preview" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/version.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/version.go similarity index 97% rename from vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/version.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/version.go index 48d73ce6e1ec..a4a45b35d7c9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/version.go @@ -10,7 +10,7 @@ import "github.com/Azure/azure-sdk-for-go/version" // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return "Azure-SDK-For-Go/" + Version() + " mysqlflexibleservers/2021-05-01-preview" + return "Azure-SDK-For-Go/" + Version() + " mysqlflexibleservers/2021-05-01" } // Version returns the semantic version (see http://semver.org) of the client. diff --git a/vendor/modules.txt b/vendor/modules.txt index bef020ce1189..82266bc33cf7 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -63,6 +63,7 @@ github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media github.com/Azure/azure-sdk-for-go/services/mixedreality/mgmt/2021-01-01/mixedreality github.com/Azure/azure-sdk-for-go/services/monitor/mgmt/2020-10-01/insights github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2020-01-01/mysql +github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2021-06-01/netapp github.com/Azure/azure-sdk-for-go/services/network/mgmt/2021-02-01/network github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2017-04-01/notificationhubs @@ -81,7 +82,6 @@ github.com/Azure/azure-sdk-for-go/services/preview/eventgrid/mgmt/2020-10-15-pre github.com/Azure/azure-sdk-for-go/services/preview/hardwaresecuritymodules/mgmt/2018-10-31-preview/hardwaresecuritymodules github.com/Azure/azure-sdk-for-go/services/preview/keyvault/mgmt/2020-04-01-preview/keyvault github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-07-01-preview/insights -github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2021-05-01-preview/mysqlflexibleservers github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement github.com/Azure/azure-sdk-for-go/services/preview/policyinsights/mgmt/2019-10-01-preview/policyinsights github.com/Azure/azure-sdk-for-go/services/preview/portal/mgmt/2019-01-01-preview/portal