From 1b8d9274e0aaea33b02459de49a575c483e67bb8 Mon Sep 17 00:00:00 2001 From: jan-mrm <67435696+jan-mrm@users.noreply.github.com> Date: Thu, 28 Nov 2024 18:03:40 +0100 Subject: [PATCH] `Search` - update API version to `2024-06-01-preview` (#27803) * feat: update Search Service API version from 2022-09-01 and 2023-11-01 to 2024-06-01-preview * test: update identity tests with PR feedback --- .../cognitive/cognitive_account_resource.go | 2 +- internal/services/search/client/client.go | 8 +- .../search/search_service_data_source.go | 14 +- .../search/search_service_resource.go | 18 +- .../search/search_service_resource_test.go | 137 +++- ...ch_shared_private_link_service_resource.go | 4 +- ...ared_private_link_service_resource_test.go | 2 +- .../search/2022-09-01/services/constants.go | 647 ------------------ .../services/model_networkruleset.go | 8 - .../services/model_searchservice.go | 19 - .../services/model_searchserviceproperties.go | 20 - .../services/model_searchserviceupdate.go | 19 - .../search/2023-11-01/services/README.md | 146 ---- .../search/2023-11-01/services/client.go | 26 - .../2023-11-01/services/id_searchservice.go | 130 ---- .../services/method_checknameavailability.go | 88 --- .../services/method_createorupdate.go | 104 --- .../2023-11-01/services/method_delete.go | 77 --- .../search/2023-11-01/services/method_get.go | 83 --- .../services/method_listbyresourcegroup.go | 135 ---- .../services/method_listbysubscription.go | 135 ---- .../2023-11-01/services/method_update.go | 87 --- .../model_checknameavailabilityinput.go | 9 - .../model_checknameavailabilityoutput.go | 10 - .../model_dataplaneaadorapikeyauthoption.go | 8 - .../services/model_dataplaneauthoptions.go | 9 - .../services/model_encryptionwithcmk.go | 9 - .../2023-11-01/services/model_iprule.go | 8 - .../model_privateendpointconnection.go | 11 - ...del_privateendpointconnectionproperties.go | 11 - ...ointconnectionpropertiesprivateendpoint.go | 8 - ...ertiesprivatelinkserviceconnectionstate.go | 10 - .../services/model_searchservice.go | 19 - .../services/model_searchserviceproperties.go | 21 - .../services/model_searchserviceupdate.go | 19 - .../model_sharedprivatelinkresource.go | 11 - ...del_sharedprivatelinkresourceproperties.go | 13 - .../search/2023-11-01/services/model_sku.go | 8 - .../search/2023-11-01/services/predicates.go | 32 - .../search/2023-11-01/services/version.go | 10 - .../adminkeys/README.md | 6 +- .../adminkeys/client.go | 0 .../adminkeys/constants.go | 0 .../adminkeys/id_keykind.go | 0 .../adminkeys/id_searchservice.go | 0 .../adminkeys/method_get.go | 0 .../adminkeys/method_regenerate.go | 0 .../adminkeys/model_adminkeyresult.go | 0 .../adminkeys/version.go | 4 +- .../querykeys/README.md | 6 +- .../querykeys/client.go | 0 .../querykeys/id_createquerykey.go | 0 .../querykeys/id_deletequerykey.go | 0 .../querykeys/id_searchservice.go | 0 .../querykeys/method_create.go | 0 .../querykeys/method_delete.go | 0 .../querykeys/method_listbysearchservice.go | 0 .../querykeys/model_querykey.go | 0 .../querykeys/predicates.go | 0 .../querykeys/version.go | 4 +- .../services/README.md | 6 +- .../services/client.go | 0 .../services/constants.go | 91 ++- .../services/id_searchservice.go | 0 .../services/method_checknameavailability.go | 0 .../services/method_createorupdate.go | 0 .../services/method_delete.go | 0 .../services/method_get.go | 0 .../services/method_listbyresourcegroup.go | 0 .../services/method_listbysubscription.go | 0 .../services/method_update.go | 0 .../model_checknameavailabilityinput.go | 0 .../model_checknameavailabilityoutput.go | 0 .../model_dataplaneaadorapikeyauthoption.go | 0 .../services/model_dataplaneauthoptions.go | 0 .../services/model_encryptionwithcmk.go | 0 .../services/model_iprule.go | 0 .../services/model_networkruleset.go | 3 +- .../model_privateendpointconnection.go | 0 ...del_privateendpointconnectionproperties.go | 0 ...ointconnectionpropertiesprivateendpoint.go | 0 ...ertiesprivatelinkserviceconnectionstate.go | 0 .../services/model_searchservice.go | 19 + .../services/model_searchserviceproperties.go | 23 + .../services/model_searchserviceupdate.go | 19 + .../model_sharedprivatelinkresource.go | 0 ...del_sharedprivatelinkresourceproperties.go | 0 .../services/model_sku.go | 0 .../services/predicates.go | 0 .../services/version.go | 4 +- .../sharedprivatelinkresources/README.md | 6 +- .../sharedprivatelinkresources/client.go | 0 .../sharedprivatelinkresources/constants.go | 0 .../id_searchservice.go | 0 .../id_sharedprivatelinkresource.go | 0 .../method_createorupdate.go | 0 .../method_delete.go | 0 .../sharedprivatelinkresources/method_get.go | 0 .../method_listbyservice.go | 0 .../model_sharedprivatelinkresource.go | 0 ...del_sharedprivatelinkresourceproperties.go | 0 .../sharedprivatelinkresources/predicates.go | 0 .../sharedprivatelinkresources/version.go | 4 +- vendor/modules.txt | 9 +- website/docs/d/search_service.html.markdown | 10 +- website/docs/r/search_service.html.markdown | 4 +- 106 files changed, 344 insertions(+), 2009 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_networkruleset.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchservice.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchserviceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchserviceupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/id_searchservice.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_checknameavailability.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbysubscription.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_update.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_checknameavailabilityinput.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_checknameavailabilityoutput.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_dataplaneaadorapikeyauthoption.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_dataplaneauthoptions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_encryptionwithcmk.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_iprule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionpropertiesprivateendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionpropertiesprivatelinkserviceconnectionstate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchservice.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchserviceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchserviceupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sharedprivatelinkresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sharedprivatelinkresourceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/adminkeys/README.md (91%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/adminkeys/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/adminkeys/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/adminkeys/id_keykind.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/adminkeys/id_searchservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/adminkeys/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/adminkeys/method_regenerate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/adminkeys/model_adminkeyresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/adminkeys/version.go (65%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/querykeys/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/querykeys/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/querykeys/id_createquerykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/querykeys/id_deletequerykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/querykeys/id_searchservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/querykeys/method_create.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/querykeys/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/querykeys/method_listbysearchservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/querykeys/model_querykey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/querykeys/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/querykeys/version.go (65%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/README.md (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/services/constants.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/id_searchservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/method_checknameavailability.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/method_listbysubscription.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_checknameavailabilityinput.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_checknameavailabilityoutput.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_dataplaneaadorapikeyauthoption.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_dataplaneauthoptions.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_encryptionwithcmk.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_iprule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/services/model_networkruleset.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_privateendpointconnectionpropertiesprivateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_privateendpointconnectionpropertiesprivatelinkserviceconnectionstate.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchserviceupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_sharedprivatelinkresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_sharedprivatelinkresourceproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/model_sku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2022-09-01 => 2024-06-01-preview}/services/version.go (65%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/id_searchservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/id_sharedprivatelinkresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/method_listbyservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/model_sharedprivatelinkresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/model_sharedprivatelinkresourceproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/{2023-11-01 => 2024-06-01-preview}/sharedprivatelinkresources/version.go (63%) diff --git a/internal/services/cognitive/cognitive_account_resource.go b/internal/services/cognitive/cognitive_account_resource.go index e2a281147b2f..822ac9e597d9 100644 --- a/internal/services/cognitive/cognitive_account_resource.go +++ b/internal/services/cognitive/cognitive_account_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts" - search "github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services" + search "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" commonValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" diff --git a/internal/services/search/client/client.go b/internal/services/search/client/client.go index 134771629ead..445c84662793 100644 --- a/internal/services/search/client/client.go +++ b/internal/services/search/client/client.go @@ -6,10 +6,10 @@ package client import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/search/search_service_data_source.go b/internal/services/search/search_service_data_source.go index 8d07d7bf6dd6..bb22d3687eda 100644 --- a/internal/services/search/search_service_data_source.go +++ b/internal/services/search/search_service_data_source.go @@ -14,9 +14,9 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services" "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" @@ -88,7 +88,7 @@ func dataSourceSearchService() *pluginsdk.Resource { Computed: true, }, - "identity": commonschema.SystemAssignedIdentityComputed(), + "identity": commonschema.SystemOrUserAssignedIdentityComputed(), "tags": commonschema.TagsDataSource(), }, @@ -141,7 +141,11 @@ func dataSourceSearchServiceRead(d *pluginsdk.ResourceData, meta interface{}) er d.Set("public_network_access_enabled", publicNetworkAccess) } - if err = d.Set("identity", identity.FlattenSystemAssigned(model.Identity)); err != nil { + flattenedIdentity, err := identity.FlattenSystemAndUserAssignedMap(model.Identity) + if err != nil { + return fmt.Errorf("flattening `identity`: %+v", err) + } + if err = d.Set("identity", flattenedIdentity); err != nil { return fmt.Errorf("setting `identity`: %s", err) } diff --git a/internal/services/search/search_service_resource.go b/internal/services/search/search_service_resource.go index bf2377663a02..75212ce7f6b3 100644 --- a/internal/services/search/search_service_resource.go +++ b/internal/services/search/search_service_resource.go @@ -16,9 +16,9 @@ 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/search/2023-11-01/adminkeys" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -187,7 +187,7 @@ func resourceSearchService() *pluginsdk.Resource { }, }, - "identity": commonschema.SystemAssignedIdentityOptional(), + "identity": commonschema.SystemAssignedUserAssignedIdentityOptional(), "tags": commonschema.Tags(), }, @@ -310,7 +310,7 @@ func resourceSearchServiceCreate(d *pluginsdk.ResourceData, meta interface{}) er Tags: tags.Expand(d.Get("tags").(map[string]interface{})), } - expandedIdentity, err := identity.ExpandSystemAssigned(d.Get("identity").([]interface{})) + expandedIdentity, err := identity.ExpandSystemAndUserAssignedMap(d.Get("identity").([]interface{})) if err != nil { return fmt.Errorf("expanding `identity`: %+v", err) } @@ -392,7 +392,7 @@ func resourceSearchServiceUpdate(d *pluginsdk.ResourceData, meta interface{}) er } if d.HasChange("identity") { - expandedIdentity, err := identity.ExpandSystemAssigned(d.Get("identity").([]interface{})) + expandedIdentity, err := identity.ExpandSystemAndUserAssignedMap(d.Get("identity").([]interface{})) if err != nil { return fmt.Errorf("expanding `identity`: %+v", err) } @@ -596,7 +596,11 @@ func resourceSearchServiceRead(d *pluginsdk.ResourceData, meta interface{}) erro d.Set("semantic_search_sku", semanticSearchSku) } - if err = d.Set("identity", identity.FlattenSystemAssigned(model.Identity)); err != nil { + flattenedIdentity, err := identity.FlattenSystemAndUserAssignedMap(model.Identity) + if err != nil { + return fmt.Errorf("flattening `identity`: %+v", err) + } + if err = d.Set("identity", flattenedIdentity); err != nil { return fmt.Errorf("setting `identity`: %s", err) } diff --git a/internal/services/search/search_service_resource_test.go b/internal/services/search/search_service_resource_test.go index a1d3c06d2070..b07471953314 100644 --- a/internal/services/search/search_service_resource_test.go +++ b/internal/services/search/search_service_resource_test.go @@ -9,7 +9,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services" "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" @@ -242,6 +242,79 @@ func TestAccSearchService_identity(t *testing.T) { }) } +func TestAccSearchService_identityUserAssigned(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_search_service", "test") + r := SearchServiceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.identityUserAssigned(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccSearchService_identitySystemAndUserAssigned(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_search_service", "test") + r := SearchServiceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.identitySystemAndUserAssigned(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccSearchService_identityUpdate(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_search_service", "test") + r := SearchServiceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data, "standard"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.identity(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.identityUserAssigned(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.identitySystemAndUserAssigned(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.basic(data, "standard"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccSearchService_hostingMode(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_search_service", "test") r := SearchServiceResource{} @@ -629,6 +702,68 @@ resource "azurerm_search_service" "test" { `, template, data.RandomInteger) } +func (r SearchServiceResource) identityUserAssigned(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%s + +resource "azurerm_user_assigned_identity" "test" { + name = "acctestUAI-%[2]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_search_service" "test" { + name = "acctestsearchservice%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + sku = "standard" + + identity { + type = "UserAssigned" + identity_ids = [ + azurerm_user_assigned_identity.test.id, + ] + } +} +`, template, data.RandomInteger) +} + +func (r SearchServiceResource) identitySystemAndUserAssigned(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%s + +resource "azurerm_user_assigned_identity" "test" { + name = "acctestUAI-%[2]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_search_service" "test" { + name = "acctestsearchservice%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + sku = "standard" + + identity { + type = "SystemAssigned, UserAssigned" + identity_ids = [ + azurerm_user_assigned_identity.test.id, + ] + } +} +`, template, data.RandomInteger) +} + func (r SearchServiceResource) hostingMode(data acceptance.TestData, sku string) string { template := r.template(data) return fmt.Sprintf(` diff --git a/internal/services/search/search_shared_private_link_service_resource.go b/internal/services/search/search_shared_private_link_service_resource.go index 2b4bc4a7ba17..006a964a9a1f 100644 --- a/internal/services/search/search_shared_private_link_service_resource.go +++ b/internal/services/search/search_shared_private_link_service_resource.go @@ -9,8 +9,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" networkValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/search/search_shared_private_link_service_resource_test.go b/internal/services/search/search_shared_private_link_service_resource_test.go index af8674084624..0f7f2c0467ca 100644 --- a/internal/services/search/search_shared_private_link_service_resource_test.go +++ b/internal/services/search/search_shared_private_link_service_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources" + "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources" "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/search/2022-09-01/services/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/constants.go deleted file mode 100644 index 95fc5bd23884..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/constants.go +++ /dev/null @@ -1,647 +0,0 @@ -package services - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AadAuthFailureMode string - -const ( - AadAuthFailureModeHTTPFourZeroOneWithBearerChallenge AadAuthFailureMode = "http401WithBearerChallenge" - AadAuthFailureModeHTTPFourZeroThree AadAuthFailureMode = "http403" -) - -func PossibleValuesForAadAuthFailureMode() []string { - return []string{ - string(AadAuthFailureModeHTTPFourZeroOneWithBearerChallenge), - string(AadAuthFailureModeHTTPFourZeroThree), - } -} - -func (s *AadAuthFailureMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAadAuthFailureMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAadAuthFailureMode(input string) (*AadAuthFailureMode, error) { - vals := map[string]AadAuthFailureMode{ - "http401withbearerchallenge": AadAuthFailureModeHTTPFourZeroOneWithBearerChallenge, - "http403": AadAuthFailureModeHTTPFourZeroThree, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AadAuthFailureMode(input) - return &out, nil -} - -type HostingMode string - -const ( - HostingModeDefault HostingMode = "default" - HostingModeHighDensity HostingMode = "highDensity" -) - -func PossibleValuesForHostingMode() []string { - return []string{ - string(HostingModeDefault), - string(HostingModeHighDensity), - } -} - -func (s *HostingMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseHostingMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseHostingMode(input string) (*HostingMode, error) { - vals := map[string]HostingMode{ - "default": HostingModeDefault, - "highdensity": HostingModeHighDensity, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := HostingMode(input) - return &out, nil -} - -type PrivateLinkServiceConnectionProvisioningState string - -const ( - PrivateLinkServiceConnectionProvisioningStateCanceled PrivateLinkServiceConnectionProvisioningState = "Canceled" - PrivateLinkServiceConnectionProvisioningStateDeleting PrivateLinkServiceConnectionProvisioningState = "Deleting" - PrivateLinkServiceConnectionProvisioningStateFailed PrivateLinkServiceConnectionProvisioningState = "Failed" - PrivateLinkServiceConnectionProvisioningStateIncomplete PrivateLinkServiceConnectionProvisioningState = "Incomplete" - PrivateLinkServiceConnectionProvisioningStateSucceeded PrivateLinkServiceConnectionProvisioningState = "Succeeded" - PrivateLinkServiceConnectionProvisioningStateUpdating PrivateLinkServiceConnectionProvisioningState = "Updating" -) - -func PossibleValuesForPrivateLinkServiceConnectionProvisioningState() []string { - return []string{ - string(PrivateLinkServiceConnectionProvisioningStateCanceled), - string(PrivateLinkServiceConnectionProvisioningStateDeleting), - string(PrivateLinkServiceConnectionProvisioningStateFailed), - string(PrivateLinkServiceConnectionProvisioningStateIncomplete), - string(PrivateLinkServiceConnectionProvisioningStateSucceeded), - string(PrivateLinkServiceConnectionProvisioningStateUpdating), - } -} - -func (s *PrivateLinkServiceConnectionProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePrivateLinkServiceConnectionProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePrivateLinkServiceConnectionProvisioningState(input string) (*PrivateLinkServiceConnectionProvisioningState, error) { - vals := map[string]PrivateLinkServiceConnectionProvisioningState{ - "canceled": PrivateLinkServiceConnectionProvisioningStateCanceled, - "deleting": PrivateLinkServiceConnectionProvisioningStateDeleting, - "failed": PrivateLinkServiceConnectionProvisioningStateFailed, - "incomplete": PrivateLinkServiceConnectionProvisioningStateIncomplete, - "succeeded": PrivateLinkServiceConnectionProvisioningStateSucceeded, - "updating": PrivateLinkServiceConnectionProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PrivateLinkServiceConnectionProvisioningState(input) - return &out, nil -} - -type PrivateLinkServiceConnectionStatus string - -const ( - PrivateLinkServiceConnectionStatusApproved PrivateLinkServiceConnectionStatus = "Approved" - PrivateLinkServiceConnectionStatusDisconnected PrivateLinkServiceConnectionStatus = "Disconnected" - PrivateLinkServiceConnectionStatusPending PrivateLinkServiceConnectionStatus = "Pending" - PrivateLinkServiceConnectionStatusRejected PrivateLinkServiceConnectionStatus = "Rejected" -) - -func PossibleValuesForPrivateLinkServiceConnectionStatus() []string { - return []string{ - string(PrivateLinkServiceConnectionStatusApproved), - string(PrivateLinkServiceConnectionStatusDisconnected), - string(PrivateLinkServiceConnectionStatusPending), - string(PrivateLinkServiceConnectionStatusRejected), - } -} - -func (s *PrivateLinkServiceConnectionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePrivateLinkServiceConnectionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePrivateLinkServiceConnectionStatus(input string) (*PrivateLinkServiceConnectionStatus, error) { - vals := map[string]PrivateLinkServiceConnectionStatus{ - "approved": PrivateLinkServiceConnectionStatusApproved, - "disconnected": PrivateLinkServiceConnectionStatusDisconnected, - "pending": PrivateLinkServiceConnectionStatusPending, - "rejected": PrivateLinkServiceConnectionStatusRejected, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PrivateLinkServiceConnectionStatus(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateFailed ProvisioningState = "failed" - ProvisioningStateProvisioning ProvisioningState = "provisioning" - ProvisioningStateSucceeded ProvisioningState = "succeeded" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateFailed), - string(ProvisioningStateProvisioning), - string(ProvisioningStateSucceeded), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "failed": ProvisioningStateFailed, - "provisioning": ProvisioningStateProvisioning, - "succeeded": ProvisioningStateSucceeded, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicNetworkAccess string - -const ( - PublicNetworkAccessDisabled PublicNetworkAccess = "disabled" - PublicNetworkAccessEnabled PublicNetworkAccess = "enabled" -) - -func PossibleValuesForPublicNetworkAccess() []string { - return []string{ - string(PublicNetworkAccessDisabled), - string(PublicNetworkAccessEnabled), - } -} - -func (s *PublicNetworkAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicNetworkAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicNetworkAccess(input string) (*PublicNetworkAccess, error) { - vals := map[string]PublicNetworkAccess{ - "disabled": PublicNetworkAccessDisabled, - "enabled": PublicNetworkAccessEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicNetworkAccess(input) - return &out, nil -} - -type ResourceType string - -const ( - ResourceTypeSearchServices ResourceType = "searchServices" -) - -func PossibleValuesForResourceType() []string { - return []string{ - string(ResourceTypeSearchServices), - } -} - -func (s *ResourceType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseResourceType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseResourceType(input string) (*ResourceType, error) { - vals := map[string]ResourceType{ - "searchservices": ResourceTypeSearchServices, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ResourceType(input) - return &out, nil -} - -type SearchEncryptionComplianceStatus string - -const ( - SearchEncryptionComplianceStatusCompliant SearchEncryptionComplianceStatus = "Compliant" - SearchEncryptionComplianceStatusNonCompliant SearchEncryptionComplianceStatus = "NonCompliant" -) - -func PossibleValuesForSearchEncryptionComplianceStatus() []string { - return []string{ - string(SearchEncryptionComplianceStatusCompliant), - string(SearchEncryptionComplianceStatusNonCompliant), - } -} - -func (s *SearchEncryptionComplianceStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSearchEncryptionComplianceStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSearchEncryptionComplianceStatus(input string) (*SearchEncryptionComplianceStatus, error) { - vals := map[string]SearchEncryptionComplianceStatus{ - "compliant": SearchEncryptionComplianceStatusCompliant, - "noncompliant": SearchEncryptionComplianceStatusNonCompliant, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SearchEncryptionComplianceStatus(input) - return &out, nil -} - -type SearchEncryptionWithCmk string - -const ( - SearchEncryptionWithCmkDisabled SearchEncryptionWithCmk = "Disabled" - SearchEncryptionWithCmkEnabled SearchEncryptionWithCmk = "Enabled" - SearchEncryptionWithCmkUnspecified SearchEncryptionWithCmk = "Unspecified" -) - -func PossibleValuesForSearchEncryptionWithCmk() []string { - return []string{ - string(SearchEncryptionWithCmkDisabled), - string(SearchEncryptionWithCmkEnabled), - string(SearchEncryptionWithCmkUnspecified), - } -} - -func (s *SearchEncryptionWithCmk) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSearchEncryptionWithCmk(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSearchEncryptionWithCmk(input string) (*SearchEncryptionWithCmk, error) { - vals := map[string]SearchEncryptionWithCmk{ - "disabled": SearchEncryptionWithCmkDisabled, - "enabled": SearchEncryptionWithCmkEnabled, - "unspecified": SearchEncryptionWithCmkUnspecified, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SearchEncryptionWithCmk(input) - return &out, nil -} - -type SearchServiceStatus string - -const ( - SearchServiceStatusDegraded SearchServiceStatus = "degraded" - SearchServiceStatusDeleting SearchServiceStatus = "deleting" - SearchServiceStatusDisabled SearchServiceStatus = "disabled" - SearchServiceStatusError SearchServiceStatus = "error" - SearchServiceStatusProvisioning SearchServiceStatus = "provisioning" - SearchServiceStatusRunning SearchServiceStatus = "running" -) - -func PossibleValuesForSearchServiceStatus() []string { - return []string{ - string(SearchServiceStatusDegraded), - string(SearchServiceStatusDeleting), - string(SearchServiceStatusDisabled), - string(SearchServiceStatusError), - string(SearchServiceStatusProvisioning), - string(SearchServiceStatusRunning), - } -} - -func (s *SearchServiceStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSearchServiceStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSearchServiceStatus(input string) (*SearchServiceStatus, error) { - vals := map[string]SearchServiceStatus{ - "degraded": SearchServiceStatusDegraded, - "deleting": SearchServiceStatusDeleting, - "disabled": SearchServiceStatusDisabled, - "error": SearchServiceStatusError, - "provisioning": SearchServiceStatusProvisioning, - "running": SearchServiceStatusRunning, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SearchServiceStatus(input) - return &out, nil -} - -type SharedPrivateLinkResourceProvisioningState string - -const ( - SharedPrivateLinkResourceProvisioningStateDeleting SharedPrivateLinkResourceProvisioningState = "Deleting" - SharedPrivateLinkResourceProvisioningStateFailed SharedPrivateLinkResourceProvisioningState = "Failed" - SharedPrivateLinkResourceProvisioningStateIncomplete SharedPrivateLinkResourceProvisioningState = "Incomplete" - SharedPrivateLinkResourceProvisioningStateSucceeded SharedPrivateLinkResourceProvisioningState = "Succeeded" - SharedPrivateLinkResourceProvisioningStateUpdating SharedPrivateLinkResourceProvisioningState = "Updating" -) - -func PossibleValuesForSharedPrivateLinkResourceProvisioningState() []string { - return []string{ - string(SharedPrivateLinkResourceProvisioningStateDeleting), - string(SharedPrivateLinkResourceProvisioningStateFailed), - string(SharedPrivateLinkResourceProvisioningStateIncomplete), - string(SharedPrivateLinkResourceProvisioningStateSucceeded), - string(SharedPrivateLinkResourceProvisioningStateUpdating), - } -} - -func (s *SharedPrivateLinkResourceProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSharedPrivateLinkResourceProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSharedPrivateLinkResourceProvisioningState(input string) (*SharedPrivateLinkResourceProvisioningState, error) { - vals := map[string]SharedPrivateLinkResourceProvisioningState{ - "deleting": SharedPrivateLinkResourceProvisioningStateDeleting, - "failed": SharedPrivateLinkResourceProvisioningStateFailed, - "incomplete": SharedPrivateLinkResourceProvisioningStateIncomplete, - "succeeded": SharedPrivateLinkResourceProvisioningStateSucceeded, - "updating": SharedPrivateLinkResourceProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SharedPrivateLinkResourceProvisioningState(input) - return &out, nil -} - -type SharedPrivateLinkResourceStatus string - -const ( - SharedPrivateLinkResourceStatusApproved SharedPrivateLinkResourceStatus = "Approved" - SharedPrivateLinkResourceStatusDisconnected SharedPrivateLinkResourceStatus = "Disconnected" - SharedPrivateLinkResourceStatusPending SharedPrivateLinkResourceStatus = "Pending" - SharedPrivateLinkResourceStatusRejected SharedPrivateLinkResourceStatus = "Rejected" -) - -func PossibleValuesForSharedPrivateLinkResourceStatus() []string { - return []string{ - string(SharedPrivateLinkResourceStatusApproved), - string(SharedPrivateLinkResourceStatusDisconnected), - string(SharedPrivateLinkResourceStatusPending), - string(SharedPrivateLinkResourceStatusRejected), - } -} - -func (s *SharedPrivateLinkResourceStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSharedPrivateLinkResourceStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSharedPrivateLinkResourceStatus(input string) (*SharedPrivateLinkResourceStatus, error) { - vals := map[string]SharedPrivateLinkResourceStatus{ - "approved": SharedPrivateLinkResourceStatusApproved, - "disconnected": SharedPrivateLinkResourceStatusDisconnected, - "pending": SharedPrivateLinkResourceStatusPending, - "rejected": SharedPrivateLinkResourceStatusRejected, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SharedPrivateLinkResourceStatus(input) - return &out, nil -} - -type SkuName string - -const ( - SkuNameBasic SkuName = "basic" - SkuNameFree SkuName = "free" - SkuNameStandard SkuName = "standard" - SkuNameStandardThree SkuName = "standard3" - SkuNameStandardTwo SkuName = "standard2" - SkuNameStorageOptimizedLOne SkuName = "storage_optimized_l1" - SkuNameStorageOptimizedLTwo SkuName = "storage_optimized_l2" -) - -func PossibleValuesForSkuName() []string { - return []string{ - string(SkuNameBasic), - string(SkuNameFree), - string(SkuNameStandard), - string(SkuNameStandardThree), - string(SkuNameStandardTwo), - string(SkuNameStorageOptimizedLOne), - string(SkuNameStorageOptimizedLTwo), - } -} - -func (s *SkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSkuName(input string) (*SkuName, error) { - vals := map[string]SkuName{ - "basic": SkuNameBasic, - "free": SkuNameFree, - "standard": SkuNameStandard, - "standard3": SkuNameStandardThree, - "standard2": SkuNameStandardTwo, - "storage_optimized_l1": SkuNameStorageOptimizedLOne, - "storage_optimized_l2": SkuNameStorageOptimizedLTwo, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SkuName(input) - return &out, nil -} - -type UnavailableNameReason string - -const ( - UnavailableNameReasonAlreadyExists UnavailableNameReason = "AlreadyExists" - UnavailableNameReasonInvalid UnavailableNameReason = "Invalid" -) - -func PossibleValuesForUnavailableNameReason() []string { - return []string{ - string(UnavailableNameReasonAlreadyExists), - string(UnavailableNameReasonInvalid), - } -} - -func (s *UnavailableNameReason) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseUnavailableNameReason(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseUnavailableNameReason(input string) (*UnavailableNameReason, error) { - vals := map[string]UnavailableNameReason{ - "alreadyexists": UnavailableNameReasonAlreadyExists, - "invalid": UnavailableNameReasonInvalid, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := UnavailableNameReason(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_networkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_networkruleset.go deleted file mode 100644 index 31dc556cd593..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_networkruleset.go +++ /dev/null @@ -1,8 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkRuleSet struct { - IPRules *[]IPRule `json:"ipRules,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchservice.go deleted file mode 100644 index 898ff657157d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchservice.go +++ /dev/null @@ -1,19 +0,0 @@ -package services - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SearchService struct { - Id *string `json:"id,omitempty"` - Identity *identity.SystemAssigned `json:"identity,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties *SearchServiceProperties `json:"properties,omitempty"` - Sku *Sku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchserviceproperties.go deleted file mode 100644 index 47b86f53b3d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchserviceproperties.go +++ /dev/null @@ -1,20 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SearchServiceProperties struct { - AuthOptions *DataPlaneAuthOptions `json:"authOptions,omitempty"` - DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` - EncryptionWithCmk *EncryptionWithCmk `json:"encryptionWithCmk,omitempty"` - HostingMode *HostingMode `json:"hostingMode,omitempty"` - NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"` - PartitionCount *int64 `json:"partitionCount,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` - ReplicaCount *int64 `json:"replicaCount,omitempty"` - SharedPrivateLinkResources *[]SharedPrivateLinkResource `json:"sharedPrivateLinkResources,omitempty"` - Status *SearchServiceStatus `json:"status,omitempty"` - StatusDetails *string `json:"statusDetails,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchserviceupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchserviceupdate.go deleted file mode 100644 index f5dcf479b4e7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_searchserviceupdate.go +++ /dev/null @@ -1,19 +0,0 @@ -package services - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SearchServiceUpdate struct { - Id *string `json:"id,omitempty"` - Identity *identity.SystemAssigned `json:"identity,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SearchServiceProperties `json:"properties,omitempty"` - Sku *Sku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/README.md deleted file mode 100644 index 253d4b6c22b1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/README.md +++ /dev/null @@ -1,146 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services` Documentation - -The `services` SDK allows for interaction with Azure Resource Manager `search` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services" -``` - - -### Client Initialization - -```go -client := services.NewServicesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ServicesClient.CheckNameAvailability` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -payload := services.CheckNameAvailabilityInput{ - // ... -} - - -read, err := client.CheckNameAvailability(ctx, id, payload, services.DefaultCheckNameAvailabilityOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ServicesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") - -payload := services.SearchService{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload, services.DefaultCreateOrUpdateOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `ServicesClient.Delete` - -```go -ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") - -read, err := client.Delete(ctx, id, services.DefaultDeleteOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ServicesClient.Get` - -```go -ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") - -read, err := client.Get(ctx, id, services.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ServicesClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id, services.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id, services.DefaultListByResourceGroupOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ServicesClient.ListBySubscription` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListBySubscription(ctx, id, services.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination -items, err := client.ListBySubscriptionComplete(ctx, id, services.DefaultListBySubscriptionOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ServicesClient.Update` - -```go -ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") - -payload := services.SearchServiceUpdate{ - // ... -} - - -read, err := client.Update(ctx, id, payload, services.DefaultUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/client.go deleted file mode 100644 index 24dd876692e1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package services - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServicesClient struct { - Client *resourcemanager.Client -} - -func NewServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*ServicesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "services", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ServicesClient: %+v", err) - } - - return &ServicesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/id_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/id_searchservice.go deleted file mode 100644 index 1cb359dc9959..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/id_searchservice.go +++ /dev/null @@ -1,130 +0,0 @@ -package services - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&SearchServiceId{}) -} - -var _ resourceids.ResourceId = &SearchServiceId{} - -// SearchServiceId is a struct representing the Resource ID for a Search Service -type SearchServiceId struct { - SubscriptionId string - ResourceGroupName string - SearchServiceName string -} - -// NewSearchServiceID returns a new SearchServiceId struct -func NewSearchServiceID(subscriptionId string, resourceGroupName string, searchServiceName string) SearchServiceId { - return SearchServiceId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - SearchServiceName: searchServiceName, - } -} - -// ParseSearchServiceID parses 'input' into a SearchServiceId -func ParseSearchServiceID(input string) (*SearchServiceId, error) { - parser := resourceids.NewParserFromResourceIdType(&SearchServiceId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := SearchServiceId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseSearchServiceIDInsensitively parses 'input' case-insensitively into a SearchServiceId -// note: this method should only be used for API response data and not user input -func ParseSearchServiceIDInsensitively(input string) (*SearchServiceId, error) { - parser := resourceids.NewParserFromResourceIdType(&SearchServiceId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := SearchServiceId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *SearchServiceId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.SearchServiceName, ok = input.Parsed["searchServiceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "searchServiceName", input) - } - - return nil -} - -// ValidateSearchServiceID checks that 'input' can be parsed as a Search Service ID -func ValidateSearchServiceID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseSearchServiceID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Search Service ID -func (id SearchServiceId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Search/searchServices/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SearchServiceName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Search Service ID -func (id SearchServiceId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftSearch", "Microsoft.Search", "Microsoft.Search"), - resourceids.StaticSegment("staticSearchServices", "searchServices", "searchServices"), - resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceName"), - } -} - -// String returns a human-readable description of this Search Service ID -func (id SearchServiceId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Search Service Name: %q", id.SearchServiceName), - } - return fmt.Sprintf("Search Service (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_checknameavailability.go deleted file mode 100644 index fc2d16f5577b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_checknameavailability.go +++ /dev/null @@ -1,88 +0,0 @@ -package services - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CheckNameAvailabilityOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *CheckNameAvailabilityOutput -} - -type CheckNameAvailabilityOperationOptions struct { - XMsClientRequestId *string -} - -func DefaultCheckNameAvailabilityOperationOptions() CheckNameAvailabilityOperationOptions { - return CheckNameAvailabilityOperationOptions{} -} - -func (o CheckNameAvailabilityOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - if o.XMsClientRequestId != nil { - out.Append("x-ms-client-request-id", fmt.Sprintf("%v", *o.XMsClientRequestId)) - } - return &out -} - -func (o CheckNameAvailabilityOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o CheckNameAvailabilityOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - - return &out -} - -// CheckNameAvailability ... -func (c ServicesClient) CheckNameAvailability(ctx context.Context, id commonids.SubscriptionId, input CheckNameAvailabilityInput, options CheckNameAvailabilityOperationOptions) (result CheckNameAvailabilityOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPost, - OptionsObject: options, - Path: fmt.Sprintf("%s/providers/Microsoft.Search/checkNameAvailability", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model CheckNameAvailabilityOutput - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_createorupdate.go deleted file mode 100644 index eb913bcdc6bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_createorupdate.go +++ /dev/null @@ -1,104 +0,0 @@ -package services - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *SearchService -} - -type CreateOrUpdateOperationOptions struct { - XMsClientRequestId *string -} - -func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { - return CreateOrUpdateOperationOptions{} -} - -func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - if o.XMsClientRequestId != nil { - out.Append("x-ms-client-request-id", fmt.Sprintf("%v", *o.XMsClientRequestId)) - } - return &out -} - -func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - - return &out -} - -// CreateOrUpdate ... -func (c ServicesClient) CreateOrUpdate(ctx context.Context, id SearchServiceId, input SearchService, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c ServicesClient) CreateOrUpdateThenPoll(ctx context.Context, id SearchServiceId, input SearchService, options CreateOrUpdateOperationOptions) error { - result, err := c.CreateOrUpdate(ctx, id, input, options) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_delete.go deleted file mode 100644 index da3e636b27e3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_delete.go +++ /dev/null @@ -1,77 +0,0 @@ -package services - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData -} - -type DeleteOperationOptions struct { - XMsClientRequestId *string -} - -func DefaultDeleteOperationOptions() DeleteOperationOptions { - return DeleteOperationOptions{} -} - -func (o DeleteOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - if o.XMsClientRequestId != nil { - out.Append("x-ms-client-request-id", fmt.Sprintf("%v", *o.XMsClientRequestId)) - } - return &out -} - -func (o DeleteOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o DeleteOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - - return &out -} - -// Delete ... -func (c ServicesClient) Delete(ctx context.Context, id SearchServiceId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_get.go deleted file mode 100644 index 7d3bc50da984..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_get.go +++ /dev/null @@ -1,83 +0,0 @@ -package services - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *SearchService -} - -type GetOperationOptions struct { - XMsClientRequestId *string -} - -func DefaultGetOperationOptions() GetOperationOptions { - return GetOperationOptions{} -} - -func (o GetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - if o.XMsClientRequestId != nil { - out.Append("x-ms-client-request-id", fmt.Sprintf("%v", *o.XMsClientRequestId)) - } - return &out -} - -func (o GetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - - return &out -} - -// Get ... -func (c ServicesClient) Get(ctx context.Context, id SearchServiceId, options GetOperationOptions) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model SearchService - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go deleted file mode 100644 index e27921b39d4f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go +++ /dev/null @@ -1,135 +0,0 @@ -package services - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListByResourceGroupOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]SearchService -} - -type ListByResourceGroupCompleteResult struct { - LatestHttpResponse *http.Response - Items []SearchService -} - -type ListByResourceGroupOperationOptions struct { - XMsClientRequestId *string -} - -func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions { - return ListByResourceGroupOperationOptions{} -} - -func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - if o.XMsClientRequestId != nil { - out.Append("x-ms-client-request-id", fmt.Sprintf("%v", *o.XMsClientRequestId)) - } - return &out -} - -func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - - return &out -} - -type ListByResourceGroupCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListByResourceGroup ... -func (c ServicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ListByResourceGroupCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Search/searchServices", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]SearchService `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListByResourceGroupComplete retrieves all the results into a single object -func (c ServicesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (ListByResourceGroupCompleteResult, error) { - return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, options, SearchServiceOperationPredicate{}) -} - -// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ServicesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions, predicate SearchServiceOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { - items := make([]SearchService, 0) - - resp, err := c.ListByResourceGroup(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListByResourceGroupCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbysubscription.go deleted file mode 100644 index c72273bc4d86..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbysubscription.go +++ /dev/null @@ -1,135 +0,0 @@ -package services - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListBySubscriptionOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]SearchService -} - -type ListBySubscriptionCompleteResult struct { - LatestHttpResponse *http.Response - Items []SearchService -} - -type ListBySubscriptionOperationOptions struct { - XMsClientRequestId *string -} - -func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions { - return ListBySubscriptionOperationOptions{} -} - -func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - if o.XMsClientRequestId != nil { - out.Append("x-ms-client-request-id", fmt.Sprintf("%v", *o.XMsClientRequestId)) - } - return &out -} - -func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - - return &out -} - -type ListBySubscriptionCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListBySubscription ... -func (c ServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ListBySubscriptionCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Search/searchServices", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]SearchService `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListBySubscriptionComplete retrieves all the results into a single object -func (c ServicesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (ListBySubscriptionCompleteResult, error) { - return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, options, SearchServiceOperationPredicate{}) -} - -// ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ServicesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions, predicate SearchServiceOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { - items := make([]SearchService, 0) - - resp, err := c.ListBySubscription(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListBySubscriptionCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_update.go deleted file mode 100644 index 2fcfddaf54e3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_update.go +++ /dev/null @@ -1,87 +0,0 @@ -package services - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *SearchService -} - -type UpdateOperationOptions struct { - XMsClientRequestId *string -} - -func DefaultUpdateOperationOptions() UpdateOperationOptions { - return UpdateOperationOptions{} -} - -func (o UpdateOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - if o.XMsClientRequestId != nil { - out.Append("x-ms-client-request-id", fmt.Sprintf("%v", *o.XMsClientRequestId)) - } - return &out -} - -func (o UpdateOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o UpdateOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - - return &out -} - -// Update ... -func (c ServicesClient) Update(ctx context.Context, id SearchServiceId, input SearchServiceUpdate, options UpdateOperationOptions) (result UpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model SearchService - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_checknameavailabilityinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_checknameavailabilityinput.go deleted file mode 100644 index a0c8c13c73a2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_checknameavailabilityinput.go +++ /dev/null @@ -1,9 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CheckNameAvailabilityInput struct { - Name string `json:"name"` - Type ResourceType `json:"type"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_checknameavailabilityoutput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_checknameavailabilityoutput.go deleted file mode 100644 index f10992a6cde3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_checknameavailabilityoutput.go +++ /dev/null @@ -1,10 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CheckNameAvailabilityOutput struct { - Message *string `json:"message,omitempty"` - NameAvailable *bool `json:"nameAvailable,omitempty"` - Reason *UnavailableNameReason `json:"reason,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_dataplaneaadorapikeyauthoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_dataplaneaadorapikeyauthoption.go deleted file mode 100644 index aa7d26142fb9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_dataplaneaadorapikeyauthoption.go +++ /dev/null @@ -1,8 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DataPlaneAadOrApiKeyAuthOption struct { - AadAuthFailureMode *AadAuthFailureMode `json:"aadAuthFailureMode,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_dataplaneauthoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_dataplaneauthoptions.go deleted file mode 100644 index 7a32d0d1f1d2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_dataplaneauthoptions.go +++ /dev/null @@ -1,9 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DataPlaneAuthOptions struct { - AadOrApiKey *DataPlaneAadOrApiKeyAuthOption `json:"aadOrApiKey,omitempty"` - ApiKeyOnly *interface{} `json:"apiKeyOnly,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_encryptionwithcmk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_encryptionwithcmk.go deleted file mode 100644 index 6f4bfcca62f0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_encryptionwithcmk.go +++ /dev/null @@ -1,9 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EncryptionWithCmk struct { - EncryptionComplianceStatus *SearchEncryptionComplianceStatus `json:"encryptionComplianceStatus,omitempty"` - Enforcement *SearchEncryptionWithCmk `json:"enforcement,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_iprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_iprule.go deleted file mode 100644 index f05c1d347f14..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_iprule.go +++ /dev/null @@ -1,8 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPRule struct { - Value *string `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnection.go deleted file mode 100644 index bb3fe5c797d0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnection.go +++ /dev/null @@ -1,11 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnection struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionproperties.go deleted file mode 100644 index 2e955f64b7fc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnectionProperties struct { - GroupId *string `json:"groupId,omitempty"` - PrivateEndpoint *PrivateEndpointConnectionPropertiesPrivateEndpoint `json:"privateEndpoint,omitempty"` - PrivateLinkServiceConnectionState *PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - ProvisioningState *PrivateLinkServiceConnectionProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionpropertiesprivateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionpropertiesprivateendpoint.go deleted file mode 100644 index ba85df04a419..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionpropertiesprivateendpoint.go +++ /dev/null @@ -1,8 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnectionPropertiesPrivateEndpoint struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionpropertiesprivatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionpropertiesprivatelinkserviceconnectionstate.go deleted file mode 100644 index 594793a1615b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_privateendpointconnectionpropertiesprivatelinkserviceconnectionstate.go +++ /dev/null @@ -1,10 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState struct { - ActionsRequired *string `json:"actionsRequired,omitempty"` - Description *string `json:"description,omitempty"` - Status *PrivateLinkServiceConnectionStatus `json:"status,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchservice.go deleted file mode 100644 index 898ff657157d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchservice.go +++ /dev/null @@ -1,19 +0,0 @@ -package services - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SearchService struct { - Id *string `json:"id,omitempty"` - Identity *identity.SystemAssigned `json:"identity,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties *SearchServiceProperties `json:"properties,omitempty"` - Sku *Sku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchserviceproperties.go deleted file mode 100644 index 0ac4e446a4bc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchserviceproperties.go +++ /dev/null @@ -1,21 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SearchServiceProperties struct { - AuthOptions *DataPlaneAuthOptions `json:"authOptions,omitempty"` - DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` - EncryptionWithCmk *EncryptionWithCmk `json:"encryptionWithCmk,omitempty"` - HostingMode *HostingMode `json:"hostingMode,omitempty"` - NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"` - PartitionCount *int64 `json:"partitionCount,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` - ReplicaCount *int64 `json:"replicaCount,omitempty"` - SemanticSearch *SearchSemanticSearch `json:"semanticSearch,omitempty"` - SharedPrivateLinkResources *[]SharedPrivateLinkResource `json:"sharedPrivateLinkResources,omitempty"` - Status *SearchServiceStatus `json:"status,omitempty"` - StatusDetails *string `json:"statusDetails,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchserviceupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchserviceupdate.go deleted file mode 100644 index f5dcf479b4e7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_searchserviceupdate.go +++ /dev/null @@ -1,19 +0,0 @@ -package services - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SearchServiceUpdate struct { - Id *string `json:"id,omitempty"` - Identity *identity.SystemAssigned `json:"identity,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SearchServiceProperties `json:"properties,omitempty"` - Sku *Sku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sharedprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sharedprivatelinkresource.go deleted file mode 100644 index 2052d81b1cb9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sharedprivatelinkresource.go +++ /dev/null @@ -1,11 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SharedPrivateLinkResource struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SharedPrivateLinkResourceProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sharedprivatelinkresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sharedprivatelinkresourceproperties.go deleted file mode 100644 index dcfbd9376451..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sharedprivatelinkresourceproperties.go +++ /dev/null @@ -1,13 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SharedPrivateLinkResourceProperties struct { - GroupId *string `json:"groupId,omitempty"` - PrivateLinkResourceId *string `json:"privateLinkResourceId,omitempty"` - ProvisioningState *SharedPrivateLinkResourceProvisioningState `json:"provisioningState,omitempty"` - RequestMessage *string `json:"requestMessage,omitempty"` - ResourceRegion *string `json:"resourceRegion,omitempty"` - Status *SharedPrivateLinkResourceStatus `json:"status,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sku.go deleted file mode 100644 index 043547ca6d49..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_sku.go +++ /dev/null @@ -1,8 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Sku struct { - Name *SkuName `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/predicates.go deleted file mode 100644 index 8743fe1ac718..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SearchServiceOperationPredicate struct { - Id *string - Location *string - Name *string - Type *string -} - -func (p SearchServiceOperationPredicate) Matches(input SearchService) bool { - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && *p.Location != input.Location { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/version.go deleted file mode 100644 index ee94c26885ed..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package services - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/services/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/README.md index 2f004f6143c6..82a82a5f6481 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys` Documentation -The `adminkeys` SDK allows for interaction with Azure Resource Manager `search` (API Version `2023-11-01`). +The `adminkeys` SDK allows for interaction with Azure Resource Manager `search` (API Version `2024-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys" +import "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_keykind.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/id_keykind.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_keykind.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/id_keykind.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/id_searchservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_searchservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/id_searchservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_regenerate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/method_regenerate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_regenerate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/method_regenerate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/model_adminkeyresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/model_adminkeyresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/model_adminkeyresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/model_adminkeyresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/version.go similarity index 65% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/version.go index 3611d975f09e..af7cd853fdaa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys/version.go @@ -3,8 +3,8 @@ package adminkeys // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-06-01-preview" func userAgent() string { - return "hashicorp/go-azure-sdk/adminkeys/2023-11-01" + return "hashicorp/go-azure-sdk/adminkeys/2024-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/README.md index 5ec7b585c957..5e1b629c4cca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys` Documentation -The `querykeys` SDK allows for interaction with Azure Resource Manager `search` (API Version `2023-11-01`). +The `querykeys` SDK allows for interaction with Azure Resource Manager `search` (API Version `2024-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys" +import "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_createquerykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/id_createquerykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_createquerykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/id_createquerykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_deletequerykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/id_deletequerykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_deletequerykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/id_deletequerykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/id_searchservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_searchservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/id_searchservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/method_listbysearchservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/method_listbysearchservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/model_querykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/model_querykey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/model_querykey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/model_querykey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/version.go similarity index 65% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/version.go index 45098cf520c7..39441cc58a79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys/version.go @@ -3,8 +3,8 @@ package querykeys // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-06-01-preview" func userAgent() string { - return "hashicorp/go-azure-sdk/querykeys/2023-11-01" + return "hashicorp/go-azure-sdk/querykeys/2024-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/README.md index bb1ec3448502..3b6ee6af0483 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services` Documentation -The `services` SDK allows for interaction with Azure Resource Manager `search` (API Version `2022-09-01`). +The `services` SDK allows for interaction with Azure Resource Manager `search` (API Version `2024-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services" +import "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/constants.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/constants.go index 939810fadf2e..681344f8fbad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/constants.go @@ -194,9 +194,9 @@ func parsePrivateLinkServiceConnectionStatus(input string) (*PrivateLinkServiceC type ProvisioningState string const ( - ProvisioningStateFailed ProvisioningState = "failed" - ProvisioningStateProvisioning ProvisioningState = "provisioning" - ProvisioningStateSucceeded ProvisioningState = "succeeded" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateProvisioning ProvisioningState = "Provisioning" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" ) func PossibleValuesForProvisioningState() []string { @@ -314,6 +314,88 @@ func parseResourceType(input string) (*ResourceType, error) { return &out, nil } +type SearchBypass string + +const ( + SearchBypassAzurePortal SearchBypass = "AzurePortal" + SearchBypassAzureServices SearchBypass = "AzureServices" + SearchBypassNone SearchBypass = "None" +) + +func PossibleValuesForSearchBypass() []string { + return []string{ + string(SearchBypassAzurePortal), + string(SearchBypassAzureServices), + string(SearchBypassNone), + } +} + +func (s *SearchBypass) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSearchBypass(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSearchBypass(input string) (*SearchBypass, error) { + vals := map[string]SearchBypass{ + "azureportal": SearchBypassAzurePortal, + "azureservices": SearchBypassAzureServices, + "none": SearchBypassNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SearchBypass(input) + return &out, nil +} + +type SearchDisabledDataExfiltrationOption string + +const ( + SearchDisabledDataExfiltrationOptionAll SearchDisabledDataExfiltrationOption = "All" +) + +func PossibleValuesForSearchDisabledDataExfiltrationOption() []string { + return []string{ + string(SearchDisabledDataExfiltrationOptionAll), + } +} + +func (s *SearchDisabledDataExfiltrationOption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSearchDisabledDataExfiltrationOption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSearchDisabledDataExfiltrationOption(input string) (*SearchDisabledDataExfiltrationOption, error) { + vals := map[string]SearchDisabledDataExfiltrationOption{ + "all": SearchDisabledDataExfiltrationOptionAll, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SearchDisabledDataExfiltrationOption(input) + return &out, nil +} + type SearchEncryptionComplianceStatus string const ( @@ -452,6 +534,7 @@ const ( SearchServiceStatusError SearchServiceStatus = "error" SearchServiceStatusProvisioning SearchServiceStatus = "provisioning" SearchServiceStatusRunning SearchServiceStatus = "running" + SearchServiceStatusStopped SearchServiceStatus = "stopped" ) func PossibleValuesForSearchServiceStatus() []string { @@ -462,6 +545,7 @@ func PossibleValuesForSearchServiceStatus() []string { string(SearchServiceStatusError), string(SearchServiceStatusProvisioning), string(SearchServiceStatusRunning), + string(SearchServiceStatusStopped), } } @@ -486,6 +570,7 @@ func parseSearchServiceStatus(input string) (*SearchServiceStatus, error) { "error": SearchServiceStatusError, "provisioning": SearchServiceStatusProvisioning, "running": SearchServiceStatusRunning, + "stopped": SearchServiceStatusStopped, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/id_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/id_searchservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/id_searchservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/id_searchservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_checknameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_checknameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_checknameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_listbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_listbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_checknameavailabilityinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_checknameavailabilityinput.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_checknameavailabilityinput.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_checknameavailabilityinput.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_checknameavailabilityoutput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_checknameavailabilityoutput.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_checknameavailabilityoutput.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_checknameavailabilityoutput.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_dataplaneaadorapikeyauthoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_dataplaneaadorapikeyauthoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_dataplaneaadorapikeyauthoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_dataplaneaadorapikeyauthoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_dataplaneauthoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_dataplaneauthoptions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_dataplaneauthoptions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_dataplaneauthoptions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_encryptionwithcmk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_encryptionwithcmk.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_encryptionwithcmk.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_encryptionwithcmk.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_iprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_iprule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_iprule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_iprule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_networkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_networkruleset.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_networkruleset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_networkruleset.go index 31dc556cd593..eaba6740a80a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/model_networkruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_networkruleset.go @@ -4,5 +4,6 @@ package services // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type NetworkRuleSet struct { - IPRules *[]IPRule `json:"ipRules,omitempty"` + Bypass *SearchBypass `json:"bypass,omitempty"` + IPRules *[]IPRule `json:"ipRules,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_privateendpointconnectionpropertiesprivateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_privateendpointconnectionpropertiesprivateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_privateendpointconnectionpropertiesprivateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_privateendpointconnectionpropertiesprivateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_privateendpointconnectionpropertiesprivatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_privateendpointconnectionpropertiesprivatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_privateendpointconnectionpropertiesprivatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_privateendpointconnectionpropertiesprivatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchservice.go new file mode 100644 index 000000000000..6193f974ae0b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchservice.go @@ -0,0 +1,19 @@ +package services + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SearchService struct { + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *SearchServiceProperties `json:"properties,omitempty"` + Sku *Sku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchserviceproperties.go new file mode 100644 index 000000000000..a6314f4a5912 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchserviceproperties.go @@ -0,0 +1,23 @@ +package services + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SearchServiceProperties struct { + AuthOptions *DataPlaneAuthOptions `json:"authOptions,omitempty"` + DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + DisabledDataExfiltrationOptions *[]SearchDisabledDataExfiltrationOption `json:"disabledDataExfiltrationOptions,omitempty"` + ETag *string `json:"eTag,omitempty"` + EncryptionWithCmk *EncryptionWithCmk `json:"encryptionWithCmk,omitempty"` + HostingMode *HostingMode `json:"hostingMode,omitempty"` + NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"` + PartitionCount *int64 `json:"partitionCount,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + ReplicaCount *int64 `json:"replicaCount,omitempty"` + SemanticSearch *SearchSemanticSearch `json:"semanticSearch,omitempty"` + SharedPrivateLinkResources *[]SharedPrivateLinkResource `json:"sharedPrivateLinkResources,omitempty"` + Status *SearchServiceStatus `json:"status,omitempty"` + StatusDetails *string `json:"statusDetails,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchserviceupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchserviceupdate.go new file mode 100644 index 000000000000..d80e077366c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_searchserviceupdate.go @@ -0,0 +1,19 @@ +package services + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SearchServiceUpdate struct { + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SearchServiceProperties `json:"properties,omitempty"` + Sku *Sku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_sharedprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_sharedprivatelinkresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_sharedprivatelinkresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_sharedprivatelinkresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_sharedprivatelinkresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_sharedprivatelinkresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_sharedprivatelinkresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_sharedprivatelinkresourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/version.go similarity index 65% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/version.go index a9afc35316d1..04cd96be6f57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services/version.go @@ -3,8 +3,8 @@ package services // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-09-01" +const defaultApiVersion = "2024-06-01-preview" func userAgent() string { - return "hashicorp/go-azure-sdk/services/2022-09-01" + return "hashicorp/go-azure-sdk/services/2024-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/README.md index 8f8f73557b8c..72fa4f7fba08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources` Documentation -The `sharedprivatelinkresources` SDK allows for interaction with Azure Resource Manager `search` (API Version `2023-11-01`). +The `sharedprivatelinkresources` SDK allows for interaction with Azure Resource Manager `search` (API Version `2024-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources" +import "github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/id_searchservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_searchservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/id_searchservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_sharedprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/id_sharedprivatelinkresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_sharedprivatelinkresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/id_sharedprivatelinkresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/method_listbyservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_listbyservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/method_listbyservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/model_sharedprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/model_sharedprivatelinkresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/model_sharedprivatelinkresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/model_sharedprivatelinkresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/model_sharedprivatelinkresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/model_sharedprivatelinkresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/model_sharedprivatelinkresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/model_sharedprivatelinkresourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/version.go similarity index 63% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/version.go index 31339f9fed01..b4bee4d183c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources/version.go @@ -3,8 +3,8 @@ package sharedprivatelinkresources // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-06-01-preview" func userAgent() string { - return "hashicorp/go-azure-sdk/sharedprivatelinkresources/2023-11-01" + return "hashicorp/go-azure-sdk/sharedprivatelinkresources/2024-06-01-preview" } diff --git a/vendor/modules.txt b/vendor/modules.txt index 6ef0f775e92f..3b8df9023da3 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -994,11 +994,10 @@ github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/provider github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags -github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services -github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys -github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys -github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services -github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources +github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/adminkeys +github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/querykeys +github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/services +github.com/hashicorp/go-azure-sdk/resource-manager/search/2024-06-01-preview/sharedprivatelinkresources github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings diff --git a/website/docs/d/search_service.html.markdown b/website/docs/d/search_service.html.markdown index 795657833859..414cc0938726 100644 --- a/website/docs/d/search_service.html.markdown +++ b/website/docs/d/search_service.html.markdown @@ -66,6 +66,8 @@ An `identity` block exports the following: * `type` - The identity type of this Managed Service Identity. +* `identity_ids` - The list of User Assigned Managed Service Identity IDs assigned to this Search Service. + --- A `query_keys` block exports the following: @@ -74,14 +76,6 @@ A `query_keys` block exports the following: * `name` - The name of this Query Key. ---- - -A `identity` block exports the following: - -* `principal_id` - The (Client) ID of the Service Principal. - -* `tenant_id` - The ID of the Tenant the Service Principal is assigned in. - ## Timeouts The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: diff --git a/website/docs/r/search_service.html.markdown b/website/docs/r/search_service.html.markdown index 3cff1397cb1d..1bc39909ae84 100644 --- a/website/docs/r/search_service.html.markdown +++ b/website/docs/r/search_service.html.markdown @@ -118,7 +118,9 @@ The following arguments are supported: An `identity` block supports the following: -* `type` - (Required) Specifies the type of Managed Service Identity that should be configured on this Search Service. The only possible value is `SystemAssigned`. +* `type` - (Required) Specifies the type of Managed Service Identity that should be configured on this Search Service. Possible values are `SystemAssigned`, `UserAssigned`, and `SystemAssigned, UserAssigned`. + +* `identity_ids` - (Optional) Specifies the list of User Assigned Managed Service Identity IDs which should be assigned to this Search Service. ---