From 938514cb318f57de14f66095d1f8b31a5c9c6c65 Mon Sep 17 00:00:00 2001 From: Yun Liu Date: Tue, 13 Jun 2023 13:20:17 +0800 Subject: [PATCH] `Kusto` - upgrade API Version from `2022-02-01` to `2022-12-29` (#21961) Co-authored-by: kt --- internal/services/kusto/client/client.go | 16 +- internal/services/kusto/identity.go | 2 +- ...ttached_database_configuration_resource.go | 4 +- ...ed_database_configuration_resource_test.go | 2 +- ...o_cluster_customer_managed_key_resource.go | 2 +- ...kusto_cluster_customer_managed_key_test.go | 2 +- .../kusto/kusto_cluster_data_source.go | 2 +- ...uster_managed_private_endpoint_resource.go | 2 +- ..._managed_private_endpoint_resource_test.go | 2 +- ...o_cluster_principal_assignment_resource.go | 2 +- ...ster_principal_assignment_resource_test.go | 2 +- .../services/kusto/kusto_cluster_resource.go | 199 +++--- .../kusto/kusto_cluster_resource_test.go | 44 +- .../kusto/kusto_data_connection_import.go | 2 +- .../kusto/kusto_database_data_source.go | 2 +- ..._database_principal_assignment_resource.go | 2 +- ...base_principal_assignment_resource_test.go | 2 +- .../services/kusto/kusto_database_resource.go | 4 +- .../kusto/kusto_database_resource_test.go | 2 +- .../kusto/kusto_database_script_resource.go | 6 +- .../kusto_database_script_resource_test.go | 2 +- ...usto_eventgrid_data_connection_resource.go | 4 +- ...eventgrid_data_connection_resource_test.go | 2 +- ...kusto_eventhub_data_connection_resource.go | 4 +- ..._eventhub_data_connection_resource_test.go | 2 +- .../kusto_iothub_data_connection_resource.go | 2 +- ...to_iothub_data_connection_resource_test.go | 2 +- .../attacheddatabaseconfigurations/README.md | 6 +- .../attacheddatabaseconfigurations/client.go | 0 .../constants.go | 3 + .../id_attacheddatabaseconfiguration.go | 0 .../id_cluster.go | 0 .../method_checknameavailability_autorest.go | 0 .../method_createorupdate_autorest.go | 0 .../method_delete_autorest.go | 0 .../method_get_autorest.go | 0 .../method_listbycluster_autorest.go | 0 .../model_attacheddatabaseconfiguration.go | 0 ...attacheddatabaseconfigurationlistresult.go | 0 ...attacheddatabaseconfigurationproperties.go | 2 + ...ddatabaseconfigurationschecknamerequest.go | 0 .../model_checknameresult.go | 0 .../model_tablelevelsharingproperties.go | 2 + .../attacheddatabaseconfigurations/version.go | 2 +- .../clusterprincipalassignments/README.md | 6 +- .../clusterprincipalassignments/client.go | 0 .../clusterprincipalassignments/constants.go | 3 + .../clusterprincipalassignments/id_cluster.go | 0 .../id_principalassignment.go | 0 .../method_checknameavailability_autorest.go | 0 .../method_createorupdate_autorest.go | 0 .../method_delete_autorest.go | 0 .../method_get_autorest.go | 0 .../method_list_autorest.go | 0 .../model_checknameresult.go | 0 .../model_clusterprincipalassignment.go | 0 ...sterprincipalassignmentchecknamerequest.go | 0 ...el_clusterprincipalassignmentlistresult.go | 0 .../model_clusterprincipalproperties.go | 0 .../clusterprincipalassignments/version.go | 2 +- .../kusto/2022-12-29/clusters/README.md | 270 ++++++++ .../kusto/2022-12-29/clusters/client.go | 18 + .../kusto/2022-12-29/clusters/constants.go | 626 ++++++++++++++++++ .../kusto/2022-12-29/clusters/id_cluster.go | 127 ++++ .../kusto/2022-12-29/clusters/id_location.go | 114 ++++ .../method_addlanguageextensions_autorest.go | 79 +++ .../method_checknameavailability_autorest.go | 70 ++ .../method_createorupdate_autorest.go | 113 ++++ .../clusters/method_delete_autorest.go | 78 +++ ...method_detachfollowerdatabases_autorest.go | 79 +++ .../method_diagnosevirtualnetwork_autorest.go | 78 +++ .../clusters/method_get_autorest.go | 68 ++ .../clusters/method_list_autorest.go | 70 ++ .../method_listbyresourcegroup_autorest.go | 70 ++ .../method_listfollowerdatabases_autorest.go | 69 ++ .../method_listlanguageextensions_autorest.go | 69 ++ .../method_listskusbyresource_autorest.go | 69 ++ ...ethod_removelanguageextensions_autorest.go | 79 +++ .../clusters/method_start_autorest.go | 78 +++ .../clusters/method_stop_autorest.go | 78 +++ .../clusters/method_update_autorest.go | 108 +++ .../clusters/model_acceptedaudiences.go | 8 + .../clusters/model_azurecapacity.go | 11 + .../clusters/model_azureresourcesku.go | 10 + .../2022-12-29/clusters/model_azuresku.go | 10 + .../clusters/model_checknameresult.go | 11 + .../2022-12-29/clusters/model_cluster.go | 24 + .../clusters/model_clusterchecknamerequest.go | 9 + .../clusters/model_clusterlistresult.go | 8 + .../clusters/model_clusterproperties.go | 31 + .../clusters/model_clusterupdate.go | 19 + .../model_diagnosevirtualnetworkresult.go | 8 + .../model_followerdatabasedefinition.go | 12 + .../model_followerdatabaselistresult.go | 8 + .../clusters/model_keyvaultproperties.go | 11 + .../clusters/model_languageextension.go | 9 + .../clusters/model_languageextensionslist.go | 8 + .../clusters/model_listresourceskusresult.go | 8 + .../clusters/model_optimizedautoscale.go | 11 + .../model_privateendpointconnection.go | 16 + ...del_privateendpointconnectionproperties.go | 11 + .../clusters/model_privateendpointproperty.go | 8 + ...ivatelinkserviceconnectionstateproperty.go | 10 + .../model_tablelevelsharingproperties.go | 15 + .../clusters/model_trustedexternaltenant.go | 8 + .../model_virtualnetworkconfiguration.go | 10 + .../kusto/2022-12-29/clusters/version.go | 12 + .../databaseprincipalassignments/README.md | 6 +- .../databaseprincipalassignments/client.go | 0 .../databaseprincipalassignments/constants.go | 3 + .../id_database.go | 0 .../id_databaseprincipalassignment.go | 0 .../method_checknameavailability_autorest.go | 0 .../method_createorupdate_autorest.go | 0 .../method_delete_autorest.go | 0 .../method_get_autorest.go | 0 .../method_list_autorest.go | 0 .../model_checknameresult.go | 0 .../model_databaseprincipalassignment.go | 0 ...baseprincipalassignmentchecknamerequest.go | 0 ...l_databaseprincipalassignmentlistresult.go | 0 .../model_databaseprincipalproperties.go | 0 .../databaseprincipalassignments/version.go | 2 +- .../kusto/2022-12-29/databases/README.md | 177 +++++ .../kusto/2022-12-29/databases/client.go | 18 + .../kusto/2022-12-29/databases/constants.go | 294 ++++++++ .../kusto/2022-12-29/databases/id_cluster.go | 127 ++++ .../kusto/2022-12-29/databases/id_database.go | 140 ++++ .../method_addprincipals_autorest.go | 70 ++ .../method_checknameavailability_autorest.go | 70 ++ .../method_createorupdate_autorest.go | 108 +++ .../databases/method_delete_autorest.go | 78 +++ .../databases/method_get_autorest.go | 77 +++ .../method_listbycluster_autorest.go | 69 ++ .../method_listprincipals_autorest.go | 69 ++ .../method_removeprincipals_autorest.go | 70 ++ .../databases/method_update_autorest.go | 108 +++ .../databases/model_checknamerequest.go | 9 + .../databases/model_checknameresult.go | 11 + .../2022-12-29/databases/model_database.go | 56 ++ .../databases/model_databaselistresult.go | 41 ++ .../databases/model_databaseprincipal.go | 14 + .../model_databaseprincipallistrequest.go | 8 + .../model_databaseprincipallistresult.go | 8 + .../databases/model_databasestatistics.go | 8 + .../model_readonlyfollowingdatabase.go | 45 ++ ...del_readonlyfollowingdatabaseproperties.go | 17 + .../databases/model_readwritedatabase.go | 45 ++ .../model_readwritedatabaseproperties.go | 12 + .../model_tablelevelsharingproperties.go | 15 + .../kusto/2022-12-29/databases/version.go | 12 + .../dataconnections/README.md | 6 +- .../dataconnections/client.go | 0 .../dataconnections/constants.go | 6 + .../dataconnections/id_database.go | 0 .../dataconnections/id_dataconnection.go | 0 .../method_checknameavailability_autorest.go | 0 .../method_createorupdate_autorest.go | 0 ...ethod_dataconnectionvalidation_autorest.go | 0 .../dataconnections/method_delete_autorest.go | 0 .../dataconnections/method_get_autorest.go | 0 .../method_listbydatabase_autorest.go | 0 .../dataconnections/method_update_autorest.go | 0 .../dataconnections/model_checknameresult.go | 0 .../model_cosmosdbdataconnection.go | 45 ++ .../model_cosmosdbdataconnectionproperties.go | 34 + .../dataconnections/model_dataconnection.go | 8 + .../model_dataconnectionchecknamerequest.go | 0 .../model_dataconnectionlistresult.go | 0 .../model_dataconnectionvalidation.go | 0 ...odel_dataconnectionvalidationlistresult.go | 0 .../model_dataconnectionvalidationresult.go | 0 .../model_eventgridconnectionproperties.go | 0 .../model_eventgriddataconnection.go | 0 .../model_eventhubconnectionproperties.go | 19 + .../model_eventhubdataconnection.go | 0 .../model_iothubconnectionproperties.go | 19 + .../model_iothubdataconnection.go | 0 .../dataconnections/version.go | 2 +- .../managedprivateendpoints/README.md | 6 +- .../managedprivateendpoints/client.go | 0 .../managedprivateendpoints/constants.go | 3 + .../managedprivateendpoints/id_cluster.go | 0 .../id_managedprivateendpoint.go | 0 .../method_checknameavailability_autorest.go | 0 .../method_createorupdate_autorest.go | 0 .../method_delete_autorest.go | 0 .../method_get_autorest.go | 0 .../method_list_autorest.go | 0 .../method_update_autorest.go | 0 .../model_checknameresult.go | 0 .../model_managedprivateendpoint.go | 0 .../model_managedprivateendpointlistresult.go | 0 .../model_managedprivateendpointproperties.go | 0 ...managedprivateendpointschecknamerequest.go | 0 .../managedprivateendpoints/version.go | 2 +- .../scripts/README.md | 6 +- .../scripts/client.go | 0 .../scripts/constants.go | 3 + .../scripts/id_database.go | 0 .../scripts/id_script.go | 0 .../method_checknameavailability_autorest.go | 0 .../scripts/method_createorupdate_autorest.go | 0 .../scripts/method_delete_autorest.go | 0 .../scripts/method_get_autorest.go | 0 .../scripts/method_listbydatabase_autorest.go | 0 .../scripts/method_update_autorest.go | 0 .../scripts/model_checknameresult.go | 0 .../scripts/model_script.go | 0 .../scripts/model_scriptchecknamerequest.go | 0 .../scripts/model_scriptlistresult.go | 0 .../scripts/model_scriptproperties.go | 0 .../scripts/version.go | 2 +- vendor/modules.txt | 14 +- website/docs/r/kusto_cluster.html.markdown | 4 +- 215 files changed, 4873 insertions(+), 154 deletions(-) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/README.md (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/constants.go (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/id_attacheddatabaseconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/id_cluster.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/method_checknameavailability_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/method_listbycluster_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/model_attacheddatabaseconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationlistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationproperties.go (80%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationschecknamerequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/model_checknameresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/model_tablelevelsharingproperties.go (82%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/attacheddatabaseconfigurations/version.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/README.md (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/constants.go (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/id_cluster.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/id_principalassignment.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/method_checknameavailability_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/model_checknameresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/model_clusterprincipalassignment.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/model_clusterprincipalassignmentchecknamerequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/model_clusterprincipalassignmentlistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/model_clusterprincipalproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/clusterprincipalassignments/version.go (89%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/id_cluster.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/id_location.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_addlanguageextensions_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_checknameavailability_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_createorupdate_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_delete_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_detachfollowerdatabases_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_diagnosevirtualnetwork_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_get_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_list_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listbyresourcegroup_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listfollowerdatabases_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listlanguageextensions_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listskusbyresource_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_removelanguageextensions_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_start_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_stop_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_update_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_acceptedaudiences.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azurecapacity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azureresourcesku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azuresku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_checknameresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_cluster.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterchecknamerequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterlistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_diagnosevirtualnetworkresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_followerdatabasedefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_followerdatabaselistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_keyvaultproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_languageextension.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_languageextensionslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_listresourceskusresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_optimizedautoscale.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointproperty.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privatelinkserviceconnectionstateproperty.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_tablelevelsharingproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_trustedexternaltenant.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_virtualnetworkconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/README.md (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/constants.go (97%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/id_database.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/id_databaseprincipalassignment.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/method_checknameavailability_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/model_checknameresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/model_databaseprincipalassignment.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/model_databaseprincipalassignmentchecknamerequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/model_databaseprincipalassignmentlistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/model_databaseprincipalproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/databaseprincipalassignments/version.go (89%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/id_cluster.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/id_database.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_addprincipals_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_checknameavailability_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_createorupdate_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_delete_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_get_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_listbycluster_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_listprincipals_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_removeprincipals_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_update_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_checknamerequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_checknameresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_database.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaselistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipal.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipallistrequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipallistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databasestatistics.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readonlyfollowingdatabase.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readonlyfollowingdatabaseproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readwritedatabase.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readwritedatabaseproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_tablelevelsharingproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/README.md (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/constants.go (98%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/id_database.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/id_dataconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/method_checknameavailability_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/method_dataconnectionvalidation_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/method_listbydatabase_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/method_update_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_checknameresult.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_cosmosdbdataconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_cosmosdbdataconnectionproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_dataconnection.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_dataconnectionchecknamerequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_dataconnectionlistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_dataconnectionvalidation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_dataconnectionvalidationlistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_dataconnectionvalidationresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_eventgridconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_eventgriddataconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_eventhubconnectionproperties.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_eventhubdataconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_iothubconnectionproperties.go (61%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/model_iothubdataconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/dataconnections/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/constants.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/id_cluster.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/id_managedprivateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/method_checknameavailability_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/method_update_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/model_checknameresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/model_managedprivateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/model_managedprivateendpointlistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/model_managedprivateendpointproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/model_managedprivateendpointschecknamerequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/managedprivateendpoints/version.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/README.md (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/constants.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/id_database.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/id_script.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/method_checknameavailability_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/method_listbydatabase_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/method_update_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/model_checknameresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/model_script.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/model_scriptchecknamerequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/model_scriptlistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/model_scriptproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/{2022-02-01 => 2022-12-29}/scripts/version.go (88%) diff --git a/internal/services/kusto/client/client.go b/internal/services/kusto/client/client.go index 8c39b6b3f489..b91678841f38 100644 --- a/internal/services/kusto/client/client.go +++ b/internal/services/kusto/client/client.go @@ -1,14 +1,14 @@ package client import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databases" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts" // nolint: staticcheck + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts" // nolint: staticcheck "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/kusto/identity.go b/internal/services/kusto/identity.go index dc4983f4a729..1886fd4dbf17 100644 --- a/internal/services/kusto/identity.go +++ b/internal/services/kusto/identity.go @@ -1,7 +1,7 @@ package kusto import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters" // nolint: staticcheck + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters" // nolint: staticcheck "github.com/hashicorp/terraform-provider-azurerm/utils" ) diff --git a/internal/services/kusto/kusto_attached_database_configuration_resource.go b/internal/services/kusto/kusto_attached_database_configuration_resource.go index ac1051addb64..efd94a7c3b77 100644 --- a/internal/services/kusto/kusto_attached_database_configuration_resource.go +++ b/internal/services/kusto/kusto_attached_database_configuration_resource.go @@ -7,8 +7,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/kusto/kusto_attached_database_configuration_resource_test.go b/internal/services/kusto/kusto_attached_database_configuration_resource_test.go index 0b8cea51c1bb..0df0515d74c8 100644 --- a/internal/services/kusto/kusto_attached_database_configuration_resource_test.go +++ b/internal/services/kusto/kusto_attached_database_configuration_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_cluster_customer_managed_key_resource.go b/internal/services/kusto/kusto_cluster_customer_managed_key_resource.go index e7fd62895700..1515bec4fa7f 100644 --- a/internal/services/kusto/kusto_cluster_customer_managed_key_resource.go +++ b/internal/services/kusto/kusto_cluster_customer_managed_key_resource.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/kusto/kusto_cluster_customer_managed_key_test.go b/internal/services/kusto/kusto_cluster_customer_managed_key_test.go index e68db558e157..78f2ea0464d3 100644 --- a/internal/services/kusto/kusto_cluster_customer_managed_key_test.go +++ b/internal/services/kusto/kusto_cluster_customer_managed_key_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_cluster_data_source.go b/internal/services/kusto/kusto_cluster_data_source.go index b0a713543bb6..9d3c5aa58752 100644 --- a/internal/services/kusto/kusto_cluster_data_source.go +++ b/internal/services/kusto/kusto_cluster_data_source.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/kusto/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/kusto/kusto_cluster_managed_private_endpoint_resource.go b/internal/services/kusto/kusto_cluster_managed_private_endpoint_resource.go index ba25ef4db149..659e968a4891 100644 --- a/internal/services/kusto/kusto_cluster_managed_private_endpoint_resource.go +++ b/internal/services/kusto/kusto_cluster_managed_private_endpoint_resource.go @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" diff --git a/internal/services/kusto/kusto_cluster_managed_private_endpoint_resource_test.go b/internal/services/kusto/kusto_cluster_managed_private_endpoint_resource_test.go index d84e077567c3..3f04bf7b597c 100644 --- a/internal/services/kusto/kusto_cluster_managed_private_endpoint_resource_test.go +++ b/internal/services/kusto/kusto_cluster_managed_private_endpoint_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_cluster_principal_assignment_resource.go b/internal/services/kusto/kusto_cluster_principal_assignment_resource.go index 0977f4cbdd40..48601ad581e0 100644 --- a/internal/services/kusto/kusto_cluster_principal_assignment_resource.go +++ b/internal/services/kusto/kusto_cluster_principal_assignment_resource.go @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/kusto/migration" diff --git a/internal/services/kusto/kusto_cluster_principal_assignment_resource_test.go b/internal/services/kusto/kusto_cluster_principal_assignment_resource_test.go index 9e82022f4212..58756d90ec72 100644 --- a/internal/services/kusto/kusto_cluster_principal_assignment_resource_test.go +++ b/internal/services/kusto/kusto_cluster_principal_assignment_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_cluster_resource.go b/internal/services/kusto/kusto_cluster_resource.go index bb5979f8e9ec..5657005830cc 100644 --- a/internal/services/kusto/kusto_cluster_resource.go +++ b/internal/services/kusto/kusto_cluster_resource.go @@ -13,8 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters" - newCluster "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-07-07/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -76,9 +75,7 @@ func resourceKustoCluster() *pluginsdk.Resource { "name": { Type: pluginsdk.TypeString, Required: true, - // using API version later than 2022-07-07 to unblock user access to latest skus. - // next PR will to API version upgrade to version 2022-12-10 and align the api version in kusto. - ValidateFunc: validation.StringInSlice(newCluster.PossibleValuesForAzureSkuName(), + ValidateFunc: validation.StringInSlice(clusters.PossibleValuesForAzureSkuName(), false), }, @@ -167,15 +164,6 @@ func resourceKustoCluster() *pluginsdk.Resource { }, }, - "language_extensions": { - Type: pluginsdk.TypeSet, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringInSlice(clusters.PossibleValuesForLanguageExtensionName(), false), - }, - }, - "engine": { Type: pluginsdk.TypeString, Optional: true, @@ -250,8 +238,35 @@ func resourceKustoCluster() *pluginsdk.Resource { if features.FourPointOhBeta() { s.Schema["engine"].Default = string(clusters.EngineTypeVThree) + s.Schema["language_extensions"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeList, + Optional: true, + ConflictsWith: []string{"language_extensions"}, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringInSlice(clusters.PossibleValuesForLanguageExtensionName(), false), + }, + "image": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringInSlice(clusters.PossibleValuesForLanguageExtensionImageName(), false), + }, + }, + }, + } } else { s.Schema["engine"].Default = string(clusters.EngineTypeVTwo) + s.Schema["language_extensions"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeSet, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringInSlice([]string{"R", "PYTHON", "PYTHON_3.10.8"}, false), + }, + } } return s @@ -352,6 +367,15 @@ func resourceKustoClusterCreateUpdate(d *pluginsdk.ResourceData, meta interface{ } clusterProperties.RestrictOutboundNetworkAccess = &restrictOutboundNetworkAccess + if features.FourPointOhBeta() { + if v, ok := d.GetOk("language_extensions"); ok { + extList := v.([]interface{}) + clusterProperties.LanguageExtensions = expandKustoClusterLanguageExtensionList(extList) + } + } else { + clusterProperties.LanguageExtensions = expandKustoClusterLanguageExtensions(d) + } + expandedIdentity, err := identity.ExpandSystemAndUserAssignedMap(d.Get("identity").([]interface{})) if err != nil { return fmt.Errorf("expanding `identity`: %+v", err) @@ -377,45 +401,6 @@ func resourceKustoClusterCreateUpdate(d *pluginsdk.ResourceData, meta interface{ d.SetId(id.ID()) - if v, ok := d.GetOk("language_extensions"); ok { - languageExtensions := expandKustoClusterLanguageExtensions(v.(*pluginsdk.Set).List()) - - currentLanguageExtensions, err := client.ListLanguageExtensions(ctx, id) - if err != nil { - return fmt.Errorf("retrieving the language extensions on %s: %+v", id, err) - } - - languageExtensionsToAdd := diffLanguageExtensions(*languageExtensions.Value, *currentLanguageExtensions.Model.Value) - if len(languageExtensionsToAdd) > 0 { - languageExtensionsListToAdd := clusters.LanguageExtensionsList{ - Value: &languageExtensionsToAdd, - } - - resp, err := client.AddLanguageExtensions(ctx, id, languageExtensionsListToAdd) - if err != nil { - return fmt.Errorf("adding language extensions to %s: %+v", id, err) - } - if err = resp.Poller.PollUntilDone(); err != nil { - return fmt.Errorf("waiting for the addition of language extensions on %s: %+v", id, err) - } - } - - languageExtensionsToRemove := diffLanguageExtensions(*currentLanguageExtensions.Model.Value, *languageExtensions.Value) - if len(languageExtensionsToRemove) > 0 { - languageExtensionsListToRemove := clusters.LanguageExtensionsList{ - Value: &languageExtensionsToRemove, - } - - removeLanguageExtensionsFuture, err := client.RemoveLanguageExtensions(ctx, id, languageExtensionsListToRemove) - if err != nil { - return fmt.Errorf("removing language extensions from %s: %+v", id, err) - } - if err = removeLanguageExtensionsFuture.Poller.PollUntilDone(); err != nil { - return fmt.Errorf("waiting for the removal of language extensions from %s: %+v", id, err) - } - } - } - return resourceKustoClusterRead(d, meta) } @@ -478,12 +463,17 @@ func resourceKustoClusterRead(d *pluginsdk.ResourceData, meta interface{}) error d.Set("streaming_ingestion_enabled", props.EnableStreamingIngest) d.Set("purge_enabled", props.EnablePurge) d.Set("virtual_network_configuration", flattenKustoClusterVNET(props.VirtualNetworkConfiguration)) - d.Set("language_extensions", flattenKustoClusterLanguageExtensions(props.LanguageExtensions)) d.Set("uri", props.Uri) d.Set("data_ingestion_uri", props.DataIngestionUri) d.Set("engine", string(pointer.From(props.EngineType))) d.Set("public_ip_type", string(pointer.From(props.PublicIPType))) + if features.FourPointOhBeta() { + d.Set("language_extensions", flattenKustoClusterLanguageExtensionList(props.LanguageExtensions)) + } else { + d.Set("language_extensions", flattenKustoClusterLanguageExtensions(props.LanguageExtensions)) + } + } if err := tags.FlattenAndSet(d, model.Tags); err != nil { @@ -596,23 +586,62 @@ func expandKustoClusterVNET(input []interface{}) *clusters.VirtualNetworkConfigu } } -func expandKustoClusterLanguageExtensions(input []interface{}) *clusters.LanguageExtensionsList { - if len(input) == 0 { - return nil +func expandKustoClusterLanguageExtensions(d *pluginsdk.ResourceData) *clusters.LanguageExtensionsList { + if v, ok := d.GetOk("language_extensions"); ok { + extList := v.(*pluginsdk.Set).List() + if len(extList) > 0 { + extensions := make([]clusters.LanguageExtension, 0) + for _, language := range extList { + name := language.(string) + lanExt := clusters.LanguageExtension{} + switch name { + case "R": + n := clusters.LanguageExtensionNameR + lanExt.LanguageExtensionName = &n + imageName := clusters.LanguageExtensionImageNameR + lanExt.LanguageExtensionImageName = &imageName + case "PYTHON": + n := clusters.LanguageExtensionNamePYTHON + lanExt.LanguageExtensionName = &n + imageName := clusters.LanguageExtensionImageNamePythonThreeSixFive + lanExt.LanguageExtensionImageName = &imageName + case "PYTHON_3.10.8": + n := clusters.LanguageExtensionNamePYTHON + lanExt.LanguageExtensionName = &n + imageName := clusters.LanguageExtensionImageNamePythonThreeOneZeroEight + lanExt.LanguageExtensionImageName = &imageName + default: + continue + } + extensions = append(extensions, lanExt) + } + return &clusters.LanguageExtensionsList{ + Value: &extensions, + } + } } + return nil +} - extensions := make([]clusters.LanguageExtension, 0) - for _, language := range input { - name := clusters.LanguageExtensionName(language.(string)) - v := clusters.LanguageExtension{ - LanguageExtensionName: &name, +func expandKustoClusterLanguageExtensionList(input []interface{}) *clusters.LanguageExtensionsList { + if len(input) > 0 { + extensions := make([]clusters.LanguageExtension, 0) + for _, ext := range input { + extMap := ext.(map[string]interface{}) + name := clusters.LanguageExtensionName(extMap["name"].(string)) + image := clusters.LanguageExtensionImageName(extMap["image"].(string)) + lanExt := clusters.LanguageExtension{ + LanguageExtensionName: &name, + LanguageExtensionImageName: &image, + } + extensions = append(extensions, lanExt) + } + return &clusters.LanguageExtensionsList{ + Value: &extensions, } - extensions = append(extensions, v) } - return &clusters.LanguageExtensionsList{ - Value: &extensions, - } + return nil } func flattenKustoClusterSku(sku *clusters.AzureSku) []interface{} { @@ -653,29 +682,39 @@ func flattenKustoClusterLanguageExtensions(extensions *clusters.LanguageExtensio output := make([]interface{}, 0) if extensions.Value != nil { for _, v := range *extensions.Value { - output = append(output, v.LanguageExtensionName) + if v.LanguageExtensionImageName != nil { + switch *v.LanguageExtensionImageName { + case clusters.LanguageExtensionImageNameR: + output = append(output, "R") + case clusters.LanguageExtensionImageNamePythonThreeSixFive: + output = append(output, "PYTHON") + case clusters.LanguageExtensionImageNamePythonThreeOneZeroEight: + output = append(output, "PYTHON_3.10.8") + } + } } } return output } -func diffLanguageExtensions(a, b []clusters.LanguageExtension) []clusters.LanguageExtension { - target := make(map[string]bool) - for _, x := range b { - if x.LanguageExtensionName != nil { - target[string(*x.LanguageExtensionName)] = true - } +func flattenKustoClusterLanguageExtensionList(extensions *clusters.LanguageExtensionsList) []interface{} { + if extensions == nil { + return []interface{}{} } - diff := make([]clusters.LanguageExtension, 0) - for _, x := range a { - if x.LanguageExtensionName != nil { - if _, ok := target[string(*x.LanguageExtensionName)]; !ok { - diff = append(diff, x) - } + output := make([]interface{}, 0) + if extensions.Value != nil { + for _, v := range *extensions.Value { + output = append( + output, + map[string]interface{}{ + "name": string(*v.LanguageExtensionName), + "image": string(*v.LanguageExtensionImageName), + }, + ) } } - return diff + return output } diff --git a/internal/services/kusto/kusto_cluster_resource_test.go b/internal/services/kusto/kusto_cluster_resource_test.go index 2aeb29e257d3..7d622da43870 100644 --- a/internal/services/kusto/kusto_cluster_resource_test.go +++ b/internal/services/kusto/kusto_cluster_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters" "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" @@ -254,6 +254,14 @@ func TestAccKustoCluster_languageExtensions(t *testing.T) { ), }, data.ImportStep(), + { + Config: r.languageExtensionsUpdate(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("language_extensions.#").HasValue("2"), + check.That(data.ResourceName).Key("language_extensions.1").HasValue("R"), + ), + }, { Config: r.languageExtensionsRemove(data), Check: acceptance.ComposeTestCheckFunc( @@ -749,8 +757,8 @@ resource "azurerm_kusto_cluster" "test" { resource_group_name = azurerm_resource_group.test.name sku { - name = "Dev(No SLA)_Standard_D11_v2" - capacity = 1 + name = "Standard_E4d_v4" + capacity = 2 } language_extensions = ["PYTHON", "R"] @@ -758,6 +766,32 @@ resource "azurerm_kusto_cluster" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString) } +func (KustoClusterResource) languageExtensionsUpdate(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} + +resource "azurerm_kusto_cluster" "test" { + name = "acctestkc%s" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + sku { + name = "Standard_E4d_v4" + capacity = 2 + } + + language_extensions = ["PYTHON_3.10.8", "R"] +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString) +} + func (KustoClusterResource) languageExtensionsRemove(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -775,8 +809,8 @@ resource "azurerm_kusto_cluster" "test" { resource_group_name = azurerm_resource_group.test.name sku { - name = "Dev(No SLA)_Standard_D11_v2" - capacity = 1 + name = "Standard_E4d_v4" + capacity = 2 } language_extensions = ["R"] diff --git a/internal/services/kusto/kusto_data_connection_import.go b/internal/services/kusto/kusto_data_connection_import.go index bda9cabf880c..10a2c73f3b1e 100644 --- a/internal/services/kusto/kusto_data_connection_import.go +++ b/internal/services/kusto/kusto_data_connection_import.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections" // nolint: staticcheck + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections" // nolint: staticcheck "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/kusto/kusto_database_data_source.go b/internal/services/kusto/kusto_database_data_source.go index bd7d0dfb9489..2a28b11b24fb 100644 --- a/internal/services/kusto/kusto_database_data_source.go +++ b/internal/services/kusto/kusto_database_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/kusto/parse" kustoValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/kusto/validate" diff --git a/internal/services/kusto/kusto_database_principal_assignment_resource.go b/internal/services/kusto/kusto_database_principal_assignment_resource.go index 165206140e14..d0f26e7e7115 100644 --- a/internal/services/kusto/kusto_database_principal_assignment_resource.go +++ b/internal/services/kusto/kusto_database_principal_assignment_resource.go @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" // nolint: staticcheck "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/kusto/migration" diff --git a/internal/services/kusto/kusto_database_principal_assignment_resource_test.go b/internal/services/kusto/kusto_database_principal_assignment_resource_test.go index 2d0986e611de..94b12424d039 100644 --- a/internal/services/kusto/kusto_database_principal_assignment_resource_test.go +++ b/internal/services/kusto/kusto_database_principal_assignment_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_database_resource.go b/internal/services/kusto/kusto_database_resource.go index 1edc29e7fcda..ef8bb845a628 100644 --- a/internal/services/kusto/kusto_database_resource.go +++ b/internal/services/kusto/kusto_database_resource.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" // nolint: staticcheck "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -109,7 +109,7 @@ func resourceKustoDatabaseCreateUpdate(d *pluginsdk.ResourceData, meta interface Properties: databaseProperties, } - err := client.CreateOrUpdateThenPoll(ctx, id, readWriteDatabase) + err := client.CreateOrUpdateThenPoll(ctx, id, readWriteDatabase, databases.DefaultCreateOrUpdateOperationOptions()) if err != nil { return fmt.Errorf("creating/updating %s: %+v", id, err) } diff --git a/internal/services/kusto/kusto_database_resource_test.go b/internal/services/kusto/kusto_database_resource_test.go index 239603095433..bb32144701ed 100644 --- a/internal/services/kusto/kusto_database_resource_test.go +++ b/internal/services/kusto/kusto_database_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_database_script_resource.go b/internal/services/kusto/kusto_database_script_resource.go index c86cdc412243..7abd1d9dd2be 100644 --- a/internal/services/kusto/kusto_database_script_resource.go +++ b/internal/services/kusto/kusto_database_script_resource.go @@ -6,9 +6,9 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databases" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts" // nolint: staticcheck + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts" // nolint: staticcheck "github.com/hashicorp/go-uuid" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_database_script_resource_test.go b/internal/services/kusto/kusto_database_script_resource_test.go index cf0a8227b256..bfb0c78cfbd7 100644 --- a/internal/services/kusto/kusto_database_script_resource_test.go +++ b/internal/services/kusto/kusto_database_script_resource_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_eventgrid_data_connection_resource.go b/internal/services/kusto/kusto_eventgrid_data_connection_resource.go index a4b923f51eb7..c1533cb72ee9 100644 --- a/internal/services/kusto/kusto_eventgrid_data_connection_resource.go +++ b/internal/services/kusto/kusto_eventgrid_data_connection_resource.go @@ -11,8 +11,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_eventgrid_data_connection_resource_test.go b/internal/services/kusto/kusto_eventgrid_data_connection_resource_test.go index 72930482dc81..d4b43c09af95 100644 --- a/internal/services/kusto/kusto_eventgrid_data_connection_resource_test.go +++ b/internal/services/kusto/kusto_eventgrid_data_connection_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_eventhub_data_connection_resource.go b/internal/services/kusto/kusto_eventhub_data_connection_resource.go index 63f719e9d536..983a7b7fc7ad 100644 --- a/internal/services/kusto/kusto_eventhub_data_connection_resource.go +++ b/internal/services/kusto/kusto_eventhub_data_connection_resource.go @@ -10,8 +10,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_eventhub_data_connection_resource_test.go b/internal/services/kusto/kusto_eventhub_data_connection_resource_test.go index c3c7bfd91f4f..dbd8a3ce7156 100644 --- a/internal/services/kusto/kusto_eventhub_data_connection_resource_test.go +++ b/internal/services/kusto/kusto_eventhub_data_connection_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_iothub_data_connection_resource.go b/internal/services/kusto/kusto_iothub_data_connection_resource.go index 27c3901f724b..7220c4f8d23a 100644 --- a/internal/services/kusto/kusto_iothub_data_connection_resource.go +++ b/internal/services/kusto/kusto_iothub_data_connection_resource.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/kusto/kusto_iothub_data_connection_resource_test.go b/internal/services/kusto/kusto_iothub_data_connection_resource_test.go index 3be626565316..b7c5c8ba359d 100644 --- a/internal/services/kusto/kusto_iothub_data_connection_resource_test.go +++ b/internal/services/kusto/kusto_iothub_data_connection_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections" "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/kusto/2022-02-01/attacheddatabaseconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/README.md index 8f38d74fcd92..d796d762595b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations` Documentation -The `attacheddatabaseconfigurations` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-02-01`). +The `attacheddatabaseconfigurations` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-12-29`). 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/kusto/2022-02-01/attacheddatabaseconfigurations" +import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/constants.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/constants.go index d877a5cadf69..6f113a36d925 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/constants.go @@ -64,6 +64,7 @@ func parseDefaultPrincipalsModificationKind(input string) (*DefaultPrincipalsMod type ProvisioningState string const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" @@ -74,6 +75,7 @@ const ( func PossibleValuesForProvisioningState() []string { return []string{ + string(ProvisioningStateCanceled), string(ProvisioningStateCreating), string(ProvisioningStateDeleting), string(ProvisioningStateFailed), @@ -85,6 +87,7 @@ func PossibleValuesForProvisioningState() []string { func parseProvisioningState(input string) (*ProvisioningState, error) { vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, "creating": ProvisioningStateCreating, "deleting": ProvisioningStateDeleting, "failed": ProvisioningStateFailed, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/id_attacheddatabaseconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/id_attacheddatabaseconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/id_attacheddatabaseconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/id_attacheddatabaseconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/id_cluster.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/id_cluster.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/id_cluster.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/method_checknameavailability_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/method_checknameavailability_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/method_checknameavailability_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/method_checknameavailability_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/method_listbycluster_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/method_listbycluster_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/method_listbycluster_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/method_listbycluster_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_attacheddatabaseconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_attacheddatabaseconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_attacheddatabaseconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_attacheddatabaseconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationproperties.go similarity index 80% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationproperties.go index 7cac0caf0de1..f7b9d2b0614c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationproperties.go @@ -7,6 +7,8 @@ type AttachedDatabaseConfigurationProperties struct { AttachedDatabaseNames *[]string `json:"attachedDatabaseNames,omitempty"` ClusterResourceId string `json:"clusterResourceId"` DatabaseName string `json:"databaseName"` + DatabaseNameOverride *string `json:"databaseNameOverride,omitempty"` + DatabaseNamePrefix *string `json:"databaseNamePrefix,omitempty"` DefaultPrincipalsModificationKind DefaultPrincipalsModificationKind `json:"defaultPrincipalsModificationKind"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` TableLevelSharingProperties *TableLevelSharingProperties `json:"tableLevelSharingProperties,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationschecknamerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationschecknamerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationschecknamerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_attacheddatabaseconfigurationschecknamerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_checknameresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_checknameresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_checknameresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_checknameresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_tablelevelsharingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_tablelevelsharingproperties.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_tablelevelsharingproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_tablelevelsharingproperties.go index 8b5f8f85bdf2..b5369e51352d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/model_tablelevelsharingproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/model_tablelevelsharingproperties.go @@ -6,6 +6,8 @@ package attacheddatabaseconfigurations type TableLevelSharingProperties struct { ExternalTablesToExclude *[]string `json:"externalTablesToExclude,omitempty"` ExternalTablesToInclude *[]string `json:"externalTablesToInclude,omitempty"` + FunctionsToExclude *[]string `json:"functionsToExclude,omitempty"` + FunctionsToInclude *[]string `json:"functionsToInclude,omitempty"` MaterializedViewsToExclude *[]string `json:"materializedViewsToExclude,omitempty"` MaterializedViewsToInclude *[]string `json:"materializedViewsToInclude,omitempty"` TablesToExclude *[]string `json:"tablesToExclude,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/version.go index a1f848f4da18..d7303247644f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-02-01" +const defaultApiVersion = "2022-12-29" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/attacheddatabaseconfigurations/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/README.md index af30b0ef4286..9ae7c7b209e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments` Documentation -The `clusterprincipalassignments` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-02-01`). +The `clusterprincipalassignments` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-12-29`). 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/kusto/2022-02-01/clusterprincipalassignments" +import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/constants.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/constants.go index 17af46d8e9f2..9a2882262806 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/constants.go @@ -92,6 +92,7 @@ func parsePrincipalType(input string) (*PrincipalType, error) { type ProvisioningState string const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" @@ -102,6 +103,7 @@ const ( func PossibleValuesForProvisioningState() []string { return []string{ + string(ProvisioningStateCanceled), string(ProvisioningStateCreating), string(ProvisioningStateDeleting), string(ProvisioningStateFailed), @@ -113,6 +115,7 @@ func PossibleValuesForProvisioningState() []string { func parseProvisioningState(input string) (*ProvisioningState, error) { vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, "creating": ProvisioningStateCreating, "deleting": ProvisioningStateDeleting, "failed": ProvisioningStateFailed, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/id_cluster.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/id_cluster.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/id_cluster.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/id_principalassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/id_principalassignment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/id_principalassignment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/id_principalassignment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/method_checknameavailability_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/method_checknameavailability_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/method_checknameavailability_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/method_checknameavailability_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/model_checknameresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/model_checknameresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/model_checknameresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/model_checknameresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/model_clusterprincipalassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/model_clusterprincipalassignment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/model_clusterprincipalassignment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/model_clusterprincipalassignment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/model_clusterprincipalassignmentchecknamerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/model_clusterprincipalassignmentchecknamerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/model_clusterprincipalassignmentchecknamerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/model_clusterprincipalassignmentchecknamerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/model_clusterprincipalassignmentlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/model_clusterprincipalassignmentlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/model_clusterprincipalassignmentlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/model_clusterprincipalassignmentlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/model_clusterprincipalproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/model_clusterprincipalproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/model_clusterprincipalproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/model_clusterprincipalproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/version.go index dbae7e576853..b227991f4d56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-02-01" +const defaultApiVersion = "2022-12-29" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/clusterprincipalassignments/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/README.md new file mode 100644 index 000000000000..c7aa3bdcf9b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/README.md @@ -0,0 +1,270 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters` Documentation + +The `clusters` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-12-29`). + +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/kusto/2022-12-29/clusters" +``` + + +### Client Initialization + +```go +client := clusters.NewClustersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ClustersClient.AddLanguageExtensions` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +payload := clusters.LanguageExtensionsList{ + // ... +} + + +if err := client.AddLanguageExtensionsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ClustersClient.CheckNameAvailability` + +```go +ctx := context.TODO() +id := clusters.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") + +payload := clusters.ClusterCheckNameRequest{ + // ... +} + + +read, err := client.CheckNameAvailability(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ClustersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +payload := clusters.Cluster{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, clusters.DefaultCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ClustersClient.Delete` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ClustersClient.DetachFollowerDatabases` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +payload := clusters.FollowerDatabaseDefinition{ + // ... +} + + +if err := client.DetachFollowerDatabasesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ClustersClient.DiagnoseVirtualNetwork` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +if err := client.DiagnoseVirtualNetworkThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ClustersClient.Get` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ClustersClient.List` + +```go +ctx := context.TODO() +id := clusters.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ClustersClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := clusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +read, err := client.ListByResourceGroup(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ClustersClient.ListFollowerDatabases` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +read, err := client.ListFollowerDatabases(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ClustersClient.ListLanguageExtensions` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +read, err := client.ListLanguageExtensions(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ClustersClient.ListSkusByResource` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +read, err := client.ListSkusByResource(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ClustersClient.RemoveLanguageExtensions` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +payload := clusters.LanguageExtensionsList{ + // ... +} + + +if err := client.RemoveLanguageExtensionsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ClustersClient.Start` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +if err := client.StartThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ClustersClient.Stop` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +if err := client.StopThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ClustersClient.Update` + +```go +ctx := context.TODO() +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +payload := clusters.ClusterUpdate{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload, clusters.DefaultUpdateOperationOptions()); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/client.go new file mode 100644 index 000000000000..1e6fabf8cbaa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/client.go @@ -0,0 +1,18 @@ +package clusters + +import "github.com/Azure/go-autorest/autorest" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ClustersClient struct { + Client autorest.Client + baseUri string +} + +func NewClustersClientWithBaseURI(endpoint string) ClustersClient { + return ClustersClient{ + Client: autorest.NewClientWithUserAgent(userAgent()), + baseUri: endpoint, + } +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/constants.go new file mode 100644 index 000000000000..a9de10336a94 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/constants.go @@ -0,0 +1,626 @@ +package clusters + +import "strings" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureScaleType string + +const ( + AzureScaleTypeAutomatic AzureScaleType = "automatic" + AzureScaleTypeManual AzureScaleType = "manual" + AzureScaleTypeNone AzureScaleType = "none" +) + +func PossibleValuesForAzureScaleType() []string { + return []string{ + string(AzureScaleTypeAutomatic), + string(AzureScaleTypeManual), + string(AzureScaleTypeNone), + } +} + +func parseAzureScaleType(input string) (*AzureScaleType, error) { + vals := map[string]AzureScaleType{ + "automatic": AzureScaleTypeAutomatic, + "manual": AzureScaleTypeManual, + "none": AzureScaleTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureScaleType(input) + return &out, nil +} + +type AzureSkuName string + +const ( + AzureSkuNameDevNoSLAStandardDOneOneVTwo AzureSkuName = "Dev(No SLA)_Standard_D11_v2" + AzureSkuNameDevNoSLAStandardETwoaVFour AzureSkuName = "Dev(No SLA)_Standard_E2a_v4" + AzureSkuNameStandardDOneFourVTwo AzureSkuName = "Standard_D14_v2" + AzureSkuNameStandardDOneOneVTwo AzureSkuName = "Standard_D11_v2" + AzureSkuNameStandardDOneSixdVFive AzureSkuName = "Standard_D16d_v5" + AzureSkuNameStandardDOneThreeVTwo AzureSkuName = "Standard_D13_v2" + AzureSkuNameStandardDOneTwoVTwo AzureSkuName = "Standard_D12_v2" + AzureSkuNameStandardDSOneFourVTwoPositiveFourTBPS AzureSkuName = "Standard_DS14_v2+4TB_PS" + AzureSkuNameStandardDSOneFourVTwoPositiveThreeTBPS AzureSkuName = "Standard_DS14_v2+3TB_PS" + AzureSkuNameStandardDSOneThreeVTwoPositiveOneTBPS AzureSkuName = "Standard_DS13_v2+1TB_PS" + AzureSkuNameStandardDSOneThreeVTwoPositiveTwoTBPS AzureSkuName = "Standard_DS13_v2+2TB_PS" + AzureSkuNameStandardDThreeTwodVFive AzureSkuName = "Standard_D32d_v5" + AzureSkuNameStandardDThreeTwodVFour AzureSkuName = "Standard_D32d_v4" + AzureSkuNameStandardECEightadsVFive AzureSkuName = "Standard_EC8ads_v5" + AzureSkuNameStandardECEightasVFivePositiveOneTBPS AzureSkuName = "Standard_EC8as_v5+1TB_PS" + AzureSkuNameStandardECEightasVFivePositiveTwoTBPS AzureSkuName = "Standard_EC8as_v5+2TB_PS" + AzureSkuNameStandardECOneSixadsVFive AzureSkuName = "Standard_EC16ads_v5" + AzureSkuNameStandardECOneSixasVFivePositiveFourTBPS AzureSkuName = "Standard_EC16as_v5+4TB_PS" + AzureSkuNameStandardECOneSixasVFivePositiveThreeTBPS AzureSkuName = "Standard_EC16as_v5+3TB_PS" + AzureSkuNameStandardEEightZeroidsVFour AzureSkuName = "Standard_E80ids_v4" + AzureSkuNameStandardEEightaVFour AzureSkuName = "Standard_E8a_v4" + AzureSkuNameStandardEEightadsVFive AzureSkuName = "Standard_E8ads_v5" + AzureSkuNameStandardEEightasVFivePositiveOneTBPS AzureSkuName = "Standard_E8as_v5+1TB_PS" + AzureSkuNameStandardEEightasVFivePositiveTwoTBPS AzureSkuName = "Standard_E8as_v5+2TB_PS" + AzureSkuNameStandardEEightasVFourPositiveOneTBPS AzureSkuName = "Standard_E8as_v4+1TB_PS" + AzureSkuNameStandardEEightasVFourPositiveTwoTBPS AzureSkuName = "Standard_E8as_v4+2TB_PS" + AzureSkuNameStandardEEightdVFive AzureSkuName = "Standard_E8d_v5" + AzureSkuNameStandardEEightdVFour AzureSkuName = "Standard_E8d_v4" + AzureSkuNameStandardEEightsVFivePositiveOneTBPS AzureSkuName = "Standard_E8s_v5+1TB_PS" + AzureSkuNameStandardEEightsVFivePositiveTwoTBPS AzureSkuName = "Standard_E8s_v5+2TB_PS" + AzureSkuNameStandardEEightsVFourPositiveOneTBPS AzureSkuName = "Standard_E8s_v4+1TB_PS" + AzureSkuNameStandardEEightsVFourPositiveTwoTBPS AzureSkuName = "Standard_E8s_v4+2TB_PS" + AzureSkuNameStandardEFouraVFour AzureSkuName = "Standard_E4a_v4" + AzureSkuNameStandardEFouradsVFive AzureSkuName = "Standard_E4ads_v5" + AzureSkuNameStandardEFourdVFive AzureSkuName = "Standard_E4d_v5" + AzureSkuNameStandardEFourdVFour AzureSkuName = "Standard_E4d_v4" + AzureSkuNameStandardEOneSixaVFour AzureSkuName = "Standard_E16a_v4" + AzureSkuNameStandardEOneSixadsVFive AzureSkuName = "Standard_E16ads_v5" + AzureSkuNameStandardEOneSixasVFivePositiveFourTBPS AzureSkuName = "Standard_E16as_v5+4TB_PS" + AzureSkuNameStandardEOneSixasVFivePositiveThreeTBPS AzureSkuName = "Standard_E16as_v5+3TB_PS" + AzureSkuNameStandardEOneSixasVFourPositiveFourTBPS AzureSkuName = "Standard_E16as_v4+4TB_PS" + AzureSkuNameStandardEOneSixasVFourPositiveThreeTBPS AzureSkuName = "Standard_E16as_v4+3TB_PS" + AzureSkuNameStandardEOneSixdVFive AzureSkuName = "Standard_E16d_v5" + AzureSkuNameStandardEOneSixdVFour AzureSkuName = "Standard_E16d_v4" + AzureSkuNameStandardEOneSixsVFivePositiveFourTBPS AzureSkuName = "Standard_E16s_v5+4TB_PS" + AzureSkuNameStandardEOneSixsVFivePositiveThreeTBPS AzureSkuName = "Standard_E16s_v5+3TB_PS" + AzureSkuNameStandardEOneSixsVFourPositiveFourTBPS AzureSkuName = "Standard_E16s_v4+4TB_PS" + AzureSkuNameStandardEOneSixsVFourPositiveThreeTBPS AzureSkuName = "Standard_E16s_v4+3TB_PS" + AzureSkuNameStandardESixFouriVThree AzureSkuName = "Standard_E64i_v3" + AzureSkuNameStandardETwoaVFour AzureSkuName = "Standard_E2a_v4" + AzureSkuNameStandardETwoadsVFive AzureSkuName = "Standard_E2ads_v5" + AzureSkuNameStandardETwodVFive AzureSkuName = "Standard_E2d_v5" + AzureSkuNameStandardETwodVFour AzureSkuName = "Standard_E2d_v4" + AzureSkuNameStandardLEightasVThree AzureSkuName = "Standard_L8as_v3" + AzureSkuNameStandardLEights AzureSkuName = "Standard_L8s" + AzureSkuNameStandardLEightsVThree AzureSkuName = "Standard_L8s_v3" + AzureSkuNameStandardLEightsVTwo AzureSkuName = "Standard_L8s_v2" + AzureSkuNameStandardLFours AzureSkuName = "Standard_L4s" + AzureSkuNameStandardLOneSixasVThree AzureSkuName = "Standard_L16as_v3" + AzureSkuNameStandardLOneSixs AzureSkuName = "Standard_L16s" + AzureSkuNameStandardLOneSixsVThree AzureSkuName = "Standard_L16s_v3" + AzureSkuNameStandardLOneSixsVTwo AzureSkuName = "Standard_L16s_v2" + AzureSkuNameStandardLThreeTwoasVThree AzureSkuName = "Standard_L32as_v3" + AzureSkuNameStandardLThreeTwosVThree AzureSkuName = "Standard_L32s_v3" +) + +func PossibleValuesForAzureSkuName() []string { + return []string{ + string(AzureSkuNameDevNoSLAStandardDOneOneVTwo), + string(AzureSkuNameDevNoSLAStandardETwoaVFour), + string(AzureSkuNameStandardDOneFourVTwo), + string(AzureSkuNameStandardDOneOneVTwo), + string(AzureSkuNameStandardDOneSixdVFive), + string(AzureSkuNameStandardDOneThreeVTwo), + string(AzureSkuNameStandardDOneTwoVTwo), + string(AzureSkuNameStandardDSOneFourVTwoPositiveFourTBPS), + string(AzureSkuNameStandardDSOneFourVTwoPositiveThreeTBPS), + string(AzureSkuNameStandardDSOneThreeVTwoPositiveOneTBPS), + string(AzureSkuNameStandardDSOneThreeVTwoPositiveTwoTBPS), + string(AzureSkuNameStandardDThreeTwodVFive), + string(AzureSkuNameStandardDThreeTwodVFour), + string(AzureSkuNameStandardECEightadsVFive), + string(AzureSkuNameStandardECEightasVFivePositiveOneTBPS), + string(AzureSkuNameStandardECEightasVFivePositiveTwoTBPS), + string(AzureSkuNameStandardECOneSixadsVFive), + string(AzureSkuNameStandardECOneSixasVFivePositiveFourTBPS), + string(AzureSkuNameStandardECOneSixasVFivePositiveThreeTBPS), + string(AzureSkuNameStandardEEightZeroidsVFour), + string(AzureSkuNameStandardEEightaVFour), + string(AzureSkuNameStandardEEightadsVFive), + string(AzureSkuNameStandardEEightasVFivePositiveOneTBPS), + string(AzureSkuNameStandardEEightasVFivePositiveTwoTBPS), + string(AzureSkuNameStandardEEightasVFourPositiveOneTBPS), + string(AzureSkuNameStandardEEightasVFourPositiveTwoTBPS), + string(AzureSkuNameStandardEEightdVFive), + string(AzureSkuNameStandardEEightdVFour), + string(AzureSkuNameStandardEEightsVFivePositiveOneTBPS), + string(AzureSkuNameStandardEEightsVFivePositiveTwoTBPS), + string(AzureSkuNameStandardEEightsVFourPositiveOneTBPS), + string(AzureSkuNameStandardEEightsVFourPositiveTwoTBPS), + string(AzureSkuNameStandardEFouraVFour), + string(AzureSkuNameStandardEFouradsVFive), + string(AzureSkuNameStandardEFourdVFive), + string(AzureSkuNameStandardEFourdVFour), + string(AzureSkuNameStandardEOneSixaVFour), + string(AzureSkuNameStandardEOneSixadsVFive), + string(AzureSkuNameStandardEOneSixasVFivePositiveFourTBPS), + string(AzureSkuNameStandardEOneSixasVFivePositiveThreeTBPS), + string(AzureSkuNameStandardEOneSixasVFourPositiveFourTBPS), + string(AzureSkuNameStandardEOneSixasVFourPositiveThreeTBPS), + string(AzureSkuNameStandardEOneSixdVFive), + string(AzureSkuNameStandardEOneSixdVFour), + string(AzureSkuNameStandardEOneSixsVFivePositiveFourTBPS), + string(AzureSkuNameStandardEOneSixsVFivePositiveThreeTBPS), + string(AzureSkuNameStandardEOneSixsVFourPositiveFourTBPS), + string(AzureSkuNameStandardEOneSixsVFourPositiveThreeTBPS), + string(AzureSkuNameStandardESixFouriVThree), + string(AzureSkuNameStandardETwoaVFour), + string(AzureSkuNameStandardETwoadsVFive), + string(AzureSkuNameStandardETwodVFive), + string(AzureSkuNameStandardETwodVFour), + string(AzureSkuNameStandardLEightasVThree), + string(AzureSkuNameStandardLEights), + string(AzureSkuNameStandardLEightsVThree), + string(AzureSkuNameStandardLEightsVTwo), + string(AzureSkuNameStandardLFours), + string(AzureSkuNameStandardLOneSixasVThree), + string(AzureSkuNameStandardLOneSixs), + string(AzureSkuNameStandardLOneSixsVThree), + string(AzureSkuNameStandardLOneSixsVTwo), + string(AzureSkuNameStandardLThreeTwoasVThree), + string(AzureSkuNameStandardLThreeTwosVThree), + } +} + +func parseAzureSkuName(input string) (*AzureSkuName, error) { + vals := map[string]AzureSkuName{ + "dev(no sla)_standard_d11_v2": AzureSkuNameDevNoSLAStandardDOneOneVTwo, + "dev(no sla)_standard_e2a_v4": AzureSkuNameDevNoSLAStandardETwoaVFour, + "standard_d14_v2": AzureSkuNameStandardDOneFourVTwo, + "standard_d11_v2": AzureSkuNameStandardDOneOneVTwo, + "standard_d16d_v5": AzureSkuNameStandardDOneSixdVFive, + "standard_d13_v2": AzureSkuNameStandardDOneThreeVTwo, + "standard_d12_v2": AzureSkuNameStandardDOneTwoVTwo, + "standard_ds14_v2+4tb_ps": AzureSkuNameStandardDSOneFourVTwoPositiveFourTBPS, + "standard_ds14_v2+3tb_ps": AzureSkuNameStandardDSOneFourVTwoPositiveThreeTBPS, + "standard_ds13_v2+1tb_ps": AzureSkuNameStandardDSOneThreeVTwoPositiveOneTBPS, + "standard_ds13_v2+2tb_ps": AzureSkuNameStandardDSOneThreeVTwoPositiveTwoTBPS, + "standard_d32d_v5": AzureSkuNameStandardDThreeTwodVFive, + "standard_d32d_v4": AzureSkuNameStandardDThreeTwodVFour, + "standard_ec8ads_v5": AzureSkuNameStandardECEightadsVFive, + "standard_ec8as_v5+1tb_ps": AzureSkuNameStandardECEightasVFivePositiveOneTBPS, + "standard_ec8as_v5+2tb_ps": AzureSkuNameStandardECEightasVFivePositiveTwoTBPS, + "standard_ec16ads_v5": AzureSkuNameStandardECOneSixadsVFive, + "standard_ec16as_v5+4tb_ps": AzureSkuNameStandardECOneSixasVFivePositiveFourTBPS, + "standard_ec16as_v5+3tb_ps": AzureSkuNameStandardECOneSixasVFivePositiveThreeTBPS, + "standard_e80ids_v4": AzureSkuNameStandardEEightZeroidsVFour, + "standard_e8a_v4": AzureSkuNameStandardEEightaVFour, + "standard_e8ads_v5": AzureSkuNameStandardEEightadsVFive, + "standard_e8as_v5+1tb_ps": AzureSkuNameStandardEEightasVFivePositiveOneTBPS, + "standard_e8as_v5+2tb_ps": AzureSkuNameStandardEEightasVFivePositiveTwoTBPS, + "standard_e8as_v4+1tb_ps": AzureSkuNameStandardEEightasVFourPositiveOneTBPS, + "standard_e8as_v4+2tb_ps": AzureSkuNameStandardEEightasVFourPositiveTwoTBPS, + "standard_e8d_v5": AzureSkuNameStandardEEightdVFive, + "standard_e8d_v4": AzureSkuNameStandardEEightdVFour, + "standard_e8s_v5+1tb_ps": AzureSkuNameStandardEEightsVFivePositiveOneTBPS, + "standard_e8s_v5+2tb_ps": AzureSkuNameStandardEEightsVFivePositiveTwoTBPS, + "standard_e8s_v4+1tb_ps": AzureSkuNameStandardEEightsVFourPositiveOneTBPS, + "standard_e8s_v4+2tb_ps": AzureSkuNameStandardEEightsVFourPositiveTwoTBPS, + "standard_e4a_v4": AzureSkuNameStandardEFouraVFour, + "standard_e4ads_v5": AzureSkuNameStandardEFouradsVFive, + "standard_e4d_v5": AzureSkuNameStandardEFourdVFive, + "standard_e4d_v4": AzureSkuNameStandardEFourdVFour, + "standard_e16a_v4": AzureSkuNameStandardEOneSixaVFour, + "standard_e16ads_v5": AzureSkuNameStandardEOneSixadsVFive, + "standard_e16as_v5+4tb_ps": AzureSkuNameStandardEOneSixasVFivePositiveFourTBPS, + "standard_e16as_v5+3tb_ps": AzureSkuNameStandardEOneSixasVFivePositiveThreeTBPS, + "standard_e16as_v4+4tb_ps": AzureSkuNameStandardEOneSixasVFourPositiveFourTBPS, + "standard_e16as_v4+3tb_ps": AzureSkuNameStandardEOneSixasVFourPositiveThreeTBPS, + "standard_e16d_v5": AzureSkuNameStandardEOneSixdVFive, + "standard_e16d_v4": AzureSkuNameStandardEOneSixdVFour, + "standard_e16s_v5+4tb_ps": AzureSkuNameStandardEOneSixsVFivePositiveFourTBPS, + "standard_e16s_v5+3tb_ps": AzureSkuNameStandardEOneSixsVFivePositiveThreeTBPS, + "standard_e16s_v4+4tb_ps": AzureSkuNameStandardEOneSixsVFourPositiveFourTBPS, + "standard_e16s_v4+3tb_ps": AzureSkuNameStandardEOneSixsVFourPositiveThreeTBPS, + "standard_e64i_v3": AzureSkuNameStandardESixFouriVThree, + "standard_e2a_v4": AzureSkuNameStandardETwoaVFour, + "standard_e2ads_v5": AzureSkuNameStandardETwoadsVFive, + "standard_e2d_v5": AzureSkuNameStandardETwodVFive, + "standard_e2d_v4": AzureSkuNameStandardETwodVFour, + "standard_l8as_v3": AzureSkuNameStandardLEightasVThree, + "standard_l8s": AzureSkuNameStandardLEights, + "standard_l8s_v3": AzureSkuNameStandardLEightsVThree, + "standard_l8s_v2": AzureSkuNameStandardLEightsVTwo, + "standard_l4s": AzureSkuNameStandardLFours, + "standard_l16as_v3": AzureSkuNameStandardLOneSixasVThree, + "standard_l16s": AzureSkuNameStandardLOneSixs, + "standard_l16s_v3": AzureSkuNameStandardLOneSixsVThree, + "standard_l16s_v2": AzureSkuNameStandardLOneSixsVTwo, + "standard_l32as_v3": AzureSkuNameStandardLThreeTwoasVThree, + "standard_l32s_v3": AzureSkuNameStandardLThreeTwosVThree, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureSkuName(input) + return &out, nil +} + +type AzureSkuTier string + +const ( + AzureSkuTierBasic AzureSkuTier = "Basic" + AzureSkuTierStandard AzureSkuTier = "Standard" +) + +func PossibleValuesForAzureSkuTier() []string { + return []string{ + string(AzureSkuTierBasic), + string(AzureSkuTierStandard), + } +} + +func parseAzureSkuTier(input string) (*AzureSkuTier, error) { + vals := map[string]AzureSkuTier{ + "basic": AzureSkuTierBasic, + "standard": AzureSkuTierStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureSkuTier(input) + return &out, nil +} + +type ClusterNetworkAccessFlag string + +const ( + ClusterNetworkAccessFlagDisabled ClusterNetworkAccessFlag = "Disabled" + ClusterNetworkAccessFlagEnabled ClusterNetworkAccessFlag = "Enabled" +) + +func PossibleValuesForClusterNetworkAccessFlag() []string { + return []string{ + string(ClusterNetworkAccessFlagDisabled), + string(ClusterNetworkAccessFlagEnabled), + } +} + +func parseClusterNetworkAccessFlag(input string) (*ClusterNetworkAccessFlag, error) { + vals := map[string]ClusterNetworkAccessFlag{ + "disabled": ClusterNetworkAccessFlagDisabled, + "enabled": ClusterNetworkAccessFlagEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ClusterNetworkAccessFlag(input) + return &out, nil +} + +type ClusterType string + +const ( + ClusterTypeMicrosoftPointKustoClusters ClusterType = "Microsoft.Kusto/clusters" +) + +func PossibleValuesForClusterType() []string { + return []string{ + string(ClusterTypeMicrosoftPointKustoClusters), + } +} + +func parseClusterType(input string) (*ClusterType, error) { + vals := map[string]ClusterType{ + "microsoft.kusto/clusters": ClusterTypeMicrosoftPointKustoClusters, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ClusterType(input) + return &out, nil +} + +type DatabaseShareOrigin string + +const ( + DatabaseShareOriginDataShare DatabaseShareOrigin = "DataShare" + DatabaseShareOriginDirect DatabaseShareOrigin = "Direct" + DatabaseShareOriginOther DatabaseShareOrigin = "Other" +) + +func PossibleValuesForDatabaseShareOrigin() []string { + return []string{ + string(DatabaseShareOriginDataShare), + string(DatabaseShareOriginDirect), + string(DatabaseShareOriginOther), + } +} + +func parseDatabaseShareOrigin(input string) (*DatabaseShareOrigin, error) { + vals := map[string]DatabaseShareOrigin{ + "datashare": DatabaseShareOriginDataShare, + "direct": DatabaseShareOriginDirect, + "other": DatabaseShareOriginOther, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DatabaseShareOrigin(input) + return &out, nil +} + +type EngineType string + +const ( + EngineTypeVThree EngineType = "V3" + EngineTypeVTwo EngineType = "V2" +) + +func PossibleValuesForEngineType() []string { + return []string{ + string(EngineTypeVThree), + string(EngineTypeVTwo), + } +} + +func parseEngineType(input string) (*EngineType, error) { + vals := map[string]EngineType{ + "v3": EngineTypeVThree, + "v2": EngineTypeVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EngineType(input) + return &out, nil +} + +type LanguageExtensionImageName string + +const ( + LanguageExtensionImageNamePythonThreeOneZeroEight LanguageExtensionImageName = "Python3_10_8" + LanguageExtensionImageNamePythonThreeSixFive LanguageExtensionImageName = "Python3_6_5" + LanguageExtensionImageNameR LanguageExtensionImageName = "R" +) + +func PossibleValuesForLanguageExtensionImageName() []string { + return []string{ + string(LanguageExtensionImageNamePythonThreeOneZeroEight), + string(LanguageExtensionImageNamePythonThreeSixFive), + string(LanguageExtensionImageNameR), + } +} + +func parseLanguageExtensionImageName(input string) (*LanguageExtensionImageName, error) { + vals := map[string]LanguageExtensionImageName{ + "python3_10_8": LanguageExtensionImageNamePythonThreeOneZeroEight, + "python3_6_5": LanguageExtensionImageNamePythonThreeSixFive, + "r": LanguageExtensionImageNameR, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LanguageExtensionImageName(input) + return &out, nil +} + +type LanguageExtensionName string + +const ( + LanguageExtensionNamePYTHON LanguageExtensionName = "PYTHON" + LanguageExtensionNameR LanguageExtensionName = "R" +) + +func PossibleValuesForLanguageExtensionName() []string { + return []string{ + string(LanguageExtensionNamePYTHON), + string(LanguageExtensionNameR), + } +} + +func parseLanguageExtensionName(input string) (*LanguageExtensionName, error) { + vals := map[string]LanguageExtensionName{ + "python": LanguageExtensionNamePYTHON, + "r": LanguageExtensionNameR, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LanguageExtensionName(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" + ProvisioningStateCreating ProvisioningState = "Creating" + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateMoving ProvisioningState = "Moving" + ProvisioningStateRunning ProvisioningState = "Running" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateCanceled), + string(ProvisioningStateCreating), + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateMoving), + string(ProvisioningStateRunning), + string(ProvisioningStateSucceeded), + } +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, + "creating": ProvisioningStateCreating, + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "moving": ProvisioningStateMoving, + "running": ProvisioningStateRunning, + "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 PublicIPType string + +const ( + PublicIPTypeDualStack PublicIPType = "DualStack" + PublicIPTypeIPvFour PublicIPType = "IPv4" +) + +func PossibleValuesForPublicIPType() []string { + return []string{ + string(PublicIPTypeDualStack), + string(PublicIPTypeIPvFour), + } +} + +func parsePublicIPType(input string) (*PublicIPType, error) { + vals := map[string]PublicIPType{ + "dualstack": PublicIPTypeDualStack, + "ipv4": PublicIPTypeIPvFour, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPType(input) + return &out, nil +} + +type PublicNetworkAccess string + +const ( + PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" + PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" +) + +func PossibleValuesForPublicNetworkAccess() []string { + return []string{ + string(PublicNetworkAccessDisabled), + string(PublicNetworkAccessEnabled), + } +} + +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 Reason string + +const ( + ReasonAlreadyExists Reason = "AlreadyExists" + ReasonInvalid Reason = "Invalid" +) + +func PossibleValuesForReason() []string { + return []string{ + string(ReasonAlreadyExists), + string(ReasonInvalid), + } +} + +func parseReason(input string) (*Reason, error) { + vals := map[string]Reason{ + "alreadyexists": ReasonAlreadyExists, + "invalid": ReasonInvalid, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Reason(input) + return &out, nil +} + +type State string + +const ( + StateCreating State = "Creating" + StateDeleted State = "Deleted" + StateDeleting State = "Deleting" + StateRunning State = "Running" + StateStarting State = "Starting" + StateStopped State = "Stopped" + StateStopping State = "Stopping" + StateUnavailable State = "Unavailable" + StateUpdating State = "Updating" +) + +func PossibleValuesForState() []string { + return []string{ + string(StateCreating), + string(StateDeleted), + string(StateDeleting), + string(StateRunning), + string(StateStarting), + string(StateStopped), + string(StateStopping), + string(StateUnavailable), + string(StateUpdating), + } +} + +func parseState(input string) (*State, error) { + vals := map[string]State{ + "creating": StateCreating, + "deleted": StateDeleted, + "deleting": StateDeleting, + "running": StateRunning, + "starting": StateStarting, + "stopped": StateStopped, + "stopping": StateStopping, + "unavailable": StateUnavailable, + "updating": StateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := State(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/id_cluster.go new file mode 100644 index 000000000000..9046ca67bcd6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/id_cluster.go @@ -0,0 +1,127 @@ +package clusters + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = ClusterId{} + +// ClusterId is a struct representing the Resource ID for a Cluster +type ClusterId struct { + SubscriptionId string + ResourceGroupName string + ClusterName string +} + +// NewClusterID returns a new ClusterId struct +func NewClusterID(subscriptionId string, resourceGroupName string, clusterName string) ClusterId { + return ClusterId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ClusterName: clusterName, + } +} + +// ParseClusterID parses 'input' into a ClusterId +func ParseClusterID(input string) (*ClusterId, error) { + parser := resourceids.NewParserFromResourceIdType(ClusterId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ClusterId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ClusterName, ok = parsed.Parsed["clusterName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "clusterName", *parsed) + } + + return &id, nil +} + +// ParseClusterIDInsensitively parses 'input' case-insensitively into a ClusterId +// note: this method should only be used for API response data and not user input +func ParseClusterIDInsensitively(input string) (*ClusterId, error) { + parser := resourceids.NewParserFromResourceIdType(ClusterId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ClusterId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ClusterName, ok = parsed.Parsed["clusterName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "clusterName", *parsed) + } + + return &id, nil +} + +// ValidateClusterID checks that 'input' can be parsed as a Cluster ID +func ValidateClusterID(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 := ParseClusterID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Cluster ID +func (id ClusterId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Kusto/clusters/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ClusterName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Cluster ID +func (id ClusterId) 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("staticMicrosoftKusto", "Microsoft.Kusto", "Microsoft.Kusto"), + resourceids.StaticSegment("staticClusters", "clusters", "clusters"), + resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + } +} + +// String returns a human-readable description of this Cluster ID +func (id ClusterId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Cluster Name: %q", id.ClusterName), + } + return fmt.Sprintf("Cluster (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/id_location.go new file mode 100644 index 000000000000..2d6b8e58eb94 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/id_location.go @@ -0,0 +1,114 @@ +package clusters + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = LocationId{} + +// LocationId is a struct representing the Resource ID for a Location +type LocationId struct { + SubscriptionId string + LocationName string +} + +// NewLocationID returns a new LocationId struct +func NewLocationID(subscriptionId string, locationName string) LocationId { + return LocationId{ + SubscriptionId: subscriptionId, + LocationName: locationName, + } +} + +// ParseLocationID parses 'input' into a LocationId +func ParseLocationID(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(LocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := LocationId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.LocationName, ok = parsed.Parsed["locationName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "locationName", *parsed) + } + + return &id, nil +} + +// ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId +// note: this method should only be used for API response data and not user input +func ParseLocationIDInsensitively(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(LocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := LocationId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.LocationName, ok = parsed.Parsed["locationName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "locationName", *parsed) + } + + return &id, nil +} + +// ValidateLocationID checks that 'input' can be parsed as a Location ID +func ValidateLocationID(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 := ParseLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Location ID +func (id LocationId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.Kusto/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Location ID +func (id LocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftKusto", "Microsoft.Kusto", "Microsoft.Kusto"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationValue"), + } +} + +// String returns a human-readable description of this Location ID +func (id LocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_addlanguageextensions_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_addlanguageextensions_autorest.go new file mode 100644 index 000000000000..333636752378 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_addlanguageextensions_autorest.go @@ -0,0 +1,79 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddLanguageExtensionsOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// AddLanguageExtensions ... +func (c ClustersClient) AddLanguageExtensions(ctx context.Context, id ClusterId, input LanguageExtensionsList) (result AddLanguageExtensionsOperationResponse, err error) { + req, err := c.preparerForAddLanguageExtensions(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "AddLanguageExtensions", nil, "Failure preparing request") + return + } + + result, err = c.senderForAddLanguageExtensions(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "AddLanguageExtensions", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// AddLanguageExtensionsThenPoll performs AddLanguageExtensions then polls until it's completed +func (c ClustersClient) AddLanguageExtensionsThenPoll(ctx context.Context, id ClusterId, input LanguageExtensionsList) error { + result, err := c.AddLanguageExtensions(ctx, id, input) + if err != nil { + return fmt.Errorf("performing AddLanguageExtensions: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after AddLanguageExtensions: %+v", err) + } + + return nil +} + +// preparerForAddLanguageExtensions prepares the AddLanguageExtensions request. +func (c ClustersClient) preparerForAddLanguageExtensions(ctx context.Context, id ClusterId, input LanguageExtensionsList) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/addLanguageExtensions", id.ID())), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForAddLanguageExtensions sends the AddLanguageExtensions request. The method will close the +// http.Response Body if it receives an error. +func (c ClustersClient) senderForAddLanguageExtensions(ctx context.Context, req *http.Request) (future AddLanguageExtensionsOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_checknameavailability_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_checknameavailability_autorest.go new file mode 100644 index 000000000000..f2852ec723fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_checknameavailability_autorest.go @@ -0,0 +1,70 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameAvailabilityOperationResponse struct { + HttpResponse *http.Response + Model *CheckNameResult +} + +// CheckNameAvailability ... +func (c ClustersClient) CheckNameAvailability(ctx context.Context, id LocationId, input ClusterCheckNameRequest) (result CheckNameAvailabilityOperationResponse, err error) { + req, err := c.preparerForCheckNameAvailability(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "CheckNameAvailability", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "CheckNameAvailability", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForCheckNameAvailability(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "CheckNameAvailability", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForCheckNameAvailability prepares the CheckNameAvailability request. +func (c ClustersClient) preparerForCheckNameAvailability(ctx context.Context, id LocationId, input ClusterCheckNameRequest) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/checkNameAvailability", id.ID())), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForCheckNameAvailability handles the response to the CheckNameAvailability request. The method always +// closes the http.Response Body. +func (c ClustersClient) responderForCheckNameAvailability(resp *http.Response) (result CheckNameAvailabilityOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_createorupdate_autorest.go new file mode 100644 index 000000000000..5b138fdffab7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_createorupdate_autorest.go @@ -0,0 +1,113 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// 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 polling.LongRunningPoller + HttpResponse *http.Response +} + +type CreateOrUpdateOperationOptions struct { + IfMatch *string + IfNoneMatch *string +} + +func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { + return CreateOrUpdateOperationOptions{} +} + +func (o CreateOrUpdateOperationOptions) toHeaders() map[string]interface{} { + out := make(map[string]interface{}) + + if o.IfMatch != nil { + out["If-Match"] = *o.IfMatch + } + + if o.IfNoneMatch != nil { + out["If-None-Match"] = *o.IfNoneMatch + } + + return out +} + +func (o CreateOrUpdateOperationOptions) toQueryString() map[string]interface{} { + out := make(map[string]interface{}) + + return out +} + +// CreateOrUpdate ... +func (c ClustersClient) CreateOrUpdate(ctx context.Context, id ClusterId, input Cluster, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { + req, err := c.preparerForCreateOrUpdate(ctx, id, input, options) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = c.senderForCreateOrUpdate(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "CreateOrUpdate", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ClustersClient) CreateOrUpdateThenPoll(ctx context.Context, id ClusterId, input Cluster, 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(); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} + +// preparerForCreateOrUpdate prepares the CreateOrUpdate request. +func (c ClustersClient) preparerForCreateOrUpdate(ctx context.Context, id ClusterId, input Cluster, options CreateOrUpdateOperationOptions) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + for k, v := range options.toQueryString() { + queryParameters[k] = autorest.Encode("query", v) + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(c.baseUri), + autorest.WithHeaders(options.toHeaders()), + autorest.WithPath(id.ID()), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForCreateOrUpdate sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (c ClustersClient) senderForCreateOrUpdate(ctx context.Context, req *http.Request) (future CreateOrUpdateOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_delete_autorest.go new file mode 100644 index 000000000000..285ecf817e5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_delete_autorest.go @@ -0,0 +1,78 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// Delete ... +func (c ClustersClient) Delete(ctx context.Context, id ClusterId) (result DeleteOperationResponse, err error) { + req, err := c.preparerForDelete(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = c.senderForDelete(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "Delete", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ClustersClient) DeleteThenPoll(ctx context.Context, id ClusterId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} + +// preparerForDelete prepares the Delete request. +func (c ClustersClient) preparerForDelete(ctx context.Context, id ClusterId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsDelete(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForDelete sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (c ClustersClient) senderForDelete(ctx context.Context, req *http.Request) (future DeleteOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_detachfollowerdatabases_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_detachfollowerdatabases_autorest.go new file mode 100644 index 000000000000..192373e1bc6d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_detachfollowerdatabases_autorest.go @@ -0,0 +1,79 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DetachFollowerDatabasesOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// DetachFollowerDatabases ... +func (c ClustersClient) DetachFollowerDatabases(ctx context.Context, id ClusterId, input FollowerDatabaseDefinition) (result DetachFollowerDatabasesOperationResponse, err error) { + req, err := c.preparerForDetachFollowerDatabases(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "DetachFollowerDatabases", nil, "Failure preparing request") + return + } + + result, err = c.senderForDetachFollowerDatabases(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "DetachFollowerDatabases", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// DetachFollowerDatabasesThenPoll performs DetachFollowerDatabases then polls until it's completed +func (c ClustersClient) DetachFollowerDatabasesThenPoll(ctx context.Context, id ClusterId, input FollowerDatabaseDefinition) error { + result, err := c.DetachFollowerDatabases(ctx, id, input) + if err != nil { + return fmt.Errorf("performing DetachFollowerDatabases: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after DetachFollowerDatabases: %+v", err) + } + + return nil +} + +// preparerForDetachFollowerDatabases prepares the DetachFollowerDatabases request. +func (c ClustersClient) preparerForDetachFollowerDatabases(ctx context.Context, id ClusterId, input FollowerDatabaseDefinition) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/detachFollowerDatabases", id.ID())), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForDetachFollowerDatabases sends the DetachFollowerDatabases request. The method will close the +// http.Response Body if it receives an error. +func (c ClustersClient) senderForDetachFollowerDatabases(ctx context.Context, req *http.Request) (future DetachFollowerDatabasesOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_diagnosevirtualnetwork_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_diagnosevirtualnetwork_autorest.go new file mode 100644 index 000000000000..a26ec7120436 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_diagnosevirtualnetwork_autorest.go @@ -0,0 +1,78 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnoseVirtualNetworkOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// DiagnoseVirtualNetwork ... +func (c ClustersClient) DiagnoseVirtualNetwork(ctx context.Context, id ClusterId) (result DiagnoseVirtualNetworkOperationResponse, err error) { + req, err := c.preparerForDiagnoseVirtualNetwork(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "DiagnoseVirtualNetwork", nil, "Failure preparing request") + return + } + + result, err = c.senderForDiagnoseVirtualNetwork(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "DiagnoseVirtualNetwork", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// DiagnoseVirtualNetworkThenPoll performs DiagnoseVirtualNetwork then polls until it's completed +func (c ClustersClient) DiagnoseVirtualNetworkThenPoll(ctx context.Context, id ClusterId) error { + result, err := c.DiagnoseVirtualNetwork(ctx, id) + if err != nil { + return fmt.Errorf("performing DiagnoseVirtualNetwork: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after DiagnoseVirtualNetwork: %+v", err) + } + + return nil +} + +// preparerForDiagnoseVirtualNetwork prepares the DiagnoseVirtualNetwork request. +func (c ClustersClient) preparerForDiagnoseVirtualNetwork(ctx context.Context, id ClusterId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/diagnoseVirtualNetwork", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForDiagnoseVirtualNetwork sends the DiagnoseVirtualNetwork request. The method will close the +// http.Response Body if it receives an error. +func (c ClustersClient) senderForDiagnoseVirtualNetwork(ctx context.Context, req *http.Request) (future DiagnoseVirtualNetworkOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_get_autorest.go new file mode 100644 index 000000000000..2957d3dd8de8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_get_autorest.go @@ -0,0 +1,68 @@ +package clusters + +import ( + "context" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + Model *Cluster +} + +// Get ... +func (c ClustersClient) Get(ctx context.Context, id ClusterId) (result GetOperationResponse, err error) { + req, err := c.preparerForGet(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "Get", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "Get", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForGet(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "Get", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForGet prepares the Get request. +func (c ClustersClient) preparerForGet(ctx context.Context, id ClusterId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForGet handles the response to the Get request. The method always +// closes the http.Response Body. +func (c ClustersClient) responderForGet(resp *http.Response) (result GetOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_list_autorest.go new file mode 100644 index 000000000000..5f7f90cf9eae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_list_autorest.go @@ -0,0 +1,70 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + Model *ClusterListResult +} + +// List ... +func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + req, err := c.preparerForList(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "List", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "List", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForList(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "List", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForList prepares the List request. +func (c ClustersClient) preparerForList(ctx context.Context, id commonids.SubscriptionId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/providers/Microsoft.Kusto/clusters", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForList handles the response to the List request. The method always +// closes the http.Response Body. +func (c ClustersClient) responderForList(resp *http.Response) (result ListOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listbyresourcegroup_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listbyresourcegroup_autorest.go new file mode 100644 index 000000000000..6af1d374af18 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listbyresourcegroup_autorest.go @@ -0,0 +1,70 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +) + +// 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 + Model *ClusterListResult +} + +// ListByResourceGroup ... +func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + req, err := c.preparerForListByResourceGroup(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListByResourceGroup", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForListByResourceGroup(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListByResourceGroup", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForListByResourceGroup prepares the ListByResourceGroup request. +func (c ClustersClient) preparerForListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/providers/Microsoft.Kusto/clusters", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForListByResourceGroup handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (c ClustersClient) responderForListByResourceGroup(resp *http.Response) (result ListByResourceGroupOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listfollowerdatabases_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listfollowerdatabases_autorest.go new file mode 100644 index 000000000000..537aa6adf2d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listfollowerdatabases_autorest.go @@ -0,0 +1,69 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListFollowerDatabasesOperationResponse struct { + HttpResponse *http.Response + Model *FollowerDatabaseListResult +} + +// ListFollowerDatabases ... +func (c ClustersClient) ListFollowerDatabases(ctx context.Context, id ClusterId) (result ListFollowerDatabasesOperationResponse, err error) { + req, err := c.preparerForListFollowerDatabases(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListFollowerDatabases", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListFollowerDatabases", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForListFollowerDatabases(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListFollowerDatabases", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForListFollowerDatabases prepares the ListFollowerDatabases request. +func (c ClustersClient) preparerForListFollowerDatabases(ctx context.Context, id ClusterId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/listFollowerDatabases", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForListFollowerDatabases handles the response to the ListFollowerDatabases request. The method always +// closes the http.Response Body. +func (c ClustersClient) responderForListFollowerDatabases(resp *http.Response) (result ListFollowerDatabasesOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listlanguageextensions_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listlanguageextensions_autorest.go new file mode 100644 index 000000000000..56c9ec608e9f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listlanguageextensions_autorest.go @@ -0,0 +1,69 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListLanguageExtensionsOperationResponse struct { + HttpResponse *http.Response + Model *LanguageExtensionsList +} + +// ListLanguageExtensions ... +func (c ClustersClient) ListLanguageExtensions(ctx context.Context, id ClusterId) (result ListLanguageExtensionsOperationResponse, err error) { + req, err := c.preparerForListLanguageExtensions(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListLanguageExtensions", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListLanguageExtensions", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForListLanguageExtensions(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListLanguageExtensions", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForListLanguageExtensions prepares the ListLanguageExtensions request. +func (c ClustersClient) preparerForListLanguageExtensions(ctx context.Context, id ClusterId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/listLanguageExtensions", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForListLanguageExtensions handles the response to the ListLanguageExtensions request. The method always +// closes the http.Response Body. +func (c ClustersClient) responderForListLanguageExtensions(resp *http.Response) (result ListLanguageExtensionsOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listskusbyresource_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listskusbyresource_autorest.go new file mode 100644 index 000000000000..d5bc106385fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_listskusbyresource_autorest.go @@ -0,0 +1,69 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSkusByResourceOperationResponse struct { + HttpResponse *http.Response + Model *ListResourceSkusResult +} + +// ListSkusByResource ... +func (c ClustersClient) ListSkusByResource(ctx context.Context, id ClusterId) (result ListSkusByResourceOperationResponse, err error) { + req, err := c.preparerForListSkusByResource(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListSkusByResource", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListSkusByResource", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForListSkusByResource(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "ListSkusByResource", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForListSkusByResource prepares the ListSkusByResource request. +func (c ClustersClient) preparerForListSkusByResource(ctx context.Context, id ClusterId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/skus", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForListSkusByResource handles the response to the ListSkusByResource request. The method always +// closes the http.Response Body. +func (c ClustersClient) responderForListSkusByResource(resp *http.Response) (result ListSkusByResourceOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_removelanguageextensions_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_removelanguageextensions_autorest.go new file mode 100644 index 000000000000..f775026ed20c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_removelanguageextensions_autorest.go @@ -0,0 +1,79 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RemoveLanguageExtensionsOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// RemoveLanguageExtensions ... +func (c ClustersClient) RemoveLanguageExtensions(ctx context.Context, id ClusterId, input LanguageExtensionsList) (result RemoveLanguageExtensionsOperationResponse, err error) { + req, err := c.preparerForRemoveLanguageExtensions(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "RemoveLanguageExtensions", nil, "Failure preparing request") + return + } + + result, err = c.senderForRemoveLanguageExtensions(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "RemoveLanguageExtensions", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// RemoveLanguageExtensionsThenPoll performs RemoveLanguageExtensions then polls until it's completed +func (c ClustersClient) RemoveLanguageExtensionsThenPoll(ctx context.Context, id ClusterId, input LanguageExtensionsList) error { + result, err := c.RemoveLanguageExtensions(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RemoveLanguageExtensions: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after RemoveLanguageExtensions: %+v", err) + } + + return nil +} + +// preparerForRemoveLanguageExtensions prepares the RemoveLanguageExtensions request. +func (c ClustersClient) preparerForRemoveLanguageExtensions(ctx context.Context, id ClusterId, input LanguageExtensionsList) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/removeLanguageExtensions", id.ID())), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForRemoveLanguageExtensions sends the RemoveLanguageExtensions request. The method will close the +// http.Response Body if it receives an error. +func (c ClustersClient) senderForRemoveLanguageExtensions(ctx context.Context, req *http.Request) (future RemoveLanguageExtensionsOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_start_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_start_autorest.go new file mode 100644 index 000000000000..251d420e16be --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_start_autorest.go @@ -0,0 +1,78 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// Start ... +func (c ClustersClient) Start(ctx context.Context, id ClusterId) (result StartOperationResponse, err error) { + req, err := c.preparerForStart(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "Start", nil, "Failure preparing request") + return + } + + result, err = c.senderForStart(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "Start", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// StartThenPoll performs Start then polls until it's completed +func (c ClustersClient) StartThenPoll(ctx context.Context, id ClusterId) error { + result, err := c.Start(ctx, id) + if err != nil { + return fmt.Errorf("performing Start: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after Start: %+v", err) + } + + return nil +} + +// preparerForStart prepares the Start request. +func (c ClustersClient) preparerForStart(ctx context.Context, id ClusterId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/start", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForStart sends the Start request. The method will close the +// http.Response Body if it receives an error. +func (c ClustersClient) senderForStart(ctx context.Context, req *http.Request) (future StartOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_stop_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_stop_autorest.go new file mode 100644 index 000000000000..5eb506e67913 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_stop_autorest.go @@ -0,0 +1,78 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// Stop ... +func (c ClustersClient) Stop(ctx context.Context, id ClusterId) (result StopOperationResponse, err error) { + req, err := c.preparerForStop(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "Stop", nil, "Failure preparing request") + return + } + + result, err = c.senderForStop(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "Stop", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// StopThenPoll performs Stop then polls until it's completed +func (c ClustersClient) StopThenPoll(ctx context.Context, id ClusterId) error { + result, err := c.Stop(ctx, id) + if err != nil { + return fmt.Errorf("performing Stop: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after Stop: %+v", err) + } + + return nil +} + +// preparerForStop prepares the Stop request. +func (c ClustersClient) preparerForStop(ctx context.Context, id ClusterId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/stop", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForStop sends the Stop request. The method will close the +// http.Response Body if it receives an error. +func (c ClustersClient) senderForStop(ctx context.Context, req *http.Request) (future StopOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_update_autorest.go new file mode 100644 index 000000000000..2709f525adae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/method_update_autorest.go @@ -0,0 +1,108 @@ +package clusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +type UpdateOperationOptions struct { + IfMatch *string +} + +func DefaultUpdateOperationOptions() UpdateOperationOptions { + return UpdateOperationOptions{} +} + +func (o UpdateOperationOptions) toHeaders() map[string]interface{} { + out := make(map[string]interface{}) + + if o.IfMatch != nil { + out["If-Match"] = *o.IfMatch + } + + return out +} + +func (o UpdateOperationOptions) toQueryString() map[string]interface{} { + out := make(map[string]interface{}) + + return out +} + +// Update ... +func (c ClustersClient) Update(ctx context.Context, id ClusterId, input ClusterUpdate, options UpdateOperationOptions) (result UpdateOperationResponse, err error) { + req, err := c.preparerForUpdate(ctx, id, input, options) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "Update", nil, "Failure preparing request") + return + } + + result, err = c.senderForUpdate(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "clusters.ClustersClient", "Update", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c ClustersClient) UpdateThenPoll(ctx context.Context, id ClusterId, input ClusterUpdate, options UpdateOperationOptions) error { + result, err := c.Update(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} + +// preparerForUpdate prepares the Update request. +func (c ClustersClient) preparerForUpdate(ctx context.Context, id ClusterId, input ClusterUpdate, options UpdateOperationOptions) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + for k, v := range options.toQueryString() { + queryParameters[k] = autorest.Encode("query", v) + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(c.baseUri), + autorest.WithHeaders(options.toHeaders()), + autorest.WithPath(id.ID()), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForUpdate sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (c ClustersClient) senderForUpdate(ctx context.Context, req *http.Request) (future UpdateOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_acceptedaudiences.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_acceptedaudiences.go new file mode 100644 index 000000000000..380c1812f402 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_acceptedaudiences.go @@ -0,0 +1,8 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AcceptedAudiences struct { + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azurecapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azurecapacity.go new file mode 100644 index 000000000000..45346d20b10b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azurecapacity.go @@ -0,0 +1,11 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureCapacity struct { + Default int64 `json:"default"` + Maximum int64 `json:"maximum"` + Minimum int64 `json:"minimum"` + ScaleType AzureScaleType `json:"scaleType"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azureresourcesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azureresourcesku.go new file mode 100644 index 000000000000..502d4ff7bef7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azureresourcesku.go @@ -0,0 +1,10 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureResourceSku struct { + Capacity *AzureCapacity `json:"capacity,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Sku *AzureSku `json:"sku,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azuresku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azuresku.go new file mode 100644 index 000000000000..ec5553a4bd44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_azuresku.go @@ -0,0 +1,10 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureSku struct { + Capacity *int64 `json:"capacity,omitempty"` + Name AzureSkuName `json:"name"` + Tier AzureSkuTier `json:"tier"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_checknameresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_checknameresult.go new file mode 100644 index 000000000000..a8e7037cce2a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_checknameresult.go @@ -0,0 +1,11 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameResult struct { + Message *string `json:"message,omitempty"` + Name *string `json:"name,omitempty"` + NameAvailable *bool `json:"nameAvailable,omitempty"` + Reason *Reason `json:"reason,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_cluster.go new file mode 100644 index 000000000000..a214c6249dee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_cluster.go @@ -0,0 +1,24 @@ +package clusters + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Cluster struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *ClusterProperties `json:"properties,omitempty"` + Sku AzureSku `json:"sku"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterchecknamerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterchecknamerequest.go new file mode 100644 index 000000000000..2c588e8314d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterchecknamerequest.go @@ -0,0 +1,9 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ClusterCheckNameRequest struct { + Name string `json:"name"` + Type ClusterType `json:"type"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterlistresult.go new file mode 100644 index 000000000000..b556dcab107f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterlistresult.go @@ -0,0 +1,8 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ClusterListResult struct { + Value *[]Cluster `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterproperties.go new file mode 100644 index 000000000000..4780f3c64cac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterproperties.go @@ -0,0 +1,31 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ClusterProperties struct { + AcceptedAudiences *[]AcceptedAudiences `json:"acceptedAudiences,omitempty"` + AllowedFqdnList *[]string `json:"allowedFqdnList,omitempty"` + AllowedIPRangeList *[]string `json:"allowedIpRangeList,omitempty"` + DataIngestionUri *string `json:"dataIngestionUri,omitempty"` + EnableAutoStop *bool `json:"enableAutoStop,omitempty"` + EnableDiskEncryption *bool `json:"enableDiskEncryption,omitempty"` + EnableDoubleEncryption *bool `json:"enableDoubleEncryption,omitempty"` + EnablePurge *bool `json:"enablePurge,omitempty"` + EnableStreamingIngest *bool `json:"enableStreamingIngest,omitempty"` + EngineType *EngineType `json:"engineType,omitempty"` + KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` + LanguageExtensions *LanguageExtensionsList `json:"languageExtensions,omitempty"` + OptimizedAutoscale *OptimizedAutoscale `json:"optimizedAutoscale,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPType *PublicIPType `json:"publicIPType,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + RestrictOutboundNetworkAccess *ClusterNetworkAccessFlag `json:"restrictOutboundNetworkAccess,omitempty"` + State *State `json:"state,omitempty"` + StateReason *string `json:"stateReason,omitempty"` + TrustedExternalTenants *[]TrustedExternalTenant `json:"trustedExternalTenants,omitempty"` + Uri *string `json:"uri,omitempty"` + VirtualClusterGraduationProperties *string `json:"virtualClusterGraduationProperties,omitempty"` + VirtualNetworkConfiguration *VirtualNetworkConfiguration `json:"virtualNetworkConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterupdate.go new file mode 100644 index 000000000000..f35b3e1de9f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_clusterupdate.go @@ -0,0 +1,19 @@ +package clusters + +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 ClusterUpdate struct { + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ClusterProperties `json:"properties,omitempty"` + Sku *AzureSku `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/kusto/2022-12-29/clusters/model_diagnosevirtualnetworkresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_diagnosevirtualnetworkresult.go new file mode 100644 index 000000000000..8cbb2a101185 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_diagnosevirtualnetworkresult.go @@ -0,0 +1,8 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DiagnoseVirtualNetworkResult struct { + Findings *[]string `json:"findings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_followerdatabasedefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_followerdatabasedefinition.go new file mode 100644 index 000000000000..59b0a5646a83 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_followerdatabasedefinition.go @@ -0,0 +1,12 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FollowerDatabaseDefinition struct { + AttachedDatabaseConfigurationName string `json:"attachedDatabaseConfigurationName"` + ClusterResourceId string `json:"clusterResourceId"` + DatabaseName *string `json:"databaseName,omitempty"` + DatabaseShareOrigin *DatabaseShareOrigin `json:"databaseShareOrigin,omitempty"` + TableLevelSharingProperties *TableLevelSharingProperties `json:"tableLevelSharingProperties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_followerdatabaselistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_followerdatabaselistresult.go new file mode 100644 index 000000000000..21440cb4c913 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_followerdatabaselistresult.go @@ -0,0 +1,8 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FollowerDatabaseListResult struct { + Value *[]FollowerDatabaseDefinition `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_keyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_keyvaultproperties.go new file mode 100644 index 000000000000..1585ac057714 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_keyvaultproperties.go @@ -0,0 +1,11 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KeyVaultProperties struct { + KeyName *string `json:"keyName,omitempty"` + KeyVaultUri *string `json:"keyVaultUri,omitempty"` + KeyVersion *string `json:"keyVersion,omitempty"` + UserIdentity *string `json:"userIdentity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_languageextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_languageextension.go new file mode 100644 index 000000000000..c585578c9584 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_languageextension.go @@ -0,0 +1,9 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LanguageExtension struct { + LanguageExtensionImageName *LanguageExtensionImageName `json:"languageExtensionImageName,omitempty"` + LanguageExtensionName *LanguageExtensionName `json:"languageExtensionName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_languageextensionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_languageextensionslist.go new file mode 100644 index 000000000000..be274ec2cf0e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_languageextensionslist.go @@ -0,0 +1,8 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LanguageExtensionsList struct { + Value *[]LanguageExtension `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_listresourceskusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_listresourceskusresult.go new file mode 100644 index 000000000000..2cf5909b9d5c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_listresourceskusresult.go @@ -0,0 +1,8 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListResourceSkusResult struct { + Value *[]AzureResourceSku `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_optimizedautoscale.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_optimizedautoscale.go new file mode 100644 index 000000000000..341a31384811 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_optimizedautoscale.go @@ -0,0 +1,11 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OptimizedAutoscale struct { + IsEnabled bool `json:"isEnabled"` + Maximum int64 `json:"maximum"` + Minimum int64 `json:"minimum"` + Version int64 `json:"version"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointconnection.go new file mode 100644 index 000000000000..87e04718600f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointconnection.go @@ -0,0 +1,16 @@ +package clusters + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..3c959462977e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointconnectionproperties.go @@ -0,0 +1,11 @@ +package clusters + +// 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 *PrivateEndpointProperty `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateProperty `json:"privateLinkServiceConnectionState"` + ProvisioningState *string `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointproperty.go new file mode 100644 index 000000000000..5da9b341454c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privateendpointproperty.go @@ -0,0 +1,8 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperty struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privatelinkserviceconnectionstateproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privatelinkserviceconnectionstateproperty.go new file mode 100644 index 000000000000..e4b579946280 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_privatelinkserviceconnectionstateproperty.go @@ -0,0 +1,10 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionStateProperty struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_tablelevelsharingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_tablelevelsharingproperties.go new file mode 100644 index 000000000000..34b322b02dcc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_tablelevelsharingproperties.go @@ -0,0 +1,15 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TableLevelSharingProperties struct { + ExternalTablesToExclude *[]string `json:"externalTablesToExclude,omitempty"` + ExternalTablesToInclude *[]string `json:"externalTablesToInclude,omitempty"` + FunctionsToExclude *[]string `json:"functionsToExclude,omitempty"` + FunctionsToInclude *[]string `json:"functionsToInclude,omitempty"` + MaterializedViewsToExclude *[]string `json:"materializedViewsToExclude,omitempty"` + MaterializedViewsToInclude *[]string `json:"materializedViewsToInclude,omitempty"` + TablesToExclude *[]string `json:"tablesToExclude,omitempty"` + TablesToInclude *[]string `json:"tablesToInclude,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_trustedexternaltenant.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_trustedexternaltenant.go new file mode 100644 index 000000000000..e589152aa78b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_trustedexternaltenant.go @@ -0,0 +1,8 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrustedExternalTenant struct { + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_virtualnetworkconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_virtualnetworkconfiguration.go new file mode 100644 index 000000000000..1269f4947899 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/model_virtualnetworkconfiguration.go @@ -0,0 +1,10 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkConfiguration struct { + DataManagementPublicIPId string `json:"dataManagementPublicIpId"` + EnginePublicIPId string `json:"enginePublicIpId"` + SubnetId string `json:"subnetId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/version.go new file mode 100644 index 000000000000..1d470ebe4d5f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters/version.go @@ -0,0 +1,12 @@ +package clusters + +import "fmt" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2022-12-29" + +func userAgent() string { + return fmt.Sprintf("hashicorp/go-azure-sdk/clusters/%s", defaultApiVersion) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/README.md index d06c17e44461..64ece690e279 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments` Documentation -The `databaseprincipalassignments` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-02-01`). +The `databaseprincipalassignments` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-12-29`). 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/kusto/2022-02-01/databaseprincipalassignments" +import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/constants.go similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/constants.go index 6721f6b98d6e..080703a10e25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/constants.go @@ -104,6 +104,7 @@ func parsePrincipalType(input string) (*PrincipalType, error) { type ProvisioningState string const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" @@ -114,6 +115,7 @@ const ( func PossibleValuesForProvisioningState() []string { return []string{ + string(ProvisioningStateCanceled), string(ProvisioningStateCreating), string(ProvisioningStateDeleting), string(ProvisioningStateFailed), @@ -125,6 +127,7 @@ func PossibleValuesForProvisioningState() []string { func parseProvisioningState(input string) (*ProvisioningState, error) { vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, "creating": ProvisioningStateCreating, "deleting": ProvisioningStateDeleting, "failed": ProvisioningStateFailed, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/id_database.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/id_database.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/id_database.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/id_databaseprincipalassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/id_databaseprincipalassignment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/id_databaseprincipalassignment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/id_databaseprincipalassignment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/method_checknameavailability_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/method_checknameavailability_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/method_checknameavailability_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/method_checknameavailability_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/model_checknameresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/model_checknameresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/model_checknameresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/model_checknameresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/model_databaseprincipalassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/model_databaseprincipalassignment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/model_databaseprincipalassignment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/model_databaseprincipalassignment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/model_databaseprincipalassignmentchecknamerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/model_databaseprincipalassignmentchecknamerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/model_databaseprincipalassignmentchecknamerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/model_databaseprincipalassignmentchecknamerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/model_databaseprincipalassignmentlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/model_databaseprincipalassignmentlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/model_databaseprincipalassignmentlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/model_databaseprincipalassignmentlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/model_databaseprincipalproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/model_databaseprincipalproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/model_databaseprincipalproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/model_databaseprincipalproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/version.go index dd6f9ae9147e..3e3240953860 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-02-01" +const defaultApiVersion = "2022-12-29" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/databaseprincipalassignments/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/README.md new file mode 100644 index 000000000000..2b60cfb31690 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/README.md @@ -0,0 +1,177 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases` Documentation + +The `databases` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-12-29`). + +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/kusto/2022-12-29/databases" +``` + + +### Client Initialization + +```go +client := databases.NewDatabasesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `DatabasesClient.AddPrincipals` + +```go +ctx := context.TODO() +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") + +payload := databases.DatabasePrincipalListRequest{ + // ... +} + + +read, err := client.AddPrincipals(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DatabasesClient.CheckNameAvailability` + +```go +ctx := context.TODO() +id := databases.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +payload := databases.CheckNameRequest{ + // ... +} + + +read, err := client.CheckNameAvailability(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DatabasesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") + +payload := databases.Database{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, databases.DefaultCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `DatabasesClient.Delete` + +```go +ctx := context.TODO() +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `DatabasesClient.Get` + +```go +ctx := context.TODO() +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DatabasesClient.ListByCluster` + +```go +ctx := context.TODO() +id := databases.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") + +read, err := client.ListByCluster(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DatabasesClient.ListPrincipals` + +```go +ctx := context.TODO() +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") + +read, err := client.ListPrincipals(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DatabasesClient.RemovePrincipals` + +```go +ctx := context.TODO() +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") + +payload := databases.DatabasePrincipalListRequest{ + // ... +} + + +read, err := client.RemovePrincipals(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DatabasesClient.Update` + +```go +ctx := context.TODO() +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") + +payload := databases.Database{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload, databases.DefaultUpdateOperationOptions()); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/client.go new file mode 100644 index 000000000000..5305d65eb6c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/client.go @@ -0,0 +1,18 @@ +package databases + +import "github.com/Azure/go-autorest/autorest" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DatabasesClient struct { + Client autorest.Client + baseUri string +} + +func NewDatabasesClientWithBaseURI(endpoint string) DatabasesClient { + return DatabasesClient{ + Client: autorest.NewClientWithUserAgent(userAgent()), + baseUri: endpoint, + } +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/constants.go new file mode 100644 index 000000000000..193bf1d5791f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/constants.go @@ -0,0 +1,294 @@ +package databases + +import "strings" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CallerRole string + +const ( + CallerRoleAdmin CallerRole = "Admin" + CallerRoleNone CallerRole = "None" +) + +func PossibleValuesForCallerRole() []string { + return []string{ + string(CallerRoleAdmin), + string(CallerRoleNone), + } +} + +func parseCallerRole(input string) (*CallerRole, error) { + vals := map[string]CallerRole{ + "admin": CallerRoleAdmin, + "none": CallerRoleNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CallerRole(input) + return &out, nil +} + +type DatabasePrincipalRole string + +const ( + DatabasePrincipalRoleAdmin DatabasePrincipalRole = "Admin" + DatabasePrincipalRoleIngestor DatabasePrincipalRole = "Ingestor" + DatabasePrincipalRoleMonitor DatabasePrincipalRole = "Monitor" + DatabasePrincipalRoleUnrestrictedViewer DatabasePrincipalRole = "UnrestrictedViewer" + DatabasePrincipalRoleUser DatabasePrincipalRole = "User" + DatabasePrincipalRoleViewer DatabasePrincipalRole = "Viewer" +) + +func PossibleValuesForDatabasePrincipalRole() []string { + return []string{ + string(DatabasePrincipalRoleAdmin), + string(DatabasePrincipalRoleIngestor), + string(DatabasePrincipalRoleMonitor), + string(DatabasePrincipalRoleUnrestrictedViewer), + string(DatabasePrincipalRoleUser), + string(DatabasePrincipalRoleViewer), + } +} + +func parseDatabasePrincipalRole(input string) (*DatabasePrincipalRole, error) { + vals := map[string]DatabasePrincipalRole{ + "admin": DatabasePrincipalRoleAdmin, + "ingestor": DatabasePrincipalRoleIngestor, + "monitor": DatabasePrincipalRoleMonitor, + "unrestrictedviewer": DatabasePrincipalRoleUnrestrictedViewer, + "user": DatabasePrincipalRoleUser, + "viewer": DatabasePrincipalRoleViewer, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DatabasePrincipalRole(input) + return &out, nil +} + +type DatabasePrincipalType string + +const ( + DatabasePrincipalTypeApp DatabasePrincipalType = "App" + DatabasePrincipalTypeGroup DatabasePrincipalType = "Group" + DatabasePrincipalTypeUser DatabasePrincipalType = "User" +) + +func PossibleValuesForDatabasePrincipalType() []string { + return []string{ + string(DatabasePrincipalTypeApp), + string(DatabasePrincipalTypeGroup), + string(DatabasePrincipalTypeUser), + } +} + +func parseDatabasePrincipalType(input string) (*DatabasePrincipalType, error) { + vals := map[string]DatabasePrincipalType{ + "app": DatabasePrincipalTypeApp, + "group": DatabasePrincipalTypeGroup, + "user": DatabasePrincipalTypeUser, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DatabasePrincipalType(input) + return &out, nil +} + +type DatabaseShareOrigin string + +const ( + DatabaseShareOriginDataShare DatabaseShareOrigin = "DataShare" + DatabaseShareOriginDirect DatabaseShareOrigin = "Direct" + DatabaseShareOriginOther DatabaseShareOrigin = "Other" +) + +func PossibleValuesForDatabaseShareOrigin() []string { + return []string{ + string(DatabaseShareOriginDataShare), + string(DatabaseShareOriginDirect), + string(DatabaseShareOriginOther), + } +} + +func parseDatabaseShareOrigin(input string) (*DatabaseShareOrigin, error) { + vals := map[string]DatabaseShareOrigin{ + "datashare": DatabaseShareOriginDataShare, + "direct": DatabaseShareOriginDirect, + "other": DatabaseShareOriginOther, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DatabaseShareOrigin(input) + return &out, nil +} + +type Kind string + +const ( + KindReadOnlyFollowing Kind = "ReadOnlyFollowing" + KindReadWrite Kind = "ReadWrite" +) + +func PossibleValuesForKind() []string { + return []string{ + string(KindReadOnlyFollowing), + string(KindReadWrite), + } +} + +func parseKind(input string) (*Kind, error) { + vals := map[string]Kind{ + "readonlyfollowing": KindReadOnlyFollowing, + "readwrite": KindReadWrite, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Kind(input) + return &out, nil +} + +type PrincipalsModificationKind string + +const ( + PrincipalsModificationKindNone PrincipalsModificationKind = "None" + PrincipalsModificationKindReplace PrincipalsModificationKind = "Replace" + PrincipalsModificationKindUnion PrincipalsModificationKind = "Union" +) + +func PossibleValuesForPrincipalsModificationKind() []string { + return []string{ + string(PrincipalsModificationKindNone), + string(PrincipalsModificationKindReplace), + string(PrincipalsModificationKindUnion), + } +} + +func parsePrincipalsModificationKind(input string) (*PrincipalsModificationKind, error) { + vals := map[string]PrincipalsModificationKind{ + "none": PrincipalsModificationKindNone, + "replace": PrincipalsModificationKindReplace, + "union": PrincipalsModificationKindUnion, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrincipalsModificationKind(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" + ProvisioningStateCreating ProvisioningState = "Creating" + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateMoving ProvisioningState = "Moving" + ProvisioningStateRunning ProvisioningState = "Running" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateCanceled), + string(ProvisioningStateCreating), + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateMoving), + string(ProvisioningStateRunning), + string(ProvisioningStateSucceeded), + } +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, + "creating": ProvisioningStateCreating, + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "moving": ProvisioningStateMoving, + "running": ProvisioningStateRunning, + "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 Reason string + +const ( + ReasonAlreadyExists Reason = "AlreadyExists" + ReasonInvalid Reason = "Invalid" +) + +func PossibleValuesForReason() []string { + return []string{ + string(ReasonAlreadyExists), + string(ReasonInvalid), + } +} + +func parseReason(input string) (*Reason, error) { + vals := map[string]Reason{ + "alreadyexists": ReasonAlreadyExists, + "invalid": ReasonInvalid, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Reason(input) + return &out, nil +} + +type Type string + +const ( + TypeMicrosoftPointKustoClustersAttachedDatabaseConfigurations Type = "Microsoft.Kusto/clusters/attachedDatabaseConfigurations" + TypeMicrosoftPointKustoClustersDatabases Type = "Microsoft.Kusto/clusters/databases" +) + +func PossibleValuesForType() []string { + return []string{ + string(TypeMicrosoftPointKustoClustersAttachedDatabaseConfigurations), + string(TypeMicrosoftPointKustoClustersDatabases), + } +} + +func parseType(input string) (*Type, error) { + vals := map[string]Type{ + "microsoft.kusto/clusters/attacheddatabaseconfigurations": TypeMicrosoftPointKustoClustersAttachedDatabaseConfigurations, + "microsoft.kusto/clusters/databases": TypeMicrosoftPointKustoClustersDatabases, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Type(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/id_cluster.go new file mode 100644 index 000000000000..c001f3addd72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/id_cluster.go @@ -0,0 +1,127 @@ +package databases + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = ClusterId{} + +// ClusterId is a struct representing the Resource ID for a Cluster +type ClusterId struct { + SubscriptionId string + ResourceGroupName string + ClusterName string +} + +// NewClusterID returns a new ClusterId struct +func NewClusterID(subscriptionId string, resourceGroupName string, clusterName string) ClusterId { + return ClusterId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ClusterName: clusterName, + } +} + +// ParseClusterID parses 'input' into a ClusterId +func ParseClusterID(input string) (*ClusterId, error) { + parser := resourceids.NewParserFromResourceIdType(ClusterId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ClusterId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ClusterName, ok = parsed.Parsed["clusterName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "clusterName", *parsed) + } + + return &id, nil +} + +// ParseClusterIDInsensitively parses 'input' case-insensitively into a ClusterId +// note: this method should only be used for API response data and not user input +func ParseClusterIDInsensitively(input string) (*ClusterId, error) { + parser := resourceids.NewParserFromResourceIdType(ClusterId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := ClusterId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ClusterName, ok = parsed.Parsed["clusterName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "clusterName", *parsed) + } + + return &id, nil +} + +// ValidateClusterID checks that 'input' can be parsed as a Cluster ID +func ValidateClusterID(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 := ParseClusterID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Cluster ID +func (id ClusterId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Kusto/clusters/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ClusterName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Cluster ID +func (id ClusterId) 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("staticMicrosoftKusto", "Microsoft.Kusto", "Microsoft.Kusto"), + resourceids.StaticSegment("staticClusters", "clusters", "clusters"), + resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + } +} + +// String returns a human-readable description of this Cluster ID +func (id ClusterId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Cluster Name: %q", id.ClusterName), + } + return fmt.Sprintf("Cluster (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/id_database.go new file mode 100644 index 000000000000..5b3a47755ab3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/id_database.go @@ -0,0 +1,140 @@ +package databases + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ resourceids.ResourceId = DatabaseId{} + +// DatabaseId is a struct representing the Resource ID for a Database +type DatabaseId struct { + SubscriptionId string + ResourceGroupName string + ClusterName string + DatabaseName string +} + +// NewDatabaseID returns a new DatabaseId struct +func NewDatabaseID(subscriptionId string, resourceGroupName string, clusterName string, databaseName string) DatabaseId { + return DatabaseId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ClusterName: clusterName, + DatabaseName: databaseName, + } +} + +// ParseDatabaseID parses 'input' into a DatabaseId +func ParseDatabaseID(input string) (*DatabaseId, error) { + parser := resourceids.NewParserFromResourceIdType(DatabaseId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := DatabaseId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ClusterName, ok = parsed.Parsed["clusterName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "clusterName", *parsed) + } + + if id.DatabaseName, ok = parsed.Parsed["databaseName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "databaseName", *parsed) + } + + return &id, nil +} + +// ParseDatabaseIDInsensitively parses 'input' case-insensitively into a DatabaseId +// note: this method should only be used for API response data and not user input +func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error) { + parser := resourceids.NewParserFromResourceIdType(DatabaseId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + var ok bool + id := DatabaseId{} + + if id.SubscriptionId, ok = parsed.Parsed["subscriptionId"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", *parsed) + } + + if id.ResourceGroupName, ok = parsed.Parsed["resourceGroupName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", *parsed) + } + + if id.ClusterName, ok = parsed.Parsed["clusterName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "clusterName", *parsed) + } + + if id.DatabaseName, ok = parsed.Parsed["databaseName"]; !ok { + return nil, resourceids.NewSegmentNotSpecifiedError(id, "databaseName", *parsed) + } + + return &id, nil +} + +// ValidateDatabaseID checks that 'input' can be parsed as a Database ID +func ValidateDatabaseID(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 := ParseDatabaseID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Database ID +func (id DatabaseId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Kusto/clusters/%s/databases/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ClusterName, id.DatabaseName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Database ID +func (id DatabaseId) 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("staticMicrosoftKusto", "Microsoft.Kusto", "Microsoft.Kusto"), + resourceids.StaticSegment("staticClusters", "clusters", "clusters"), + resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.StaticSegment("staticDatabases", "databases", "databases"), + resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + } +} + +// String returns a human-readable description of this Database ID +func (id DatabaseId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Cluster Name: %q", id.ClusterName), + fmt.Sprintf("Database Name: %q", id.DatabaseName), + } + return fmt.Sprintf("Database (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_addprincipals_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_addprincipals_autorest.go new file mode 100644 index 000000000000..6d3b04ac3353 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_addprincipals_autorest.go @@ -0,0 +1,70 @@ +package databases + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddPrincipalsOperationResponse struct { + HttpResponse *http.Response + Model *DatabasePrincipalListResult +} + +// AddPrincipals ... +func (c DatabasesClient) AddPrincipals(ctx context.Context, id DatabaseId, input DatabasePrincipalListRequest) (result AddPrincipalsOperationResponse, err error) { + req, err := c.preparerForAddPrincipals(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "AddPrincipals", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "AddPrincipals", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForAddPrincipals(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "AddPrincipals", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForAddPrincipals prepares the AddPrincipals request. +func (c DatabasesClient) preparerForAddPrincipals(ctx context.Context, id DatabaseId, input DatabasePrincipalListRequest) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/addPrincipals", id.ID())), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForAddPrincipals handles the response to the AddPrincipals request. The method always +// closes the http.Response Body. +func (c DatabasesClient) responderForAddPrincipals(resp *http.Response) (result AddPrincipalsOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_checknameavailability_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_checknameavailability_autorest.go new file mode 100644 index 000000000000..80e7dffd7273 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_checknameavailability_autorest.go @@ -0,0 +1,70 @@ +package databases + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameAvailabilityOperationResponse struct { + HttpResponse *http.Response + Model *CheckNameResult +} + +// CheckNameAvailability ... +func (c DatabasesClient) CheckNameAvailability(ctx context.Context, id ClusterId, input CheckNameRequest) (result CheckNameAvailabilityOperationResponse, err error) { + req, err := c.preparerForCheckNameAvailability(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "CheckNameAvailability", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "CheckNameAvailability", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForCheckNameAvailability(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "CheckNameAvailability", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForCheckNameAvailability prepares the CheckNameAvailability request. +func (c DatabasesClient) preparerForCheckNameAvailability(ctx context.Context, id ClusterId, input CheckNameRequest) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/checkNameAvailability", id.ID())), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForCheckNameAvailability handles the response to the CheckNameAvailability request. The method always +// closes the http.Response Body. +func (c DatabasesClient) responderForCheckNameAvailability(resp *http.Response) (result CheckNameAvailabilityOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_createorupdate_autorest.go new file mode 100644 index 000000000000..5cd10473f0e3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_createorupdate_autorest.go @@ -0,0 +1,108 @@ +package databases + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// 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 polling.LongRunningPoller + HttpResponse *http.Response +} + +type CreateOrUpdateOperationOptions struct { + CallerRole *CallerRole +} + +func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { + return CreateOrUpdateOperationOptions{} +} + +func (o CreateOrUpdateOperationOptions) toHeaders() map[string]interface{} { + out := make(map[string]interface{}) + + return out +} + +func (o CreateOrUpdateOperationOptions) toQueryString() map[string]interface{} { + out := make(map[string]interface{}) + + if o.CallerRole != nil { + out["callerRole"] = *o.CallerRole + } + + return out +} + +// CreateOrUpdate ... +func (c DatabasesClient) CreateOrUpdate(ctx context.Context, id DatabaseId, input Database, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { + req, err := c.preparerForCreateOrUpdate(ctx, id, input, options) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "CreateOrUpdate", nil, "Failure preparing request") + return + } + + result, err = c.senderForCreateOrUpdate(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "CreateOrUpdate", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c DatabasesClient) CreateOrUpdateThenPoll(ctx context.Context, id DatabaseId, input Database, 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(); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} + +// preparerForCreateOrUpdate prepares the CreateOrUpdate request. +func (c DatabasesClient) preparerForCreateOrUpdate(ctx context.Context, id DatabaseId, input Database, options CreateOrUpdateOperationOptions) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + for k, v := range options.toQueryString() { + queryParameters[k] = autorest.Encode("query", v) + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(c.baseUri), + autorest.WithHeaders(options.toHeaders()), + autorest.WithPath(id.ID()), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForCreateOrUpdate sends the CreateOrUpdate request. The method will close the +// http.Response Body if it receives an error. +func (c DatabasesClient) senderForCreateOrUpdate(ctx context.Context, req *http.Request) (future CreateOrUpdateOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_delete_autorest.go new file mode 100644 index 000000000000..13221da85a68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_delete_autorest.go @@ -0,0 +1,78 @@ +package databases + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// Delete ... +func (c DatabasesClient) Delete(ctx context.Context, id DatabaseId) (result DeleteOperationResponse, err error) { + req, err := c.preparerForDelete(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "Delete", nil, "Failure preparing request") + return + } + + result, err = c.senderForDelete(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "Delete", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c DatabasesClient) DeleteThenPoll(ctx context.Context, id DatabaseId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} + +// preparerForDelete prepares the Delete request. +func (c DatabasesClient) preparerForDelete(ctx context.Context, id DatabaseId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsDelete(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForDelete sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (c DatabasesClient) senderForDelete(ctx context.Context, req *http.Request) (future DeleteOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_get_autorest.go new file mode 100644 index 000000000000..57d21e8e3181 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_get_autorest.go @@ -0,0 +1,77 @@ +package databases + +import ( + "context" + "encoding/json" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + Model *Database +} + +// Get ... +func (c DatabasesClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error) { + req, err := c.preparerForGet(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "Get", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "Get", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForGet(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "Get", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForGet prepares the Get request. +func (c DatabasesClient) preparerForGet(ctx context.Context, id DatabaseId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(id.ID()), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForGet handles the response to the Get request. The method always +// closes the http.Response Body. +func (c DatabasesClient) responderForGet(resp *http.Response) (result GetOperationResponse, err error) { + var respObj json.RawMessage + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&respObj), + autorest.ByClosing()) + result.HttpResponse = resp + if err != nil { + return + } + model, err := unmarshalDatabaseImplementation(respObj) + if err != nil { + return + } + result.Model = &model + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_listbycluster_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_listbycluster_autorest.go new file mode 100644 index 000000000000..5398539d7166 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_listbycluster_autorest.go @@ -0,0 +1,69 @@ +package databases + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByClusterOperationResponse struct { + HttpResponse *http.Response + Model *DatabaseListResult +} + +// ListByCluster ... +func (c DatabasesClient) ListByCluster(ctx context.Context, id ClusterId) (result ListByClusterOperationResponse, err error) { + req, err := c.preparerForListByCluster(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "ListByCluster", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "ListByCluster", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForListByCluster(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "ListByCluster", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForListByCluster prepares the ListByCluster request. +func (c DatabasesClient) preparerForListByCluster(ctx context.Context, id ClusterId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsGet(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/databases", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForListByCluster handles the response to the ListByCluster request. The method always +// closes the http.Response Body. +func (c DatabasesClient) responderForListByCluster(resp *http.Response) (result ListByClusterOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_listprincipals_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_listprincipals_autorest.go new file mode 100644 index 000000000000..9e383796e736 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_listprincipals_autorest.go @@ -0,0 +1,69 @@ +package databases + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPrincipalsOperationResponse struct { + HttpResponse *http.Response + Model *DatabasePrincipalListResult +} + +// ListPrincipals ... +func (c DatabasesClient) ListPrincipals(ctx context.Context, id DatabaseId) (result ListPrincipalsOperationResponse, err error) { + req, err := c.preparerForListPrincipals(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "ListPrincipals", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "ListPrincipals", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForListPrincipals(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "ListPrincipals", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForListPrincipals prepares the ListPrincipals request. +func (c DatabasesClient) preparerForListPrincipals(ctx context.Context, id DatabaseId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/listPrincipals", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForListPrincipals handles the response to the ListPrincipals request. The method always +// closes the http.Response Body. +func (c DatabasesClient) responderForListPrincipals(resp *http.Response) (result ListPrincipalsOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_removeprincipals_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_removeprincipals_autorest.go new file mode 100644 index 000000000000..85ff4300f051 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_removeprincipals_autorest.go @@ -0,0 +1,70 @@ +package databases + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RemovePrincipalsOperationResponse struct { + HttpResponse *http.Response + Model *DatabasePrincipalListResult +} + +// RemovePrincipals ... +func (c DatabasesClient) RemovePrincipals(ctx context.Context, id DatabaseId, input DatabasePrincipalListRequest) (result RemovePrincipalsOperationResponse, err error) { + req, err := c.preparerForRemovePrincipals(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "RemovePrincipals", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "RemovePrincipals", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForRemovePrincipals(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "RemovePrincipals", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForRemovePrincipals prepares the RemovePrincipals request. +func (c DatabasesClient) preparerForRemovePrincipals(ctx context.Context, id DatabaseId, input DatabasePrincipalListRequest) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/removePrincipals", id.ID())), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForRemovePrincipals handles the response to the RemovePrincipals request. The method always +// closes the http.Response Body. +func (c DatabasesClient) responderForRemovePrincipals(resp *http.Response) (result RemovePrincipalsOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_update_autorest.go new file mode 100644 index 000000000000..2fc55fed49e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/method_update_autorest.go @@ -0,0 +1,108 @@ +package databases + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +type UpdateOperationOptions struct { + CallerRole *CallerRole +} + +func DefaultUpdateOperationOptions() UpdateOperationOptions { + return UpdateOperationOptions{} +} + +func (o UpdateOperationOptions) toHeaders() map[string]interface{} { + out := make(map[string]interface{}) + + return out +} + +func (o UpdateOperationOptions) toQueryString() map[string]interface{} { + out := make(map[string]interface{}) + + if o.CallerRole != nil { + out["callerRole"] = *o.CallerRole + } + + return out +} + +// Update ... +func (c DatabasesClient) Update(ctx context.Context, id DatabaseId, input Database, options UpdateOperationOptions) (result UpdateOperationResponse, err error) { + req, err := c.preparerForUpdate(ctx, id, input, options) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "Update", nil, "Failure preparing request") + return + } + + result, err = c.senderForUpdate(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "databases.DatabasesClient", "Update", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c DatabasesClient) UpdateThenPoll(ctx context.Context, id DatabaseId, input Database, options UpdateOperationOptions) error { + result, err := c.Update(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} + +// preparerForUpdate prepares the Update request. +func (c DatabasesClient) preparerForUpdate(ctx context.Context, id DatabaseId, input Database, options UpdateOperationOptions) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + for k, v := range options.toQueryString() { + queryParameters[k] = autorest.Encode("query", v) + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(c.baseUri), + autorest.WithHeaders(options.toHeaders()), + autorest.WithPath(id.ID()), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForUpdate sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (c DatabasesClient) senderForUpdate(ctx context.Context, req *http.Request) (future UpdateOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_checknamerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_checknamerequest.go new file mode 100644 index 000000000000..105535ee5366 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_checknamerequest.go @@ -0,0 +1,9 @@ +package databases + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameRequest struct { + Name string `json:"name"` + Type Type `json:"type"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_checknameresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_checknameresult.go new file mode 100644 index 000000000000..2939f2274a56 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_checknameresult.go @@ -0,0 +1,11 @@ +package databases + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameResult struct { + Message *string `json:"message,omitempty"` + Name *string `json:"name,omitempty"` + NameAvailable *bool `json:"nameAvailable,omitempty"` + Reason *Reason `json:"reason,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_database.go new file mode 100644 index 000000000000..4ce3de9e11f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_database.go @@ -0,0 +1,56 @@ +package databases + +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 Database interface { +} + +func unmarshalDatabaseImplementation(input []byte) (Database, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling Database into map[string]interface: %+v", err) + } + + value, ok := temp["kind"].(string) + if !ok { + return nil, nil + } + + if strings.EqualFold(value, "ReadOnlyFollowing") { + var out ReadOnlyFollowingDatabase + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into ReadOnlyFollowingDatabase: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "ReadWrite") { + var out ReadWriteDatabase + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into ReadWriteDatabase: %+v", err) + } + return out, nil + } + + type RawDatabaseImpl struct { + Type string `json:"-"` + Values map[string]interface{} `json:"-"` + } + out := RawDatabaseImpl{ + Type: value, + Values: temp, + } + return out, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaselistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaselistresult.go new file mode 100644 index 000000000000..51d0e5c8156b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaselistresult.go @@ -0,0 +1,41 @@ +package databases + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DatabaseListResult struct { + Value *[]Database `json:"value,omitempty"` +} + +var _ json.Unmarshaler = &DatabaseListResult{} + +func (s *DatabaseListResult) UnmarshalJSON(bytes []byte) error { + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling DatabaseListResult into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["value"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling Value into list []json.RawMessage: %+v", err) + } + + output := make([]Database, 0) + for i, val := range listTemp { + impl, err := unmarshalDatabaseImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'Value' for 'DatabaseListResult': %+v", i, err) + } + output = append(output, impl) + } + s.Value = &output + } + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipal.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipal.go new file mode 100644 index 000000000000..221f188d7c47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipal.go @@ -0,0 +1,14 @@ +package databases + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DatabasePrincipal struct { + AppId *string `json:"appId,omitempty"` + Email *string `json:"email,omitempty"` + Fqn *string `json:"fqn,omitempty"` + Name string `json:"name"` + Role DatabasePrincipalRole `json:"role"` + TenantName *string `json:"tenantName,omitempty"` + Type DatabasePrincipalType `json:"type"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipallistrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipallistrequest.go new file mode 100644 index 000000000000..c640d6f914b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipallistrequest.go @@ -0,0 +1,8 @@ +package databases + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DatabasePrincipalListRequest struct { + Value *[]DatabasePrincipal `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipallistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipallistresult.go new file mode 100644 index 000000000000..65247b9f69a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databaseprincipallistresult.go @@ -0,0 +1,8 @@ +package databases + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DatabasePrincipalListResult struct { + Value *[]DatabasePrincipal `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databasestatistics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databasestatistics.go new file mode 100644 index 000000000000..8cda1deb8e97 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_databasestatistics.go @@ -0,0 +1,8 @@ +package databases + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DatabaseStatistics struct { + Size *float64 `json:"size,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readonlyfollowingdatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readonlyfollowingdatabase.go new file mode 100644 index 000000000000..c31d685b6a22 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readonlyfollowingdatabase.go @@ -0,0 +1,45 @@ +package databases + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ Database = ReadOnlyFollowingDatabase{} + +type ReadOnlyFollowingDatabase struct { + Properties *ReadOnlyFollowingDatabaseProperties `json:"properties,omitempty"` + + // Fields inherited from Database + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +var _ json.Marshaler = ReadOnlyFollowingDatabase{} + +func (s ReadOnlyFollowingDatabase) MarshalJSON() ([]byte, error) { + type wrapper ReadOnlyFollowingDatabase + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling ReadOnlyFollowingDatabase: %+v", err) + } + + var decoded map[string]interface{} + if err := json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling ReadOnlyFollowingDatabase: %+v", err) + } + decoded["kind"] = "ReadOnlyFollowing" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling ReadOnlyFollowingDatabase: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readonlyfollowingdatabaseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readonlyfollowingdatabaseproperties.go new file mode 100644 index 000000000000..99676a4872ac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readonlyfollowingdatabaseproperties.go @@ -0,0 +1,17 @@ +package databases + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ReadOnlyFollowingDatabaseProperties struct { + AttachedDatabaseConfigurationName *string `json:"attachedDatabaseConfigurationName,omitempty"` + DatabaseShareOrigin *DatabaseShareOrigin `json:"databaseShareOrigin,omitempty"` + HotCachePeriod *string `json:"hotCachePeriod,omitempty"` + LeaderClusterResourceId *string `json:"leaderClusterResourceId,omitempty"` + OriginalDatabaseName *string `json:"originalDatabaseName,omitempty"` + PrincipalsModificationKind *PrincipalsModificationKind `json:"principalsModificationKind,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SoftDeletePeriod *string `json:"softDeletePeriod,omitempty"` + Statistics *DatabaseStatistics `json:"statistics,omitempty"` + TableLevelSharingProperties *TableLevelSharingProperties `json:"tableLevelSharingProperties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readwritedatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readwritedatabase.go new file mode 100644 index 000000000000..24aa831e2ef0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readwritedatabase.go @@ -0,0 +1,45 @@ +package databases + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ Database = ReadWriteDatabase{} + +type ReadWriteDatabase struct { + Properties *ReadWriteDatabaseProperties `json:"properties,omitempty"` + + // Fields inherited from Database + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +var _ json.Marshaler = ReadWriteDatabase{} + +func (s ReadWriteDatabase) MarshalJSON() ([]byte, error) { + type wrapper ReadWriteDatabase + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling ReadWriteDatabase: %+v", err) + } + + var decoded map[string]interface{} + if err := json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling ReadWriteDatabase: %+v", err) + } + decoded["kind"] = "ReadWrite" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling ReadWriteDatabase: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readwritedatabaseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readwritedatabaseproperties.go new file mode 100644 index 000000000000..a48f00898774 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_readwritedatabaseproperties.go @@ -0,0 +1,12 @@ +package databases + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ReadWriteDatabaseProperties struct { + HotCachePeriod *string `json:"hotCachePeriod,omitempty"` + IsFollowed *bool `json:"isFollowed,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SoftDeletePeriod *string `json:"softDeletePeriod,omitempty"` + Statistics *DatabaseStatistics `json:"statistics,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_tablelevelsharingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_tablelevelsharingproperties.go new file mode 100644 index 000000000000..7fed07aec373 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/model_tablelevelsharingproperties.go @@ -0,0 +1,15 @@ +package databases + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TableLevelSharingProperties struct { + ExternalTablesToExclude *[]string `json:"externalTablesToExclude,omitempty"` + ExternalTablesToInclude *[]string `json:"externalTablesToInclude,omitempty"` + FunctionsToExclude *[]string `json:"functionsToExclude,omitempty"` + FunctionsToInclude *[]string `json:"functionsToInclude,omitempty"` + MaterializedViewsToExclude *[]string `json:"materializedViewsToExclude,omitempty"` + MaterializedViewsToInclude *[]string `json:"materializedViewsToInclude,omitempty"` + TablesToExclude *[]string `json:"tablesToExclude,omitempty"` + TablesToInclude *[]string `json:"tablesToInclude,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/version.go new file mode 100644 index 000000000000..e4552229dc1b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases/version.go @@ -0,0 +1,12 @@ +package databases + +import "fmt" + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2022-12-29" + +func userAgent() string { + return fmt.Sprintf("hashicorp/go-azure-sdk/databases/%s", defaultApiVersion) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/README.md index e3909bb0c22b..ca1b4077bf4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections` Documentation -The `dataconnections` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-02-01`). +The `dataconnections` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-12-29`). 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/kusto/2022-02-01/dataconnections" +import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/constants.go similarity index 98% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/constants.go index f8302a9f12db..5d891c8d11b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/constants.go @@ -64,6 +64,7 @@ func parseCompression(input string) (*Compression, error) { type DataConnectionKind string const ( + DataConnectionKindCosmosDb DataConnectionKind = "CosmosDb" DataConnectionKindEventGrid DataConnectionKind = "EventGrid" DataConnectionKindEventHub DataConnectionKind = "EventHub" DataConnectionKindIotHub DataConnectionKind = "IotHub" @@ -71,6 +72,7 @@ const ( func PossibleValuesForDataConnectionKind() []string { return []string{ + string(DataConnectionKindCosmosDb), string(DataConnectionKindEventGrid), string(DataConnectionKindEventHub), string(DataConnectionKindIotHub), @@ -79,6 +81,7 @@ func PossibleValuesForDataConnectionKind() []string { func parseDataConnectionKind(input string) (*DataConnectionKind, error) { vals := map[string]DataConnectionKind{ + "cosmosdb": DataConnectionKindCosmosDb, "eventgrid": DataConnectionKindEventGrid, "eventhub": DataConnectionKindEventHub, "iothub": DataConnectionKindIotHub, @@ -358,6 +361,7 @@ func parseIotHubDataFormat(input string) (*IotHubDataFormat, error) { type ProvisioningState string const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" @@ -368,6 +372,7 @@ const ( func PossibleValuesForProvisioningState() []string { return []string{ + string(ProvisioningStateCanceled), string(ProvisioningStateCreating), string(ProvisioningStateDeleting), string(ProvisioningStateFailed), @@ -379,6 +384,7 @@ func PossibleValuesForProvisioningState() []string { func parseProvisioningState(input string) (*ProvisioningState, error) { vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, "creating": ProvisioningStateCreating, "deleting": ProvisioningStateDeleting, "failed": ProvisioningStateFailed, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/id_database.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/id_database.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/id_database.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/id_dataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/id_dataconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/id_dataconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/id_dataconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_checknameavailability_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_checknameavailability_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_checknameavailability_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_checknameavailability_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_dataconnectionvalidation_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_dataconnectionvalidation_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_dataconnectionvalidation_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_dataconnectionvalidation_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_listbydatabase_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_listbydatabase_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_listbydatabase_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_listbydatabase_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_update_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/method_update_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/method_update_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_checknameresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_checknameresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_checknameresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_checknameresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_cosmosdbdataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_cosmosdbdataconnection.go new file mode 100644 index 000000000000..3c2eb489c013 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_cosmosdbdataconnection.go @@ -0,0 +1,45 @@ +package dataconnections + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ DataConnection = CosmosDbDataConnection{} + +type CosmosDbDataConnection struct { + Properties *CosmosDbDataConnectionProperties `json:"properties,omitempty"` + + // Fields inherited from DataConnection + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +var _ json.Marshaler = CosmosDbDataConnection{} + +func (s CosmosDbDataConnection) MarshalJSON() ([]byte, error) { + type wrapper CosmosDbDataConnection + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling CosmosDbDataConnection: %+v", err) + } + + var decoded map[string]interface{} + if err := json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling CosmosDbDataConnection: %+v", err) + } + decoded["kind"] = "CosmosDb" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling CosmosDbDataConnection: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_cosmosdbdataconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_cosmosdbdataconnectionproperties.go new file mode 100644 index 000000000000..4d03334cc523 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_cosmosdbdataconnectionproperties.go @@ -0,0 +1,34 @@ +package dataconnections + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CosmosDbDataConnectionProperties struct { + CosmosDbAccountResourceId string `json:"cosmosDbAccountResourceId"` + CosmosDbContainer string `json:"cosmosDbContainer"` + CosmosDbDatabase string `json:"cosmosDbDatabase"` + ManagedIdentityObjectId *string `json:"managedIdentityObjectId,omitempty"` + ManagedIdentityResourceId string `json:"managedIdentityResourceId"` + MappingRuleName *string `json:"mappingRuleName,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetrievalStartDate *string `json:"retrievalStartDate,omitempty"` + TableName string `json:"tableName"` +} + +func (o *CosmosDbDataConnectionProperties) GetRetrievalStartDateAsTime() (*time.Time, error) { + if o.RetrievalStartDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.RetrievalStartDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *CosmosDbDataConnectionProperties) SetRetrievalStartDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.RetrievalStartDate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnection.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnection.go index d1fe61d37ae7..b9749e0139f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnection.go @@ -27,6 +27,14 @@ func unmarshalDataConnectionImplementation(input []byte) (DataConnection, error) return nil, nil } + if strings.EqualFold(value, "CosmosDb") { + var out CosmosDbDataConnection + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into CosmosDbDataConnection: %+v", err) + } + return out, nil + } + if strings.EqualFold(value, "EventGrid") { var out EventGridDataConnection if err := json.Unmarshal(input, &out); err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnectionchecknamerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnectionchecknamerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnectionchecknamerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnectionchecknamerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnectionlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnectionlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnectionlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnectionlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnectionvalidation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnectionvalidation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnectionvalidation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnectionvalidation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnectionvalidationlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnectionvalidationlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnectionvalidationlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnectionvalidationlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnectionvalidationresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnectionvalidationresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_dataconnectionvalidationresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_dataconnectionvalidationresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_eventgridconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_eventgridconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_eventgridconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_eventgridconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_eventgriddataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_eventgriddataconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_eventgriddataconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_eventgriddataconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_eventhubconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_eventhubconnectionproperties.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_eventhubconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_eventhubconnectionproperties.go index 0a860f2e09ee..1770878de4a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_eventhubconnectionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_eventhubconnectionproperties.go @@ -1,5 +1,11 @@ package dataconnections +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -14,5 +20,18 @@ type EventHubConnectionProperties struct { ManagedIdentityResourceId *string `json:"managedIdentityResourceId,omitempty"` MappingRuleName *string `json:"mappingRuleName,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetrievalStartDate *string `json:"retrievalStartDate,omitempty"` TableName *string `json:"tableName,omitempty"` } + +func (o *EventHubConnectionProperties) GetRetrievalStartDateAsTime() (*time.Time, error) { + if o.RetrievalStartDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.RetrievalStartDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *EventHubConnectionProperties) SetRetrievalStartDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.RetrievalStartDate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_eventhubdataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_eventhubdataconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_eventhubdataconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_eventhubdataconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_iothubconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_iothubconnectionproperties.go similarity index 61% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_iothubconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_iothubconnectionproperties.go index 7c8e11e6179b..315a2258ef6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_iothubconnectionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_iothubconnectionproperties.go @@ -1,5 +1,11 @@ package dataconnections +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -11,6 +17,19 @@ type IotHubConnectionProperties struct { IotHubResourceId string `json:"iotHubResourceId"` MappingRuleName *string `json:"mappingRuleName,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetrievalStartDate *string `json:"retrievalStartDate,omitempty"` SharedAccessPolicyName string `json:"sharedAccessPolicyName"` TableName *string `json:"tableName,omitempty"` } + +func (o *IotHubConnectionProperties) GetRetrievalStartDateAsTime() (*time.Time, error) { + if o.RetrievalStartDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.RetrievalStartDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *IotHubConnectionProperties) SetRetrievalStartDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.RetrievalStartDate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_iothubdataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_iothubdataconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/model_iothubdataconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/model_iothubdataconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/version.go index 5f892c96f0fb..c86380fbf1e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-02-01" +const defaultApiVersion = "2022-12-29" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/dataconnections/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/README.md index ddfc07d3cc41..6c84d2dcd7ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints` Documentation -The `managedprivateendpoints` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-02-01`). +The `managedprivateendpoints` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-12-29`). 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/kusto/2022-02-01/managedprivateendpoints" +import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/constants.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/constants.go index f7fc54bef737..5311ff7cce7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/constants.go @@ -33,6 +33,7 @@ func parseManagedPrivateEndpointsType(input string) (*ManagedPrivateEndpointsTyp type ProvisioningState string const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" @@ -43,6 +44,7 @@ const ( func PossibleValuesForProvisioningState() []string { return []string{ + string(ProvisioningStateCanceled), string(ProvisioningStateCreating), string(ProvisioningStateDeleting), string(ProvisioningStateFailed), @@ -54,6 +56,7 @@ func PossibleValuesForProvisioningState() []string { func parseProvisioningState(input string) (*ProvisioningState, error) { vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, "creating": ProvisioningStateCreating, "deleting": ProvisioningStateDeleting, "failed": ProvisioningStateFailed, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/id_cluster.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/id_cluster.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/id_cluster.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/id_managedprivateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/id_managedprivateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/id_managedprivateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/id_managedprivateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_checknameavailability_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_checknameavailability_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_checknameavailability_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_checknameavailability_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_update_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/method_update_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/method_update_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/model_checknameresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/model_checknameresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/model_checknameresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/model_checknameresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/model_managedprivateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/model_managedprivateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/model_managedprivateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/model_managedprivateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/model_managedprivateendpointlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/model_managedprivateendpointlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/model_managedprivateendpointlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/model_managedprivateendpointlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/model_managedprivateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/model_managedprivateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/model_managedprivateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/model_managedprivateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/model_managedprivateendpointschecknamerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/model_managedprivateendpointschecknamerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/model_managedprivateendpointschecknamerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/model_managedprivateendpointschecknamerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/version.go index b6479d054eb7..544c308541ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-02-01" +const defaultApiVersion = "2022-12-29" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/managedprivateendpoints/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/README.md index cfe25329d40c..9ba1c3270afc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts` Documentation -The `scripts` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-02-01`). +The `scripts` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2022-12-29`). 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/kusto/2022-02-01/scripts" +import "github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/constants.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/constants.go index 1d7cf31947dd..d41bc71678e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/constants.go @@ -8,6 +8,7 @@ import "strings" type ProvisioningState string const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" @@ -18,6 +19,7 @@ const ( func PossibleValuesForProvisioningState() []string { return []string{ + string(ProvisioningStateCanceled), string(ProvisioningStateCreating), string(ProvisioningStateDeleting), string(ProvisioningStateFailed), @@ -29,6 +31,7 @@ func PossibleValuesForProvisioningState() []string { func parseProvisioningState(input string) (*ProvisioningState, error) { vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, "creating": ProvisioningStateCreating, "deleting": ProvisioningStateDeleting, "failed": ProvisioningStateFailed, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/id_database.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/id_database.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/id_database.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/id_script.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/id_script.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/id_script.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/id_script.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_checknameavailability_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_checknameavailability_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_checknameavailability_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_checknameavailability_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_listbydatabase_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_listbydatabase_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_listbydatabase_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_listbydatabase_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_update_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/method_update_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/method_update_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/model_checknameresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/model_checknameresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/model_checknameresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/model_checknameresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/model_script.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/model_script.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/model_script.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/model_script.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/model_scriptchecknamerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/model_scriptchecknamerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/model_scriptchecknamerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/model_scriptchecknamerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/model_scriptlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/model_scriptlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/model_scriptlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/model_scriptlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/model_scriptproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/model_scriptproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/model_scriptproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/model_scriptproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/version.go index 047c79f2c18b..2608bb6e2c1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2022-02-01" +const defaultApiVersion = "2022-12-29" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/scripts/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index be745a519aa5..b1cba8c544aa 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -374,15 +374,17 @@ github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2021-10-01/managedhs github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2021-10-01/vaults github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration -github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/attacheddatabaseconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusterprincipalassignments github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/clusters -github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databases -github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/dataconnections -github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/managedprivateendpoints -github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/scripts github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-07-07/clusters +github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/attacheddatabaseconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusterprincipalassignments +github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/clusters +github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databaseprincipalassignments +github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/databases +github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/dataconnections +github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/managedprivateendpoints +github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-12-29/scripts github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2022-08-01/lab github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2022-08-01/labplan github.com/hashicorp/go-azure-sdk/resource-manager/labservices/2022-08-01/schedule diff --git a/website/docs/r/kusto_cluster.html.markdown b/website/docs/r/kusto_cluster.html.markdown index 9c15db469327..8a13bd843144 100644 --- a/website/docs/r/kusto_cluster.html.markdown +++ b/website/docs/r/kusto_cluster.html.markdown @@ -70,7 +70,9 @@ The following arguments are supported: * `virtual_network_configuration` - (Optional) A `virtual_network_configuration` block as defined below. Changing this forces a new resource to be created. -* `language_extensions` - (Optional) An list of `language_extensions` to enable. Valid values are: `PYTHON` and `R`. +* `language_extensions` - (Optional) An list of `language_extensions` to enable. Valid values are: `PYTHON`, `PYTHON_3.10.8` and `R`. `PYTHON` is used to specify Python 3.6.5 image and `PYTHON_3.10.8` is used to specify Python 3.10.8 image. Note that `PYTHON_3.10.8` is only available in skus which support nested virtualization. + +~> **NOTE:** In `v4.0.0` and later version of the AzureRM Provider, `language_extensions` will be changed to a list of `language_extension` block. In each block, `name` and `image` are required. `name` is the name of the language extension, possible values are `PYTHON`, `R`. `image` is the image of the language extension, possible values are `Python3_6_5`, `Python3_10_8` and `R`. * `optimized_auto_scale` - (Optional) An `optimized_auto_scale` block as defined below.