From 3ab19df558e5cb37473150230ddd1a0cfee8855b Mon Sep 17 00:00:00 2001 From: elena Date: Thu, 17 Nov 2022 15:45:33 +0800 Subject: [PATCH] upgrade cognitive service sdk to 2022-10-01 --- go.mod | 2 +- go.sum | 4 +- internal/services/cognitive/client/client.go | 2 +- ...e_account_customer_managed_key_resource.go | 2 +- ...ount_customer_managed_key_resource_test.go | 2 +- .../cognitive_account_data_source.go | 2 +- .../cognitive/cognitive_account_resource.go | 2 +- .../cognitive_account_resource_test.go | 2 +- .../cognitiveservicesaccounts/README.md | 23 ++- .../cognitiveservicesaccounts/client.go | 0 .../cognitiveservicesaccounts/constants.go | 0 .../cognitiveservicesaccounts/id_account.go | 0 .../id_deletedaccount.go | 0 .../cognitiveservicesaccounts/id_location.go | 0 .../method_accountscreate_autorest.go | 0 .../method_accountsdelete_autorest.go | 0 .../method_accountsget_autorest.go | 0 .../method_accountslist_autorest.go | 0 ...od_accountslistbyresourcegroup_autorest.go | 0 .../method_accountslistkeys_autorest.go | 0 .../method_accountslistmodels_autorest.go | 186 ++++++++++++++++++ .../method_accountslistskus_autorest.go | 0 .../method_accountslistusages_autorest.go | 0 .../method_accountsregeneratekey_autorest.go | 0 .../method_accountsupdate_autorest.go | 0 ...method_checkdomainavailability_autorest.go | 0 .../method_checkskuavailability_autorest.go | 0 .../method_deletedaccountsget_autorest.go | 0 .../method_deletedaccountslist_autorest.go | 0 .../method_deletedaccountspurge_autorest.go | 0 .../method_resourceskuslist_autorest.go | 0 .../model_account.go | 0 .../model_accountmodel.go | 20 ++ .../model_accountproperties.go | 3 + .../model_accountsku.go | 0 .../model_accountskulistresult.go | 0 .../model_apikeys.go | 0 .../model_apiproperties.go | 0 .../model_callratelimit.go | 0 .../model_checkdomainavailabilityparameter.go | 5 +- .../model_checkskuavailabilityparameter.go | 0 .../model_deploymentmodel.go | 11 ++ .../model_domainavailability.go | 1 + .../model_encryption.go | 0 .../cognitiveservicesaccounts/model_iprule.go | 0 .../model_keyvaultproperties.go | 0 .../model_metricname.go | 0 .../model_modeldeprecationinfo.go | 9 + .../model_networkruleset.go | 0 .../model_privateendpoint.go | 0 .../model_privateendpointconnection.go | 0 ...del_privateendpointconnectionproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 .../model_quotalimit.go | 0 .../model_regeneratekeyparameters.go | 0 .../model_requestmatchpattern.go | 0 .../model_resourcesku.go | 0 .../model_resourceskurestrictioninfo.go | 0 .../model_resourceskurestrictions.go | 0 .../cognitiveservicesaccounts/model_sku.go | 0 .../model_skuavailability.go | 0 .../model_skuavailabilitylistresult.go | 0 .../model_skucapability.go | 0 .../model_skuchangeinfo.go | 0 .../model_throttlingrule.go | 0 .../cognitiveservicesaccounts/model_usage.go | 0 .../model_usagelistresult.go | 0 .../model_userownedstorage.go | 0 .../model_virtualnetworkrule.go | 0 .../cognitiveservicesaccounts/predicates.go | 28 +++ .../cognitiveservicesaccounts/version.go | 2 +- vendor/modules.txt | 4 +- 72 files changed, 293 insertions(+), 17 deletions(-) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/id_account.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/id_deletedaccount.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/id_location.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_accountscreate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_accountsdelete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_accountsget_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_accountslist_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_accountslistbyresourcegroup_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_accountslistkeys_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistmodels_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_accountslistskus_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_accountslistusages_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_accountsregeneratekey_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_accountsupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_checkdomainavailability_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_checkskuavailability_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_deletedaccountsget_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_deletedaccountslist_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_deletedaccountspurge_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/method_resourceskuslist_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_account.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_accountmodel.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_accountproperties.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_accountsku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_accountskulistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_apikeys.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_apiproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_callratelimit.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_checkdomainavailabilityparameter.go (64%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_checkskuavailabilityparameter.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_deploymentmodel.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_domainavailability.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_encryption.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_iprule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_keyvaultproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_metricname.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_modeldeprecationinfo.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_networkruleset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_privateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_quotalimit.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_regeneratekeyparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_requestmatchpattern.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_resourcesku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_resourceskurestrictioninfo.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_resourceskurestrictions.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_sku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_skuavailability.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_skuavailabilitylistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_skucapability.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_skuchangeinfo.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_throttlingrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_usage.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_usagelistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_userownedstorage.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/model_virtualnetworkrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/predicates.go (69%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/{2021-04-30 => 2022-10-01}/cognitiveservicesaccounts/version.go (89%) diff --git a/go.mod b/go.mod index 94e457cc7c28..c2fe262de204 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/google/go-cmp v0.5.8 github.com/google/uuid v1.1.2 github.com/hashicorp/go-azure-helpers v0.47.0 - github.com/hashicorp/go-azure-sdk v0.20221114.1064854 + github.com/hashicorp/go-azure-sdk v0.20221116.1113257 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-uuid v1.0.3 github.com/hashicorp/go-version v1.6.0 diff --git a/go.sum b/go.sum index dd0e720c851f..29e8bab5a238 100644 --- a/go.sum +++ b/go.sum @@ -216,8 +216,8 @@ github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brv github.com/hashicorp/go-azure-helpers v0.12.0/go.mod h1:Zc3v4DNeX6PDdy7NljlYpnrdac1++qNW0I4U+ofGwpg= github.com/hashicorp/go-azure-helpers v0.47.0 h1:E90ZN2hqMtzI+tfGWCnNtyLZYG4csoKSs+hWZZ8ywSM= github.com/hashicorp/go-azure-helpers v0.47.0/go.mod h1:WiJNl0fD6PoM/MYuGTZ8yuzIaXQR3m2H2g6+EJ8nSwc= -github.com/hashicorp/go-azure-sdk v0.20221114.1064854 h1:2prpRSDjhQtk6ftkBCnCX6NfEXjmN2UQjQHj5vmrsR8= -github.com/hashicorp/go-azure-sdk v0.20221114.1064854/go.mod h1:BEjoURzcFwd+K3MqkbOt9jArIIrsqpBQ2Gz6DdemFIs= +github.com/hashicorp/go-azure-sdk v0.20221116.1113257 h1:tNn4S1buuhNprzTNkwy7CnIN0XPq72RC1fMgD3MrdXk= +github.com/hashicorp/go-azure-sdk v0.20221116.1113257/go.mod h1:BEjoURzcFwd+K3MqkbOt9jArIIrsqpBQ2Gz6DdemFIs= github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= diff --git a/internal/services/cognitive/client/client.go b/internal/services/cognitive/client/client.go index df1f15570556..9c755209c0cd 100644 --- a/internal/services/cognitive/client/client.go +++ b/internal/services/cognitive/client/client.go @@ -1,7 +1,7 @@ package client import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/cognitive/cognitive_account_customer_managed_key_resource.go b/internal/services/cognitive/cognitive_account_customer_managed_key_resource.go index 806f73cc9d4b..250d01d851c4 100644 --- a/internal/services/cognitive/cognitive_account_customer_managed_key_resource.go +++ b/internal/services/cognitive/cognitive_account_customer_managed_key_resource.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go b/internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go index e8d46d372c5b..8a21982fdfa4 100644 --- a/internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go +++ b/internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts" "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/cognitive/cognitive_account_data_source.go b/internal/services/cognitive/cognitive_account_data_source.go index bdea0c744747..bb0ce83efc81 100644 --- a/internal/services/cognitive/cognitive_account_data_source.go +++ b/internal/services/cognitive/cognitive_account_data_source.go @@ -8,7 +8,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/cognitive/2021-04-30/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/cognitive/cognitive_account_resource.go b/internal/services/cognitive/cognitive_account_resource.go index 376c028ab82d..14cdb8b0a347 100644 --- a/internal/services/cognitive/cognitive_account_resource.go +++ b/internal/services/cognitive/cognitive_account_resource.go @@ -11,7 +11,7 @@ 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/cognitive/2021-04-30/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts" search "github.com/hashicorp/go-azure-sdk/resource-manager/search/2020-03-13/services" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" diff --git a/internal/services/cognitive/cognitive_account_resource_test.go b/internal/services/cognitive/cognitive_account_resource_test.go index aa6a8be45aaf..7d8c0d70246a 100644 --- a/internal/services/cognitive/cognitive_account_resource_test.go +++ b/internal/services/cognitive/cognitive_account_resource_test.go @@ -6,7 +6,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts" "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/cognitive/2021-04-30/cognitiveservicesaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/README.md index 5e0fce157c08..d135712eaa5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts` Documentation -The `cognitiveservicesaccounts` SDK allows for interaction with the Azure Resource Manager Service `cognitive` (API Version `2021-04-30`). +The `cognitiveservicesaccounts` SDK allows for interaction with the Azure Resource Manager Service `cognitive` (API Version `2022-10-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/cognitive/2021-04-30/cognitiveservicesaccounts" +import "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts" ``` @@ -115,6 +115,23 @@ if model := read.Model; model != nil { ``` +### Example Usage: `CognitiveServicesAccountsClient.AccountsListModels` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") + +// alternatively `client.AccountsListModels(ctx, id)` can be used to do batched pagination +items, err := client.AccountsListModelsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + ### Example Usage: `CognitiveServicesAccountsClient.AccountsListSkus` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/id_account.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/id_account.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/id_account.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/id_deletedaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/id_deletedaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/id_deletedaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/id_deletedaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountscreate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountscreate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountscreate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountscreate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountsdelete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountsdelete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountsdelete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountsdelete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountsget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountsget_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountsget_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountsget_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslist_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountslist_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslist_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountslistbyresourcegroup_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistbyresourcegroup_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountslistbyresourcegroup_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistbyresourcegroup_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountslistkeys_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistkeys_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountslistkeys_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistkeys_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistmodels_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistmodels_autorest.go new file mode 100644 index 000000000000..56012f977825 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistmodels_autorest.go @@ -0,0 +1,186 @@ +package cognitiveservicesaccounts + +import ( + "context" + "fmt" + "net/http" + "net/url" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccountsListModelsOperationResponse struct { + HttpResponse *http.Response + Model *[]AccountModel + + nextLink *string + nextPageFunc func(ctx context.Context, nextLink string) (AccountsListModelsOperationResponse, error) +} + +type AccountsListModelsCompleteResult struct { + Items []AccountModel +} + +func (r AccountsListModelsOperationResponse) HasMore() bool { + return r.nextLink != nil +} + +func (r AccountsListModelsOperationResponse) LoadMore(ctx context.Context) (resp AccountsListModelsOperationResponse, err error) { + if !r.HasMore() { + err = fmt.Errorf("no more pages returned") + return + } + return r.nextPageFunc(ctx, *r.nextLink) +} + +// AccountsListModels ... +func (c CognitiveServicesAccountsClient) AccountsListModels(ctx context.Context, id AccountId) (resp AccountsListModelsOperationResponse, err error) { + req, err := c.preparerForAccountsListModels(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservicesaccounts.CognitiveServicesAccountsClient", "AccountsListModels", nil, "Failure preparing request") + return + } + + resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservicesaccounts.CognitiveServicesAccountsClient", "AccountsListModels", resp.HttpResponse, "Failure sending request") + return + } + + resp, err = c.responderForAccountsListModels(resp.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservicesaccounts.CognitiveServicesAccountsClient", "AccountsListModels", resp.HttpResponse, "Failure responding to request") + return + } + return +} + +// preparerForAccountsListModels prepares the AccountsListModels request. +func (c CognitiveServicesAccountsClient) preparerForAccountsListModels(ctx context.Context, id AccountId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/models", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// preparerForAccountsListModelsWithNextLink prepares the AccountsListModels request with the given nextLink token. +func (c CognitiveServicesAccountsClient) preparerForAccountsListModelsWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { + uri, err := url.Parse(nextLink) + if err != nil { + return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) + } + queryParameters := map[string]interface{}{} + for k, v := range uri.Query() { + if len(v) == 0 { + continue + } + val := v[0] + val = autorest.Encode("query", val) + queryParameters[k] = val + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(uri.Path), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForAccountsListModels handles the response to the AccountsListModels request. The method always +// closes the http.Response Body. +func (c CognitiveServicesAccountsClient) responderForAccountsListModels(resp *http.Response) (result AccountsListModelsOperationResponse, err error) { + type page struct { + Values []AccountModel `json:"value"` + NextLink *string `json:"nextLink"` + } + var respObj page + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&respObj), + autorest.ByClosing()) + result.HttpResponse = resp + result.Model = &respObj.Values + result.nextLink = respObj.NextLink + if respObj.NextLink != nil { + result.nextPageFunc = func(ctx context.Context, nextLink string) (result AccountsListModelsOperationResponse, err error) { + req, err := c.preparerForAccountsListModelsWithNextLink(ctx, nextLink) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservicesaccounts.CognitiveServicesAccountsClient", "AccountsListModels", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservicesaccounts.CognitiveServicesAccountsClient", "AccountsListModels", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForAccountsListModels(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "cognitiveservicesaccounts.CognitiveServicesAccountsClient", "AccountsListModels", result.HttpResponse, "Failure responding to request") + return + } + + return + } + } + return +} + +// AccountsListModelsComplete retrieves all of the results into a single object +func (c CognitiveServicesAccountsClient) AccountsListModelsComplete(ctx context.Context, id AccountId) (AccountsListModelsCompleteResult, error) { + return c.AccountsListModelsCompleteMatchingPredicate(ctx, id, AccountModelOperationPredicate{}) +} + +// AccountsListModelsCompleteMatchingPredicate retrieves all of the results and then applied the predicate +func (c CognitiveServicesAccountsClient) AccountsListModelsCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate AccountModelOperationPredicate) (resp AccountsListModelsCompleteResult, err error) { + items := make([]AccountModel, 0) + + page, err := c.AccountsListModels(ctx, id) + if err != nil { + err = fmt.Errorf("loading the initial page: %+v", err) + return + } + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + for page.HasMore() { + page, err = page.LoadMore(ctx) + if err != nil { + err = fmt.Errorf("loading the next page: %+v", err) + return + } + + if page.Model != nil { + for _, v := range *page.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + } + + out := AccountsListModelsCompleteResult{ + Items: items, + } + return out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountslistskus_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistskus_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountslistskus_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistskus_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountslistusages_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistusages_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountslistusages_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountslistusages_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountsregeneratekey_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountsregeneratekey_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountsregeneratekey_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountsregeneratekey_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountsupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountsupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_accountsupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_accountsupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_checkdomainavailability_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_checkdomainavailability_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_checkdomainavailability_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_checkdomainavailability_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_checkskuavailability_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_checkskuavailability_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_checkskuavailability_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_checkskuavailability_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_deletedaccountsget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_deletedaccountsget_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_deletedaccountsget_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_deletedaccountsget_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_deletedaccountslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_deletedaccountslist_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_deletedaccountslist_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_deletedaccountslist_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_deletedaccountspurge_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_deletedaccountspurge_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_deletedaccountspurge_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_deletedaccountspurge_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_resourceskuslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_resourceskuslist_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/method_resourceskuslist_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/method_resourceskuslist_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_account.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_account.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_account.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_accountmodel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_accountmodel.go new file mode 100644 index 000000000000..b56910143358 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_accountmodel.go @@ -0,0 +1,20 @@ +package cognitiveservicesaccounts + +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 AccountModel struct { + BaseModel *DeploymentModel `json:"baseModel,omitempty"` + CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` + Capabilities *map[string]string `json:"capabilities,omitempty"` + Deprecation *ModelDeprecationInfo `json:"deprecation,omitempty"` + Format *string `json:"format,omitempty"` + MaxCapacity *int64 `json:"maxCapacity,omitempty"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Version *string `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_accountproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_accountproperties.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_accountproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_accountproperties.go index 77de4f3bda8b..5167ab87895b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_accountproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_accountproperties.go @@ -10,7 +10,9 @@ type AccountProperties struct { Capabilities *[]SkuCapability `json:"capabilities,omitempty"` CustomSubDomainName *string `json:"customSubDomainName,omitempty"` DateCreated *string `json:"dateCreated,omitempty"` + DeletionDate *string `json:"deletionDate,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + DynamicThrottlingEnabled *bool `json:"dynamicThrottlingEnabled,omitempty"` Encryption *Encryption `json:"encryption,omitempty"` Endpoint *string `json:"endpoint,omitempty"` Endpoints *map[string]string `json:"endpoints,omitempty"` @@ -24,6 +26,7 @@ type AccountProperties struct { QuotaLimit *QuotaLimit `json:"quotaLimit,omitempty"` Restore *bool `json:"restore,omitempty"` RestrictOutboundNetworkAccess *bool `json:"restrictOutboundNetworkAccess,omitempty"` + ScheduledPurgeDate *string `json:"scheduledPurgeDate,omitempty"` SkuChangeInfo *SkuChangeInfo `json:"skuChangeInfo,omitempty"` UserOwnedStorage *[]UserOwnedStorage `json:"userOwnedStorage,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_accountsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_accountsku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_accountsku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_accountsku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_accountskulistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_accountskulistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_accountskulistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_accountskulistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_apikeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_apikeys.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_apikeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_apikeys.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_apiproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_apiproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_apiproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_apiproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_callratelimit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_callratelimit.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_callratelimit.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_callratelimit.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_checkdomainavailabilityparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_checkdomainavailabilityparameter.go similarity index 64% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_checkdomainavailabilityparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_checkdomainavailabilityparameter.go index f1682e5623cc..0e1e92942414 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_checkdomainavailabilityparameter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_checkdomainavailabilityparameter.go @@ -4,6 +4,7 @@ package cognitiveservicesaccounts // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type CheckDomainAvailabilityParameter struct { - SubdomainName string `json:"subdomainName"` - Type string `json:"type"` + Kind *string `json:"kind,omitempty"` + SubdomainName string `json:"subdomainName"` + Type string `json:"type"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_checkskuavailabilityparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_checkskuavailabilityparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_checkskuavailabilityparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_checkskuavailabilityparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_deploymentmodel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_deploymentmodel.go new file mode 100644 index 000000000000..bab75c6a114c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_deploymentmodel.go @@ -0,0 +1,11 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeploymentModel struct { + CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` + Format *string `json:"format,omitempty"` + Name *string `json:"name,omitempty"` + Version *string `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_domainavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_domainavailability.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_domainavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_domainavailability.go index e5f62fec1cbf..2e36d46eef58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_domainavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_domainavailability.go @@ -5,6 +5,7 @@ package cognitiveservicesaccounts type DomainAvailability struct { IsSubdomainAvailable *bool `json:"isSubdomainAvailable,omitempty"` + Kind *string `json:"kind,omitempty"` Reason *string `json:"reason,omitempty"` SubdomainName *string `json:"subdomainName,omitempty"` Type *string `json:"type,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_encryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_encryption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_encryption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_encryption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_iprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_iprule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_iprule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_iprule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_keyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_keyvaultproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_keyvaultproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_keyvaultproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_metricname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_metricname.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_metricname.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_metricname.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_modeldeprecationinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_modeldeprecationinfo.go new file mode 100644 index 000000000000..f1a7e60596c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_modeldeprecationinfo.go @@ -0,0 +1,9 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ModelDeprecationInfo struct { + FineTune *string `json:"fineTune,omitempty"` + Inference *string `json:"inference,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_networkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_networkruleset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_networkruleset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_networkruleset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_quotalimit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_quotalimit.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_quotalimit.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_quotalimit.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_regeneratekeyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_regeneratekeyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_regeneratekeyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_regeneratekeyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_requestmatchpattern.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_requestmatchpattern.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_requestmatchpattern.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_requestmatchpattern.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_resourcesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_resourcesku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_resourcesku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_resourcesku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_resourceskurestrictioninfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_resourceskurestrictioninfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_resourceskurestrictioninfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_resourceskurestrictioninfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_resourceskurestrictions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_resourceskurestrictions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_resourceskurestrictions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_resourceskurestrictions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_skuavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_skuavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_skuavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_skuavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_skuavailabilitylistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_skuavailabilitylistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_skuavailabilitylistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_skuavailabilitylistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_skucapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_skucapability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_skucapability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_skucapability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_skuchangeinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_skuchangeinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_skuchangeinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_skuchangeinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_throttlingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_throttlingrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_throttlingrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_throttlingrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_usage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_usage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_usage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_usage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_usagelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_usagelistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_usagelistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_usagelistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_userownedstorage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_userownedstorage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_userownedstorage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_userownedstorage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_virtualnetworkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_virtualnetworkrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/model_virtualnetworkrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/model_virtualnetworkrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/predicates.go similarity index 69% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/predicates.go index bad9ffa9bcc3..dd1857f30c24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/predicates.go @@ -38,6 +38,34 @@ func (p AccountOperationPredicate) Matches(input Account) bool { return true } +type AccountModelOperationPredicate struct { + Format *string + MaxCapacity *int64 + Name *string + Version *string +} + +func (p AccountModelOperationPredicate) Matches(input AccountModel) bool { + + if p.Format != nil && (input.Format == nil && *p.Format != *input.Format) { + return false + } + + if p.MaxCapacity != nil && (input.MaxCapacity == nil && *p.MaxCapacity != *input.MaxCapacity) { + return false + } + + if p.Name != nil && (input.Name == nil && *p.Name != *input.Name) { + return false + } + + if p.Version != nil && (input.Version == nil && *p.Version != *input.Version) { + return false + } + + return true +} + type ResourceSkuOperationPredicate struct { Kind *string Name *string diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/version.go index 93e64e262ca1..88f0eb9ec645 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts/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-04-30" +const defaultApiVersion = "2022-10-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/cognitiveservicesaccounts/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index 02c76c616995..e275e973d6b8 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -176,7 +176,7 @@ github.com/hashicorp/go-azure-helpers/resourcemanager/zones github.com/hashicorp/go-azure-helpers/resourceproviders github.com/hashicorp/go-azure-helpers/sender github.com/hashicorp/go-azure-helpers/storage -# github.com/hashicorp/go-azure-sdk v0.20221114.1064854 +# github.com/hashicorp/go-azure-sdk v0.20221116.1113257 ## explicit; go 1.18 github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview @@ -196,7 +196,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/automation/2021-06-22/automat github.com/hashicorp/go-azure-sdk/resource-manager/automation/2021-06-22/hybridrunbookworker github.com/hashicorp/go-azure-sdk/resource-manager/automation/2021-06-22/hybridrunbookworkergroup github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2022-09-01/clusters -github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2021-04-30/cognitiveservicesaccounts +github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2022-10-01/cognitiveservicesaccounts github.com/hashicorp/go-azure-sdk/resource-manager/communication/2020-08-20/communicationservice github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets