From 5e0b3e64b4be805e46103934b349afc596d30a65 Mon Sep 17 00:00:00 2001 From: Zhenhua Hu Date: Wed, 27 Mar 2024 19:40:14 +0800 Subject: [PATCH 1/4] add code --- go.mod | 4 +- go.sum | 8 +- internal/services/compute/client/client.go | 2 +- .../services/compute/image_resource_test.go | 2 +- .../linux_virtual_machine_resource_test.go | 2 +- .../services/compute/no_downtime_resize.go | 2 +- ...hine_data_disk_attachment_resource_test.go | 4 +- ...ws_virtual_machine_resource_images_test.go | 2 +- .../windows_virtual_machine_resource_test.go | 2 +- internal/services/containers/client/client.go | 9 +- ...nce_assignment_virtual_machine_resource.go | 2 +- .../assignment_virtual_machine_v0_to_v1.go | 2 +- ...ecovery_services_vault_hyperv_host_test.go | 2 +- .../site_recovery_replicated_vm_resource.go | 2 +- .../virtualmachines/model_patchsettings.go | 10 - .../virtualmachines/model_securityprofile.go | 10 - .../virtualmachines/model_storageprofile.go | 10 - .../model_vmgalleryapplication.go | 11 - .../model_windowsconfiguration.go | 13 - .../virtualmachines/README.md | 27 +- .../virtualmachines/client.go | 0 .../virtualmachines/constants.go | 408 ++++++++++++++++++ .../virtualmachines/id_location.go | 0 .../virtualmachines/id_virtualmachine.go | 0 .../virtualmachines/method_assesspatches.go | 0 .../method_attachdetachdatadisks.go | 75 ++++ .../virtualmachines/method_capture.go | 0 .../method_converttomanageddisks.go | 0 .../virtualmachines/method_createorupdate.go | 107 +++++ .../virtualmachines/method_deallocate.go | 0 .../virtualmachines/method_delete.go | 0 .../virtualmachines/method_generalize.go | 0 .../virtualmachines/method_get.go | 0 .../virtualmachines/method_installpatches.go | 0 .../virtualmachines/method_instanceview.go | 0 .../virtualmachines/method_list.go | 4 + .../virtualmachines/method_listall.go | 4 + .../method_listavailablesizes.go | 0 .../virtualmachines/method_listbylocation.go | 0 .../method_performmaintenance.go | 0 .../virtualmachines/method_poweroff.go | 0 .../virtualmachines/method_reapply.go | 0 .../virtualmachines/method_redeploy.go | 0 .../virtualmachines/method_reimage.go | 0 .../virtualmachines/method_restart.go | 0 .../method_retrievebootdiagnosticsdata.go | 0 .../virtualmachines/method_runcommand.go | 0 .../method_simulateeviction.go | 0 .../virtualmachines/method_start.go | 0 .../virtualmachines/method_update.go | 42 +- .../model_additionalcapabilities.go | 0 .../model_additionalunattendcontent.go | 0 .../model_apientityreference.go} | 4 +- .../virtualmachines/model_apierror.go | 0 .../virtualmachines/model_apierrorbase.go | 0 .../model_applicationprofile.go | 0 .../model_attachdetachdatadisksrequest.go | 9 + .../model_availablepatchsummary.go | 0 .../virtualmachines/model_billingprofile.go | 0 .../virtualmachines/model_bootdiagnostics.go | 0 .../model_bootdiagnosticsinstanceview.go | 0 .../model_capacityreservationprofile.go | 0 .../virtualmachines/model_datadisk.go | 1 + .../model_datadiskstoattach.go | 13 + .../model_datadiskstodetach.go} | 6 +- .../model_diagnosticsprofile.go | 0 .../virtualmachines/model_diffdisksettings.go | 0 .../model_diskencryptionsettings.go | 0 .../virtualmachines/model_diskinstanceview.go | 0 .../model_encryptionidentity.go | 8 + .../model_eventgridandresourcegraph.go} | 4 +- .../virtualmachines/model_hardwareprofile.go | 0 .../virtualmachines/model_imagereference.go | 0 .../virtualmachines/model_innererror.go | 0 .../model_instanceviewstatus.go | 0 .../model_keyvaultkeyreference.go | 0 .../model_keyvaultsecretreference.go | 0 .../model_lastpatchinstallationsummary.go | 0 .../model_linuxconfiguration.go | 1 + .../virtualmachines/model_linuxparameters.go | 0 .../model_linuxpatchsettings.go | 10 + ...vmguestpatchautomaticbyplatformsettings.go | 9 + .../model_maintenanceredeploystatus.go | 0 .../model_manageddiskparameters.go | 0 .../model_networkinterfacereference.go | 0 ...del_networkinterfacereferenceproperties.go | 0 .../virtualmachines/model_networkprofile.go | 0 .../virtualmachines/model_osdisk.go | 0 .../model_osimagenotificationprofile.go | 9 + .../virtualmachines/model_osprofile.go | 0 .../model_osprofileprovisioningdata.go | 9 + .../model_patchinstallationdetail.go | 0 .../virtualmachines/model_patchsettings.go | 11 + .../virtualmachines/model_plan.go | 0 .../model_proxyagentsettings.go | 10 + .../model_publicipaddresssku.go | 0 ...model_retrievebootdiagnosticsdataresult.go | 0 .../virtualmachines/model_runcommandinput.go | 0 .../model_runcommandinputparameter.go | 0 .../virtualmachines/model_runcommandresult.go | 0 ...eduledeventsadditionalpublishingtargets.go | 8 + .../model_scheduledeventspolicy.go | 10 + .../model_scheduledeventsprofile.go | 1 + .../virtualmachines/model_securityprofile.go | 12 + .../virtualmachines/model_sshconfiguration.go | 0 .../virtualmachines/model_sshpublickey.go | 0 .../virtualmachines/model_storageprofile.go | 11 + .../virtualmachines/model_subresource.go | 0 .../model_terminatenotificationprofile.go | 0 .../virtualmachines/model_uefisettings.go | 0 .../model_userinitiatedreboot.go | 8 + .../model_userinitiatedredeploy.go | 8 + .../virtualmachines/model_vaultcertificate.go | 0 .../virtualmachines/model_vaultsecretgroup.go | 0 .../virtualmachines/model_virtualharddisk.go | 0 .../virtualmachines/model_virtualmachine.go | 2 + .../model_virtualmachineagentinstanceview.go | 0 ...model_virtualmachineassesspatchesresult.go | 0 .../model_virtualmachinecaptureparameters.go | 0 .../model_virtualmachinecaptureresult.go | 0 .../model_virtualmachineextension.go | 2 +- ...tualmachineextensionhandlerinstanceview.go | 0 ...del_virtualmachineextensioninstanceview.go | 0 ...model_virtualmachineextensionproperties.go | 3 +- .../model_virtualmachinehealthstatus.go | 0 ..._virtualmachineinstallpatchesparameters.go | 0 ...odel_virtualmachineinstallpatchesresult.go | 0 .../model_virtualmachineinstanceview.go | 1 + .../model_virtualmachineiptag.go | 0 ...ualmachinenetworkinterfaceconfiguration.go | 0 ...networkinterfaceconfigurationproperties.go | 3 + ...etworkinterfacednssettingsconfiguration.go | 0 ...lmachinenetworkinterfaceipconfiguration.go | 0 ...tworkinterfaceipconfigurationproperties.go | 0 .../model_virtualmachinepatchstatus.go | 0 .../model_virtualmachineproperties.go | 1 + ...tualmachinepublicipaddressconfiguration.go | 0 ...epublicipaddressconfigurationproperties.go | 0 ...publicipaddressdnssettingsconfiguration.go | 9 + .../model_virtualmachinereimageparameters.go | 10 + .../model_virtualmachinesize.go | 0 .../model_virtualmachinesizelistresult.go | 0 ...l_virtualmachinesoftwarepatchproperties.go | 0 .../model_virtualmachineupdate.go | 0 .../model_vmdisksecurityprofile.go | 0 .../model_vmgalleryapplication.go | 13 + .../virtualmachines/model_vmsizeproperties.go | 0 .../model_windowsconfiguration.go | 14 + .../model_windowsparameters.go | 0 ...vmguestpatchautomaticbyplatformsettings.go | 9 + .../model_winrmconfiguration.go | 0 .../virtualmachines/model_winrmlistener.go | 0 .../virtualmachines/predicates.go | 18 +- .../virtualmachines/version.go | 2 +- .../2023-05-01/containerinstance/client.go | 22 +- .../2023-05-01/containerinstance/constants.go | 149 ++++++- .../method_containergroupscreateorupdate.go} | 20 +- ..._containergroupscreateorupdate_autorest.go | 80 ---- .../method_containergroupsdelete.go | 72 ++++ .../method_containergroupsdelete_autorest.go | 79 ---- .../method_containergroupsget.go | 54 +++ .../method_containergroupsget_autorest.go | 68 --- ...getoutboundnetworkdependenciesendpoints.go | 55 +++ ...ndnetworkdependenciesendpoints_autorest.go | 69 --- .../method_containergroupslist.go | 92 ++++ .../method_containergroupslist_autorest.go | 187 -------- ...thod_containergroupslistbyresourcegroup.go | 92 ++++ ...ainergroupslistbyresourcegroup_autorest.go | 187 -------- .../method_containergroupsrestart.go | 69 +++ .../method_containergroupsrestart_autorest.go | 78 ---- .../method_containergroupsstart.go | 70 +++ .../method_containergroupsstart_autorest.go | 78 ---- .../method_containergroupsstop.go | 47 ++ .../method_containergroupsstop_autorest.go | 67 --- .../method_containergroupsupdate.go | 58 +++ .../method_containergroupsupdate_autorest.go | 69 --- .../method_containersattach.go | 55 +++ .../method_containersattach_autorest.go | 69 --- .../method_containersexecutecommand.go | 59 +++ ...ethod_containersexecutecommand_autorest.go | 70 --- .../method_containerslistlogs.go | 87 ++++ .../method_containerslistlogs_autorest.go | 103 ----- .../method_locationlistcachedimages.go | 91 ++++ ...ethod_locationlistcachedimages_autorest.go | 186 -------- .../method_locationlistcapabilities.go | 91 ++++ ...ethod_locationlistcapabilities_autorest.go | 186 -------- .../method_locationlistusage.go | 55 +++ .../method_locationlistusage_autorest.go | 69 --- ...thod_subnetserviceassociationlinkdelete.go | 72 ++++ ...etserviceassociationlinkdelete_autorest.go | 79 ---- .../sdk/client/resourcemanager/poller_lro.go | 3 + vendor/modules.txt | 6 +- 192 files changed, 2214 insertions(+), 1844 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_patchsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_securityprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_storageprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vmgalleryapplication.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_windowsconfiguration.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/constants.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/id_location.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/id_virtualmachine.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_assesspatches.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_attachdetachdatadisks.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_capture.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_converttomanageddisks.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_deallocate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_generalize.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_installpatches.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_instanceview.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_list.go (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_listall.go (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_listavailablesizes.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_listbylocation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_performmaintenance.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_poweroff.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_reapply.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_redeploy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_reimage.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_restart.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_retrievebootdiagnosticsdata.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_runcommand.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_simulateeviction.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_start.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/method_update.go (60%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_additionalcapabilities.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_additionalunattendcontent.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01/virtualmachines/model_virtualmachinereimageparameters.go => 2024-03-01/virtualmachines/model_apientityreference.go} (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_apierror.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_apierrorbase.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_applicationprofile.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_attachdetachdatadisksrequest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_availablepatchsummary.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_billingprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_bootdiagnostics.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_bootdiagnosticsinstanceview.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_capacityreservationprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_datadisk.go (94%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_datadiskstoattach.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01/virtualmachines/model_linuxpatchsettings.go => 2024-03-01/virtualmachines/model_datadiskstodetach.go} (50%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_diagnosticsprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_diffdisksettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_diskencryptionsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_diskinstanceview.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_encryptionidentity.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01/virtualmachines/model_virtualmachinepublicipaddressdnssettingsconfiguration.go => 2024-03-01/virtualmachines/model_eventgridandresourcegraph.go} (61%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_hardwareprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_imagereference.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_innererror.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_instanceviewstatus.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_keyvaultkeyreference.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_keyvaultsecretreference.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_lastpatchinstallationsummary.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_linuxconfiguration.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_linuxparameters.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxpatchsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxvmguestpatchautomaticbyplatformsettings.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_maintenanceredeploystatus.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_manageddiskparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_networkinterfacereference.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_networkinterfacereferenceproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_networkprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_osdisk.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osimagenotificationprofile.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_osprofile.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osprofileprovisioningdata.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_patchinstallationdetail.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_patchsettings.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_plan.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_proxyagentsettings.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_publicipaddresssku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_retrievebootdiagnosticsdataresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_runcommandinput.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_runcommandinputparameter.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_runcommandresult.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_scheduledeventsadditionalpublishingtargets.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_scheduledeventspolicy.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_scheduledeventsprofile.go (75%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_securityprofile.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_sshconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_sshpublickey.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_storageprofile.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_terminatenotificationprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_uefisettings.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_userinitiatedreboot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_userinitiatedredeploy.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_vaultcertificate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_vaultsecretgroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualharddisk.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachine.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineagentinstanceview.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineassesspatchesresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinecaptureparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinecaptureresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineextension.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineextensionhandlerinstanceview.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineextensioninstanceview.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineextensionproperties.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinehealthstatus.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineinstallpatchesparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineinstallpatchesresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineinstanceview.go (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineiptag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinenetworkinterfaceconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinenetworkinterfaceconfigurationproperties.go (78%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinenetworkinterfacednssettingsconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinenetworkinterfaceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinenetworkinterfaceipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinepatchstatus.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineproperties.go (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinepublicipaddressconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinepublicipaddressconfigurationproperties.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinepublicipaddressdnssettingsconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinereimageparameters.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinesize.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinesizelistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachinesoftwarepatchproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_virtualmachineupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_vmdisksecurityprofile.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vmgalleryapplication.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_vmsizeproperties.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_windowsconfiguration.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_windowsparameters.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_windowsvmguestpatchautomaticbyplatformsettings.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_winrmconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/model_winrmlistener.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/predicates.go (68%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/virtualmachines/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/{compute/2021-11-01/virtualmachines/method_createorupdate.go => containerinstance/2023-05-01/containerinstance/method_containergroupscreateorupdate.go} (60%) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupscreateorupdate_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsdelete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsdelete_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsget.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsget_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslist_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsrestart.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsrestart_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstart.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstart_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstop.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstop_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersattach.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersattach_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_subnetserviceassociationlinkdelete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_subnetserviceassociationlinkdelete_autorest.go diff --git a/go.mod b/go.mod index 0c667339fda1..94cc6b3ea1a1 100644 --- a/go.mod +++ b/go.mod @@ -17,8 +17,8 @@ require ( github.com/google/go-cmp v0.5.9 github.com/google/uuid v1.4.0 github.com/hashicorp/go-azure-helpers v0.66.2 - github.com/hashicorp/go-azure-sdk/resource-manager v0.20240321.1145953 - github.com/hashicorp/go-azure-sdk/sdk v0.20240321.1145953 + github.com/hashicorp/go-azure-sdk/resource-manager v0.20240327.1093302 + github.com/hashicorp/go-azure-sdk/sdk v0.20240327.1093302 github.com/hashicorp/go-hclog v1.5.0 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-uuid v1.0.3 diff --git a/go.sum b/go.sum index 2de1713a5e16..5a2841da14a2 100644 --- a/go.sum +++ b/go.sum @@ -95,10 +95,10 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-azure-helpers v0.66.2 h1:+Pzuo7pdKl0hBXXr5ymmhs4Q40tHAo2nAvHq4WgSjx8= github.com/hashicorp/go-azure-helpers v0.66.2/go.mod h1:kJxXrFtJKJdOEqvad8pllAe7dhP4DbN8J6sqFZe47+4= -github.com/hashicorp/go-azure-sdk/resource-manager v0.20240321.1145953 h1:eoU9iMmWgufB441trZJ45TsZ+0vJ79vGKdBuVVYUXwI= -github.com/hashicorp/go-azure-sdk/resource-manager v0.20240321.1145953/go.mod h1:zvsDltRIRr58vA0EpSmY+a6NcgGirQE/u02Ag+D8jmM= -github.com/hashicorp/go-azure-sdk/sdk v0.20240321.1145953 h1:WAcSZL5+H9Z/DjUZ0x0sluNoEno/mD4b+NWpY04vJrw= -github.com/hashicorp/go-azure-sdk/sdk v0.20240321.1145953/go.mod h1:POOjeoqNp+mvlLBuibJTziUAkBZ7FxXGeGestwemL/w= +github.com/hashicorp/go-azure-sdk/resource-manager v0.20240327.1093302 h1:AtAHa2q3KG/Oz0nDp9PR8fhI2dtFkZorx7ZjgmsuBR0= +github.com/hashicorp/go-azure-sdk/resource-manager v0.20240327.1093302/go.mod h1:zmhSjcxeEPZqWwaodNgi4FIVvHp3XlSGM5ZRPx8zcFw= +github.com/hashicorp/go-azure-sdk/sdk v0.20240327.1093302 h1:tBRiM5YKyyIBrJShk2Kmm/YwApJym9Mo5d2EvLVBfRI= +github.com/hashicorp/go-azure-sdk/sdk v0.20240327.1093302/go.mod h1:POOjeoqNp+mvlLBuibJTziUAkBZ7FxXGeGestwemL/w= github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= diff --git a/internal/services/compute/client/client.go b/internal/services/compute/client/client.go index d737865f56f6..253f49cf12e1 100644 --- a/internal/services/compute/client/client.go +++ b/internal/services/compute/client/client.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images" @@ -29,6 +28,7 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements" "github.com/hashicorp/terraform-provider-azurerm/internal/common" "github.com/hashicorp/terraform-provider-azurerm/utils" diff --git a/internal/services/compute/image_resource_test.go b/internal/services/compute/image_resource_test.go index f348be14ce96..1c7c8b2a7f35 100644 --- a/internal/services/compute/image_resource_test.go +++ b/internal/services/compute/image_resource_test.go @@ -13,8 +13,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/ssh" diff --git a/internal/services/compute/linux_virtual_machine_resource_test.go b/internal/services/compute/linux_virtual_machine_resource_test.go index d27633097152..7f9dc785061c 100644 --- a/internal/services/compute/linux_virtual_machine_resource_test.go +++ b/internal/services/compute/linux_virtual_machine_resource_test.go @@ -7,7 +7,7 @@ import ( "context" "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/compute/no_downtime_resize.go b/internal/services/compute/no_downtime_resize.go index f7125a4f9018..297090ddef65 100644 --- a/internal/services/compute/no_downtime_resize.go +++ b/internal/services/compute/no_downtime_resize.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks" ) diff --git a/internal/services/compute/virtual_machine_data_disk_attachment_resource_test.go b/internal/services/compute/virtual_machine_data_disk_attachment_resource_test.go index c80c1754d475..6ae0381a64f7 100644 --- a/internal/services/compute/virtual_machine_data_disk_attachment_resource_test.go +++ b/internal/services/compute/virtual_machine_data_disk_attachment_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "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" @@ -272,7 +272,7 @@ func (VirtualMachineDataDiskAttachmentResource) Destroy(ctx context.Context, cli // fixes #1600 model.Resources = nil - if err := client.Compute.VirtualMachinesClient.CreateOrUpdateThenPoll(ctx, virtualMachineId, *model); err != nil { + if err := client.Compute.VirtualMachinesClient.CreateOrUpdateThenPoll(ctx, virtualMachineId, *model, virtualmachines.DefaultCreateOrUpdateOperationOptions()); err != nil { return nil, fmt.Errorf("updating Virtual Machine %q: %+v", id, err) } } diff --git a/internal/services/compute/windows_virtual_machine_resource_images_test.go b/internal/services/compute/windows_virtual_machine_resource_images_test.go index 2d3f3fbb7e37..f648f40413f5 100644 --- a/internal/services/compute/windows_virtual_machine_resource_images_test.go +++ b/internal/services/compute/windows_virtual_machine_resource_images_test.go @@ -10,7 +10,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" diff --git a/internal/services/compute/windows_virtual_machine_resource_test.go b/internal/services/compute/windows_virtual_machine_resource_test.go index 2fc0fd88696e..a696f889d5d5 100644 --- a/internal/services/compute/windows_virtual_machine_resource_test.go +++ b/internal/services/compute/windows_virtual_machine_resource_test.go @@ -7,7 +7,7 @@ import ( "context" "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/containers/client/client.go b/internal/services/containers/client/client.go index d7b4c4f5912e..89704a060014 100644 --- a/internal/services/containers/client/client.go +++ b/internal/services/containers/client/client.go @@ -41,8 +41,11 @@ type Client struct { } func NewContainersClient(o *common.ClientOptions) (*Client, error) { - containerInstanceClient := containerinstance.NewContainerInstanceClientWithBaseURI(o.ResourceManagerEndpoint) - o.ConfigureClient(&containerInstanceClient.Client, o.ResourceManagerAuthorizer) + containerInstanceClient, err := containerinstance.NewContainerInstanceClientWithBaseURI(o.Environment.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building Container Instance Runs Client: %+v", err) + } + o.Configure(containerInstanceClient.Client, o.Authorizers.ResourceManager) containerRegistryClient_v2019_06_01_preview, err := containerregistry_v2019_06_01_preview.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) @@ -115,7 +118,7 @@ func NewContainersClient(o *common.ClientOptions) (*Client, error) { return &Client{ AgentPoolsClient: agentPoolsClient, - ContainerInstanceClient: &containerInstanceClient, + ContainerInstanceClient: containerInstanceClient, ContainerRegistryClient_v2021_08_01_preview: containerRegistryClient_v2021_08_01_preview, ContainerRegistryClient_v2019_06_01_preview: containerRegistryClient_v2019_06_01_preview, FleetUpdateRunsClient: fleetUpdateRunsClient, diff --git a/internal/services/maintenance/maintenance_assignment_virtual_machine_resource.go b/internal/services/maintenance/maintenance_assignment_virtual_machine_resource.go index c307db65c62a..f90180dd8509 100644 --- a/internal/services/maintenance/maintenance_assignment_virtual_machine_resource.go +++ b/internal/services/maintenance/maintenance_assignment_virtual_machine_resource.go @@ -11,7 +11,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/compute/2021-11-01/virtualmachines" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/configurationassignments" "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/maintenanceconfigurations" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" diff --git a/internal/services/maintenance/migration/assignment_virtual_machine_v0_to_v1.go b/internal/services/maintenance/migration/assignment_virtual_machine_v0_to_v1.go index c146d4c72a2b..884125e22207 100644 --- a/internal/services/maintenance/migration/assignment_virtual_machine_v0_to_v1.go +++ b/internal/services/maintenance/migration/assignment_virtual_machine_v0_to_v1.go @@ -8,7 +8,7 @@ import ( "fmt" "log" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/configurationassignments" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/recoveryservices/recovery_services_vault_hyperv_host_test.go b/internal/services/recoveryservices/recovery_services_vault_hyperv_host_test.go index b5e5e7fffcb0..a161654e8bb0 100644 --- a/internal/services/recoveryservices/recovery_services_vault_hyperv_host_test.go +++ b/internal/services/recoveryservices/recovery_services_vault_hyperv_host_test.go @@ -11,7 +11,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryservicesproviders" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go b/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go index 3c73bae3bcc5..5c8a9b6534dc 100644 --- a/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go +++ b/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_patchsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_patchsettings.go deleted file mode 100644 index 7fe20c4042bb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_patchsettings.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualmachines - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PatchSettings struct { - AssessmentMode *WindowsPatchAssessmentMode `json:"assessmentMode,omitempty"` - EnableHotpatching *bool `json:"enableHotpatching,omitempty"` - PatchMode *WindowsVMGuestPatchMode `json:"patchMode,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_securityprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_securityprofile.go deleted file mode 100644 index 8db3491781e9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_securityprofile.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualmachines - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityProfile struct { - EncryptionAtHost *bool `json:"encryptionAtHost,omitempty"` - SecurityType *SecurityTypes `json:"securityType,omitempty"` - UefiSettings *UefiSettings `json:"uefiSettings,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_storageprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_storageprofile.go deleted file mode 100644 index 6ab74854ee4d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_storageprofile.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualmachines - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StorageProfile struct { - DataDisks *[]DataDisk `json:"dataDisks,omitempty"` - ImageReference *ImageReference `json:"imageReference,omitempty"` - OsDisk *OSDisk `json:"osDisk,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vmgalleryapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vmgalleryapplication.go deleted file mode 100644 index 6ef9ea26cdfd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vmgalleryapplication.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualmachines - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VMGalleryApplication struct { - ConfigurationReference *string `json:"configurationReference,omitempty"` - Order *int64 `json:"order,omitempty"` - PackageReferenceId string `json:"packageReferenceId"` - Tags *string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_windowsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_windowsconfiguration.go deleted file mode 100644 index 689677f4038f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_windowsconfiguration.go +++ /dev/null @@ -1,13 +0,0 @@ -package virtualmachines - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type WindowsConfiguration struct { - AdditionalUnattendContent *[]AdditionalUnattendContent `json:"additionalUnattendContent,omitempty"` - EnableAutomaticUpdates *bool `json:"enableAutomaticUpdates,omitempty"` - PatchSettings *PatchSettings `json:"patchSettings,omitempty"` - ProvisionVMAgent *bool `json:"provisionVMAgent,omitempty"` - TimeZone *string `json:"timeZone,omitempty"` - WinRM *WinRMConfiguration `json:"winRM,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/README.md index 8a388b1bf12c..ec267ed59a20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines` Documentation -The `virtualmachines` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2021-11-01`). +The `virtualmachines` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines" +import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" ``` @@ -33,6 +33,23 @@ if err := client.AssessPatchesThenPoll(ctx, id); err != nil { ``` +### Example Usage: `VirtualMachinesClient.AttachDetachDataDisks` + +```go +ctx := context.TODO() +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") + +payload := virtualmachines.AttachDetachDataDisksRequest{ + // ... +} + + +if err := client.AttachDetachDataDisksThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + ### Example Usage: `VirtualMachinesClient.Capture` ```go @@ -73,7 +90,7 @@ payload := virtualmachines.VirtualMachine{ } -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, virtualmachines.DefaultCreateOrUpdateOperationOptions()); err != nil { // handle the error } ``` @@ -384,7 +401,7 @@ payload := virtualmachines.VirtualMachineUpdate{ } -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { +if err := client.UpdateThenPoll(ctx, id, payload, virtualmachines.DefaultUpdateOperationOptions()); err != nil { // handle the error } ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/constants.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/constants.go index b0aa82a0dbbb..6a90080ffbf7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/constants.go @@ -174,12 +174,14 @@ type DiffDiskPlacement string const ( DiffDiskPlacementCacheDisk DiffDiskPlacement = "CacheDisk" + DiffDiskPlacementNVMeDisk DiffDiskPlacement = "NvmeDisk" DiffDiskPlacementResourceDisk DiffDiskPlacement = "ResourceDisk" ) func PossibleValuesForDiffDiskPlacement() []string { return []string{ string(DiffDiskPlacementCacheDisk), + string(DiffDiskPlacementNVMeDisk), string(DiffDiskPlacementResourceDisk), } } @@ -200,6 +202,7 @@ func (s *DiffDiskPlacement) UnmarshalJSON(bytes []byte) error { func parseDiffDiskPlacement(input string) (*DiffDiskPlacement, error) { vals := map[string]DiffDiskPlacement{ "cachedisk": DiffDiskPlacementCacheDisk, + "nvmedisk": DiffDiskPlacementNVMeDisk, "resourcedisk": DiffDiskPlacementResourceDisk, } if v, ok := vals[strings.ToLower(input)]; ok { @@ -211,19 +214,64 @@ func parseDiffDiskPlacement(input string) (*DiffDiskPlacement, error) { return &out, nil } +type DiskControllerTypes string + +const ( + DiskControllerTypesNVMe DiskControllerTypes = "NVMe" + DiskControllerTypesSCSI DiskControllerTypes = "SCSI" +) + +func PossibleValuesForDiskControllerTypes() []string { + return []string{ + string(DiskControllerTypesNVMe), + string(DiskControllerTypesSCSI), + } +} + +func (s *DiskControllerTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDiskControllerTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDiskControllerTypes(input string) (*DiskControllerTypes, error) { + vals := map[string]DiskControllerTypes{ + "nvme": DiskControllerTypesNVMe, + "scsi": DiskControllerTypesSCSI, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DiskControllerTypes(input) + return &out, nil +} + type DiskCreateOptionTypes string const ( DiskCreateOptionTypesAttach DiskCreateOptionTypes = "Attach" + DiskCreateOptionTypesCopy DiskCreateOptionTypes = "Copy" DiskCreateOptionTypesEmpty DiskCreateOptionTypes = "Empty" DiskCreateOptionTypesFromImage DiskCreateOptionTypes = "FromImage" + DiskCreateOptionTypesRestore DiskCreateOptionTypes = "Restore" ) func PossibleValuesForDiskCreateOptionTypes() []string { return []string{ string(DiskCreateOptionTypesAttach), + string(DiskCreateOptionTypesCopy), string(DiskCreateOptionTypesEmpty), string(DiskCreateOptionTypesFromImage), + string(DiskCreateOptionTypesRestore), } } @@ -243,8 +291,10 @@ func (s *DiskCreateOptionTypes) UnmarshalJSON(bytes []byte) error { func parseDiskCreateOptionTypes(input string) (*DiskCreateOptionTypes, error) { vals := map[string]DiskCreateOptionTypes{ "attach": DiskCreateOptionTypesAttach, + "copy": DiskCreateOptionTypesCopy, "empty": DiskCreateOptionTypesEmpty, "fromimage": DiskCreateOptionTypesFromImage, + "restore": DiskCreateOptionTypesRestore, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil @@ -334,6 +384,129 @@ func parseDiskDetachOptionTypes(input string) (*DiskDetachOptionTypes, error) { return &out, nil } +type DomainNameLabelScopeTypes string + +const ( + DomainNameLabelScopeTypesNoReuse DomainNameLabelScopeTypes = "NoReuse" + DomainNameLabelScopeTypesResourceGroupReuse DomainNameLabelScopeTypes = "ResourceGroupReuse" + DomainNameLabelScopeTypesSubscriptionReuse DomainNameLabelScopeTypes = "SubscriptionReuse" + DomainNameLabelScopeTypesTenantReuse DomainNameLabelScopeTypes = "TenantReuse" +) + +func PossibleValuesForDomainNameLabelScopeTypes() []string { + return []string{ + string(DomainNameLabelScopeTypesNoReuse), + string(DomainNameLabelScopeTypesResourceGroupReuse), + string(DomainNameLabelScopeTypesSubscriptionReuse), + string(DomainNameLabelScopeTypesTenantReuse), + } +} + +func (s *DomainNameLabelScopeTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDomainNameLabelScopeTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDomainNameLabelScopeTypes(input string) (*DomainNameLabelScopeTypes, error) { + vals := map[string]DomainNameLabelScopeTypes{ + "noreuse": DomainNameLabelScopeTypesNoReuse, + "resourcegroupreuse": DomainNameLabelScopeTypesResourceGroupReuse, + "subscriptionreuse": DomainNameLabelScopeTypesSubscriptionReuse, + "tenantreuse": DomainNameLabelScopeTypesTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DomainNameLabelScopeTypes(input) + return &out, nil +} + +type ExpandTypeForListVMs string + +const ( + ExpandTypeForListVMsInstanceView ExpandTypeForListVMs = "instanceView" +) + +func PossibleValuesForExpandTypeForListVMs() []string { + return []string{ + string(ExpandTypeForListVMsInstanceView), + } +} + +func (s *ExpandTypeForListVMs) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpandTypeForListVMs(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpandTypeForListVMs(input string) (*ExpandTypeForListVMs, error) { + vals := map[string]ExpandTypeForListVMs{ + "instanceview": ExpandTypeForListVMsInstanceView, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpandTypeForListVMs(input) + return &out, nil +} + +type ExpandTypesForListVMs string + +const ( + ExpandTypesForListVMsInstanceView ExpandTypesForListVMs = "instanceView" +) + +func PossibleValuesForExpandTypesForListVMs() []string { + return []string{ + string(ExpandTypesForListVMsInstanceView), + } +} + +func (s *ExpandTypesForListVMs) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpandTypesForListVMs(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpandTypesForListVMs(input string) (*ExpandTypesForListVMs, error) { + vals := map[string]ExpandTypesForListVMs{ + "instanceview": ExpandTypesForListVMsInstanceView, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpandTypesForListVMs(input) + return &out, nil +} + type HyperVGenerationType string const ( @@ -498,6 +671,53 @@ func parseLinuxPatchAssessmentMode(input string) (*LinuxPatchAssessmentMode, err return &out, nil } +type LinuxVMGuestPatchAutomaticByPlatformRebootSetting string + +const ( + LinuxVMGuestPatchAutomaticByPlatformRebootSettingAlways LinuxVMGuestPatchAutomaticByPlatformRebootSetting = "Always" + LinuxVMGuestPatchAutomaticByPlatformRebootSettingIfRequired LinuxVMGuestPatchAutomaticByPlatformRebootSetting = "IfRequired" + LinuxVMGuestPatchAutomaticByPlatformRebootSettingNever LinuxVMGuestPatchAutomaticByPlatformRebootSetting = "Never" + LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown LinuxVMGuestPatchAutomaticByPlatformRebootSetting = "Unknown" +) + +func PossibleValuesForLinuxVMGuestPatchAutomaticByPlatformRebootSetting() []string { + return []string{ + string(LinuxVMGuestPatchAutomaticByPlatformRebootSettingAlways), + string(LinuxVMGuestPatchAutomaticByPlatformRebootSettingIfRequired), + string(LinuxVMGuestPatchAutomaticByPlatformRebootSettingNever), + string(LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown), + } +} + +func (s *LinuxVMGuestPatchAutomaticByPlatformRebootSetting) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLinuxVMGuestPatchAutomaticByPlatformRebootSetting(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLinuxVMGuestPatchAutomaticByPlatformRebootSetting(input string) (*LinuxVMGuestPatchAutomaticByPlatformRebootSetting, error) { + vals := map[string]LinuxVMGuestPatchAutomaticByPlatformRebootSetting{ + "always": LinuxVMGuestPatchAutomaticByPlatformRebootSettingAlways, + "ifrequired": LinuxVMGuestPatchAutomaticByPlatformRebootSettingIfRequired, + "never": LinuxVMGuestPatchAutomaticByPlatformRebootSettingNever, + "unknown": LinuxVMGuestPatchAutomaticByPlatformRebootSettingUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LinuxVMGuestPatchAutomaticByPlatformRebootSetting(input) + return &out, nil +} + type LinuxVMGuestPatchMode string const ( @@ -586,6 +806,47 @@ func parseMaintenanceOperationResultCodeTypes(input string) (*MaintenanceOperati return &out, nil } +type Mode string + +const ( + ModeAudit Mode = "Audit" + ModeEnforce Mode = "Enforce" +) + +func PossibleValuesForMode() []string { + return []string{ + string(ModeAudit), + string(ModeEnforce), + } +} + +func (s *Mode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMode(input string) (*Mode, error) { + vals := map[string]Mode{ + "audit": ModeAudit, + "enforce": ModeEnforce, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Mode(input) + return &out, nil +} + type NetworkApiVersion string const ( @@ -624,6 +885,100 @@ func parseNetworkApiVersion(input string) (*NetworkApiVersion, error) { return &out, nil } +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + type OperatingSystemTypes string const ( @@ -1015,12 +1370,14 @@ type SecurityEncryptionTypes string const ( SecurityEncryptionTypesDiskWithVMGuestState SecurityEncryptionTypes = "DiskWithVMGuestState" + SecurityEncryptionTypesNonPersistedTPM SecurityEncryptionTypes = "NonPersistedTPM" SecurityEncryptionTypesVMGuestStateOnly SecurityEncryptionTypes = "VMGuestStateOnly" ) func PossibleValuesForSecurityEncryptionTypes() []string { return []string{ string(SecurityEncryptionTypesDiskWithVMGuestState), + string(SecurityEncryptionTypesNonPersistedTPM), string(SecurityEncryptionTypesVMGuestStateOnly), } } @@ -1041,6 +1398,7 @@ func (s *SecurityEncryptionTypes) UnmarshalJSON(bytes []byte) error { func parseSecurityEncryptionTypes(input string) (*SecurityEncryptionTypes, error) { vals := map[string]SecurityEncryptionTypes{ "diskwithvmgueststate": SecurityEncryptionTypesDiskWithVMGuestState, + "nonpersistedtpm": SecurityEncryptionTypesNonPersistedTPM, "vmgueststateonly": SecurityEncryptionTypesVMGuestStateOnly, } if v, ok := vals[strings.ToLower(input)]; ok { @@ -1182,6 +1540,7 @@ type StorageAccountTypes string const ( StorageAccountTypesPremiumLRS StorageAccountTypes = "Premium_LRS" + StorageAccountTypesPremiumVTwoLRS StorageAccountTypes = "PremiumV2_LRS" StorageAccountTypesPremiumZRS StorageAccountTypes = "Premium_ZRS" StorageAccountTypesStandardLRS StorageAccountTypes = "Standard_LRS" StorageAccountTypesStandardSSDLRS StorageAccountTypes = "StandardSSD_LRS" @@ -1192,6 +1551,7 @@ const ( func PossibleValuesForStorageAccountTypes() []string { return []string{ string(StorageAccountTypesPremiumLRS), + string(StorageAccountTypesPremiumVTwoLRS), string(StorageAccountTypesPremiumZRS), string(StorageAccountTypesStandardLRS), string(StorageAccountTypesStandardSSDLRS), @@ -1216,6 +1576,7 @@ func (s *StorageAccountTypes) UnmarshalJSON(bytes []byte) error { func parseStorageAccountTypes(input string) (*StorageAccountTypes, error) { vals := map[string]StorageAccountTypes{ "premium_lrs": StorageAccountTypesPremiumLRS, + "premiumv2_lrs": StorageAccountTypesPremiumVTwoLRS, "premium_zrs": StorageAccountTypesPremiumZRS, "standard_lrs": StorageAccountTypesStandardLRS, "standardssd_lrs": StorageAccountTypesStandardSSDLRS, @@ -2137,6 +2498,53 @@ func parseWindowsPatchAssessmentMode(input string) (*WindowsPatchAssessmentMode, return &out, nil } +type WindowsVMGuestPatchAutomaticByPlatformRebootSetting string + +const ( + WindowsVMGuestPatchAutomaticByPlatformRebootSettingAlways WindowsVMGuestPatchAutomaticByPlatformRebootSetting = "Always" + WindowsVMGuestPatchAutomaticByPlatformRebootSettingIfRequired WindowsVMGuestPatchAutomaticByPlatformRebootSetting = "IfRequired" + WindowsVMGuestPatchAutomaticByPlatformRebootSettingNever WindowsVMGuestPatchAutomaticByPlatformRebootSetting = "Never" + WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown WindowsVMGuestPatchAutomaticByPlatformRebootSetting = "Unknown" +) + +func PossibleValuesForWindowsVMGuestPatchAutomaticByPlatformRebootSetting() []string { + return []string{ + string(WindowsVMGuestPatchAutomaticByPlatformRebootSettingAlways), + string(WindowsVMGuestPatchAutomaticByPlatformRebootSettingIfRequired), + string(WindowsVMGuestPatchAutomaticByPlatformRebootSettingNever), + string(WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown), + } +} + +func (s *WindowsVMGuestPatchAutomaticByPlatformRebootSetting) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWindowsVMGuestPatchAutomaticByPlatformRebootSetting(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWindowsVMGuestPatchAutomaticByPlatformRebootSetting(input string) (*WindowsVMGuestPatchAutomaticByPlatformRebootSetting, error) { + vals := map[string]WindowsVMGuestPatchAutomaticByPlatformRebootSetting{ + "always": WindowsVMGuestPatchAutomaticByPlatformRebootSettingAlways, + "ifrequired": WindowsVMGuestPatchAutomaticByPlatformRebootSettingIfRequired, + "never": WindowsVMGuestPatchAutomaticByPlatformRebootSettingNever, + "unknown": WindowsVMGuestPatchAutomaticByPlatformRebootSettingUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WindowsVMGuestPatchAutomaticByPlatformRebootSetting(input) + return &out, nil +} + type WindowsVMGuestPatchMode string const ( diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_virtualmachine.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/id_virtualmachine.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_virtualmachine.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_assesspatches.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_assesspatches.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_assesspatches.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_assesspatches.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_attachdetachdatadisks.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_attachdetachdatadisks.go new file mode 100644 index 000000000000..214b62f377c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_attachdetachdatadisks.go @@ -0,0 +1,75 @@ +package virtualmachines + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AttachDetachDataDisksOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *StorageProfile +} + +// AttachDetachDataDisks ... +func (c VirtualMachinesClient) AttachDetachDataDisks(ctx context.Context, id VirtualMachineId, input AttachDetachDataDisksRequest) (result AttachDetachDataDisksOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/attachDetachDataDisks", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AttachDetachDataDisksThenPoll performs AttachDetachDataDisks then polls until it's completed +func (c VirtualMachinesClient) AttachDetachDataDisksThenPoll(ctx context.Context, id VirtualMachineId, input AttachDetachDataDisksRequest) error { + result, err := c.AttachDetachDataDisks(ctx, id, input) + if err != nil { + return fmt.Errorf("performing AttachDetachDataDisks: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AttachDetachDataDisks: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_capture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_capture.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_capture.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_capture.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_converttomanageddisks.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_converttomanageddisks.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_converttomanageddisks.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_converttomanageddisks.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go new file mode 100644 index 000000000000..71b922969943 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go @@ -0,0 +1,107 @@ +package virtualmachines + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualMachine +} + +type CreateOrUpdateOperationOptions struct { + IfMatch *string + IfNoneMatch *string +} + +func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { + return CreateOrUpdateOperationOptions{} +} + +func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + if o.IfNoneMatch != nil { + out.Append("If-None-Match", fmt.Sprintf("%v", *o.IfNoneMatch)) + } + return &out +} + +func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// CreateOrUpdate ... +func (c VirtualMachinesClient) CreateOrUpdate(ctx context.Context, id VirtualMachineId, input VirtualMachine, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c VirtualMachinesClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachine, options CreateOrUpdateOperationOptions) error { + result, err := c.CreateOrUpdate(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_deallocate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_deallocate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_deallocate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_deallocate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_generalize.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_generalize.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_generalize.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_generalize.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_installpatches.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_installpatches.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_installpatches.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_installpatches.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_instanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_instanceview.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_instanceview.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_instanceview.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_list.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_list.go index 1676e94fd8ef..bcf3fe9c0593 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_list.go @@ -25,6 +25,7 @@ type ListCompleteResult struct { } type ListOperationOptions struct { + Expand *ExpandTypeForListVMs Filter *string } @@ -45,6 +46,9 @@ func (o ListOperationOptions) ToOData() *odata.Query { func (o ListOperationOptions) ToQuery() *client.QueryParams { out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } if o.Filter != nil { out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listall.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listall.go index 386419de626b..b653fed7e0bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_listall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listall.go @@ -25,6 +25,7 @@ type ListAllCompleteResult struct { } type ListAllOperationOptions struct { + Expand *ExpandTypesForListVMs Filter *string StatusOnly *string } @@ -46,6 +47,9 @@ func (o ListAllOperationOptions) ToOData() *odata.Query { func (o ListAllOperationOptions) ToQuery() *client.QueryParams { out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } if o.Filter != nil { out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_listavailablesizes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listavailablesizes.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_listavailablesizes.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listavailablesizes.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_listbylocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listbylocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_listbylocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listbylocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_performmaintenance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_performmaintenance.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_performmaintenance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_performmaintenance.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_poweroff.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_poweroff.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_poweroff.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_poweroff.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_reapply.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_reapply.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_reapply.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_reapply.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_redeploy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_redeploy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_redeploy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_redeploy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_reimage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_reimage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_reimage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_reimage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_restart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_restart.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_restart.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_restart.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_retrievebootdiagnosticsdata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_retrievebootdiagnosticsdata.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_runcommand.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_runcommand.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_runcommand.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_runcommand.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_simulateeviction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_simulateeviction.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_simulateeviction.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_simulateeviction.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_start.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_start.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_start.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_start.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_update.go similarity index 60% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_update.go index e048f956bea0..ea3f47c96dc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_update.go @@ -21,15 +21,47 @@ type UpdateOperationResponse struct { Model *VirtualMachine } +type UpdateOperationOptions struct { + IfMatch *string + IfNoneMatch *string +} + +func DefaultUpdateOperationOptions() UpdateOperationOptions { + return UpdateOperationOptions{} +} + +func (o UpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + if o.IfNoneMatch != nil { + out.Append("If-None-Match", fmt.Sprintf("%v", *o.IfNoneMatch)) + } + return &out +} + +func (o UpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o UpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + // Update ... -func (c VirtualMachinesClient) Update(ctx context.Context, id VirtualMachineId, input VirtualMachineUpdate) (result UpdateOperationResponse, err error) { +func (c VirtualMachinesClient) Update(ctx context.Context, id VirtualMachineId, input VirtualMachineUpdate, options UpdateOperationOptions) (result UpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusOK, }, - HttpMethod: http.MethodPatch, - Path: id.ID(), + HttpMethod: http.MethodPatch, + Path: id.ID(), + OptionsObject: options, } req, err := c.Client.NewRequest(ctx, opts) @@ -60,8 +92,8 @@ func (c VirtualMachinesClient) Update(ctx context.Context, id VirtualMachineId, } // UpdateThenPoll performs Update then polls until it's completed -func (c VirtualMachinesClient) UpdateThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachineUpdate) error { - result, err := c.Update(ctx, id, input) +func (c VirtualMachinesClient) UpdateThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachineUpdate, options UpdateOperationOptions) error { + result, err := c.Update(ctx, id, input, options) if err != nil { return fmt.Errorf("performing Update: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_additionalcapabilities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_additionalcapabilities.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_additionalcapabilities.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_additionalcapabilities.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_additionalunattendcontent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_additionalunattendcontent.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_additionalunattendcontent.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_additionalunattendcontent.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinereimageparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_apientityreference.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinereimageparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_apientityreference.go index e44265024012..8d25189f97d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinereimageparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_apientityreference.go @@ -3,6 +3,6 @@ package virtualmachines // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type VirtualMachineReimageParameters struct { - TempDisk *bool `json:"tempDisk,omitempty"` +type ApiEntityReference struct { + Id *string `json:"id,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_apierror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_apierror.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_apierror.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_apierror.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_apierrorbase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_apierrorbase.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_apierrorbase.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_apierrorbase.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_applicationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_applicationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_applicationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_applicationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_attachdetachdatadisksrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_attachdetachdatadisksrequest.go new file mode 100644 index 000000000000..44e542e573ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_attachdetachdatadisksrequest.go @@ -0,0 +1,9 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AttachDetachDataDisksRequest struct { + DataDisksToAttach *[]DataDisksToAttach `json:"dataDisksToAttach,omitempty"` + DataDisksToDetach *[]DataDisksToDetach `json:"dataDisksToDetach,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_availablepatchsummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_availablepatchsummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_availablepatchsummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_availablepatchsummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_billingprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_billingprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_billingprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_billingprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_bootdiagnostics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_bootdiagnostics.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_bootdiagnostics.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_bootdiagnostics.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_bootdiagnosticsinstanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_bootdiagnosticsinstanceview.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_bootdiagnosticsinstanceview.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_bootdiagnosticsinstanceview.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_capacityreservationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_capacityreservationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_capacityreservationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_capacityreservationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_datadisk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_datadisk.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_datadisk.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_datadisk.go index 5805f9815088..9862ec82440a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_datadisk.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_datadisk.go @@ -15,6 +15,7 @@ type DataDisk struct { Lun int64 `json:"lun"` ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"` Name *string `json:"name,omitempty"` + SourceResource *ApiEntityReference `json:"sourceResource,omitempty"` ToBeDetached *bool `json:"toBeDetached,omitempty"` Vhd *VirtualHardDisk `json:"vhd,omitempty"` WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_datadiskstoattach.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_datadiskstoattach.go new file mode 100644 index 000000000000..8673860f112a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_datadiskstoattach.go @@ -0,0 +1,13 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DataDisksToAttach struct { + Caching *CachingTypes `json:"caching,omitempty"` + DeleteOption *DiskDeleteOptionTypes `json:"deleteOption,omitempty"` + DiskEncryptionSet *SubResource `json:"diskEncryptionSet,omitempty"` + DiskId string `json:"diskId"` + Lun *int64 `json:"lun,omitempty"` + WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_linuxpatchsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_datadiskstodetach.go similarity index 50% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_linuxpatchsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_datadiskstodetach.go index 322c8595188d..0f69610548f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_linuxpatchsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_datadiskstodetach.go @@ -3,7 +3,7 @@ package virtualmachines // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type LinuxPatchSettings struct { - AssessmentMode *LinuxPatchAssessmentMode `json:"assessmentMode,omitempty"` - PatchMode *LinuxVMGuestPatchMode `json:"patchMode,omitempty"` +type DataDisksToDetach struct { + DetachOption *DiskDetachOptionTypes `json:"detachOption,omitempty"` + DiskId string `json:"diskId"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_diagnosticsprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_diagnosticsprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_diagnosticsprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_diagnosticsprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_diffdisksettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_diffdisksettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_diffdisksettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_diffdisksettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_diskencryptionsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_diskencryptionsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_diskencryptionsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_diskencryptionsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_diskinstanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_diskinstanceview.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_diskinstanceview.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_diskinstanceview.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_encryptionidentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_encryptionidentity.go new file mode 100644 index 000000000000..a301d4caf322 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_encryptionidentity.go @@ -0,0 +1,8 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EncryptionIdentity struct { + UserAssignedIdentityResourceId *string `json:"userAssignedIdentityResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinepublicipaddressdnssettingsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_eventgridandresourcegraph.go similarity index 61% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinepublicipaddressdnssettingsconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_eventgridandresourcegraph.go index 3a3c4e4cf2c3..2b13155f81fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinepublicipaddressdnssettingsconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_eventgridandresourcegraph.go @@ -3,6 +3,6 @@ package virtualmachines // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type VirtualMachinePublicIPAddressDnsSettingsConfiguration struct { - DomainNameLabel string `json:"domainNameLabel"` +type EventGridAndResourceGraph struct { + Enable *bool `json:"enable,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_hardwareprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_hardwareprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_hardwareprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_hardwareprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_imagereference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_imagereference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_imagereference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_imagereference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_innererror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_innererror.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_innererror.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_innererror.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_instanceviewstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_instanceviewstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_instanceviewstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_instanceviewstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_keyvaultkeyreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_keyvaultkeyreference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_keyvaultkeyreference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_keyvaultkeyreference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_keyvaultsecretreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_keyvaultsecretreference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_keyvaultsecretreference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_keyvaultsecretreference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_lastpatchinstallationsummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_lastpatchinstallationsummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_lastpatchinstallationsummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_lastpatchinstallationsummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_linuxconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxconfiguration.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_linuxconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxconfiguration.go index 9e52b6000889..9cf230b3b45c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_linuxconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxconfiguration.go @@ -5,6 +5,7 @@ package virtualmachines type LinuxConfiguration struct { DisablePasswordAuthentication *bool `json:"disablePasswordAuthentication,omitempty"` + EnableVMAgentPlatformUpdates *bool `json:"enableVMAgentPlatformUpdates,omitempty"` PatchSettings *LinuxPatchSettings `json:"patchSettings,omitempty"` ProvisionVMAgent *bool `json:"provisionVMAgent,omitempty"` Ssh *SshConfiguration `json:"ssh,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_linuxparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_linuxparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxpatchsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxpatchsettings.go new file mode 100644 index 000000000000..6cab7bb4d770 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxpatchsettings.go @@ -0,0 +1,10 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LinuxPatchSettings struct { + AssessmentMode *LinuxPatchAssessmentMode `json:"assessmentMode,omitempty"` + AutomaticByPlatformSettings *LinuxVMGuestPatchAutomaticByPlatformSettings `json:"automaticByPlatformSettings,omitempty"` + PatchMode *LinuxVMGuestPatchMode `json:"patchMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxvmguestpatchautomaticbyplatformsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxvmguestpatchautomaticbyplatformsettings.go new file mode 100644 index 000000000000..d01cfc958361 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_linuxvmguestpatchautomaticbyplatformsettings.go @@ -0,0 +1,9 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LinuxVMGuestPatchAutomaticByPlatformSettings struct { + BypassPlatformSafetyChecksOnUserSchedule *bool `json:"bypassPlatformSafetyChecksOnUserSchedule,omitempty"` + RebootSetting *LinuxVMGuestPatchAutomaticByPlatformRebootSetting `json:"rebootSetting,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_maintenanceredeploystatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_maintenanceredeploystatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_maintenanceredeploystatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_maintenanceredeploystatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_manageddiskparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_manageddiskparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_manageddiskparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_manageddiskparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_networkinterfacereference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_networkinterfacereference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_networkinterfacereference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_networkinterfacereference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_networkinterfacereferenceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_networkinterfacereferenceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_networkinterfacereferenceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_networkinterfacereferenceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_networkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_networkprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_networkprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_networkprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_osdisk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osdisk.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_osdisk.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osdisk.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osimagenotificationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osimagenotificationprofile.go new file mode 100644 index 000000000000..ddbc2dd6c5ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osimagenotificationprofile.go @@ -0,0 +1,9 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OSImageNotificationProfile struct { + Enable *bool `json:"enable,omitempty"` + NotBeforeTimeout *string `json:"notBeforeTimeout,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_osprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_osprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osprofileprovisioningdata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osprofileprovisioningdata.go new file mode 100644 index 000000000000..fa3bf13c1a7c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_osprofileprovisioningdata.go @@ -0,0 +1,9 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OSProfileProvisioningData struct { + AdminPassword *string `json:"adminPassword,omitempty"` + CustomData *string `json:"customData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_patchinstallationdetail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_patchinstallationdetail.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_patchinstallationdetail.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_patchinstallationdetail.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_patchsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_patchsettings.go new file mode 100644 index 000000000000..fa62f8db7d23 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_patchsettings.go @@ -0,0 +1,11 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PatchSettings struct { + AssessmentMode *WindowsPatchAssessmentMode `json:"assessmentMode,omitempty"` + AutomaticByPlatformSettings *WindowsVMGuestPatchAutomaticByPlatformSettings `json:"automaticByPlatformSettings,omitempty"` + EnableHotpatching *bool `json:"enableHotpatching,omitempty"` + PatchMode *WindowsVMGuestPatchMode `json:"patchMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_plan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_plan.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_plan.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_plan.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_proxyagentsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_proxyagentsettings.go new file mode 100644 index 000000000000..a35666190d43 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_proxyagentsettings.go @@ -0,0 +1,10 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProxyAgentSettings struct { + Enabled *bool `json:"enabled,omitempty"` + KeyIncarnationId *int64 `json:"keyIncarnationId,omitempty"` + Mode *Mode `json:"mode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_retrievebootdiagnosticsdataresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_retrievebootdiagnosticsdataresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_retrievebootdiagnosticsdataresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_retrievebootdiagnosticsdataresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_runcommandinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_runcommandinput.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_runcommandinput.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_runcommandinput.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_runcommandinputparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_runcommandinputparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_runcommandinputparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_runcommandinputparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_runcommandresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_runcommandresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_runcommandresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_runcommandresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_scheduledeventsadditionalpublishingtargets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_scheduledeventsadditionalpublishingtargets.go new file mode 100644 index 000000000000..90d123f4dc28 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_scheduledeventsadditionalpublishingtargets.go @@ -0,0 +1,8 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ScheduledEventsAdditionalPublishingTargets struct { + EventGridAndResourceGraph *EventGridAndResourceGraph `json:"eventGridAndResourceGraph,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_scheduledeventspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_scheduledeventspolicy.go new file mode 100644 index 000000000000..7f2aa3ca544c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_scheduledeventspolicy.go @@ -0,0 +1,10 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ScheduledEventsPolicy struct { + ScheduledEventsAdditionalPublishingTargets *ScheduledEventsAdditionalPublishingTargets `json:"scheduledEventsAdditionalPublishingTargets,omitempty"` + UserInitiatedReboot *UserInitiatedReboot `json:"userInitiatedReboot,omitempty"` + UserInitiatedRedeploy *UserInitiatedRedeploy `json:"userInitiatedRedeploy,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_scheduledeventsprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_scheduledeventsprofile.go similarity index 75% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_scheduledeventsprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_scheduledeventsprofile.go index c232e419affd..c4d619e1f44b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_scheduledeventsprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_scheduledeventsprofile.go @@ -4,5 +4,6 @@ package virtualmachines // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ScheduledEventsProfile struct { + OsImageNotificationProfile *OSImageNotificationProfile `json:"osImageNotificationProfile,omitempty"` TerminateNotificationProfile *TerminateNotificationProfile `json:"terminateNotificationProfile,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_securityprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_securityprofile.go new file mode 100644 index 000000000000..21dff4e227a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_securityprofile.go @@ -0,0 +1,12 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityProfile struct { + EncryptionAtHost *bool `json:"encryptionAtHost,omitempty"` + EncryptionIdentity *EncryptionIdentity `json:"encryptionIdentity,omitempty"` + ProxyAgentSettings *ProxyAgentSettings `json:"proxyAgentSettings,omitempty"` + SecurityType *SecurityTypes `json:"securityType,omitempty"` + UefiSettings *UefiSettings `json:"uefiSettings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_sshconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_sshconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_sshconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_sshconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_sshpublickey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_sshpublickey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_sshpublickey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_sshpublickey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_storageprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_storageprofile.go new file mode 100644 index 000000000000..0851d6df3dcf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_storageprofile.go @@ -0,0 +1,11 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageProfile struct { + DataDisks *[]DataDisk `json:"dataDisks,omitempty"` + DiskControllerType *DiskControllerTypes `json:"diskControllerType,omitempty"` + ImageReference *ImageReference `json:"imageReference,omitempty"` + OsDisk *OSDisk `json:"osDisk,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_terminatenotificationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_terminatenotificationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_terminatenotificationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_terminatenotificationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_uefisettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_uefisettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_uefisettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_uefisettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_userinitiatedreboot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_userinitiatedreboot.go new file mode 100644 index 000000000000..61e5b12a9e61 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_userinitiatedreboot.go @@ -0,0 +1,8 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UserInitiatedReboot struct { + AutomaticallyApprove *bool `json:"automaticallyApprove,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_userinitiatedredeploy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_userinitiatedredeploy.go new file mode 100644 index 000000000000..9b68b1337fa8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_userinitiatedredeploy.go @@ -0,0 +1,8 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UserInitiatedRedeploy struct { + AutomaticallyApprove *bool `json:"automaticallyApprove,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vaultcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vaultcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vaultcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vaultcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vaultsecretgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vaultsecretgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vaultsecretgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vaultsecretgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualharddisk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualharddisk.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualharddisk.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualharddisk.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachine.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachine.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachine.go index fe4f97fe8df5..27a76cf739cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachine.go @@ -10,10 +10,12 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VirtualMachine struct { + Etag *string `json:"etag,omitempty"` ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` Id *string `json:"id,omitempty"` Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` Location string `json:"location"` + ManagedBy *string `json:"managedBy,omitempty"` Name *string `json:"name,omitempty"` Plan *Plan `json:"plan,omitempty"` Properties *VirtualMachineProperties `json:"properties,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineagentinstanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineagentinstanceview.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineagentinstanceview.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineagentinstanceview.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineassesspatchesresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineassesspatchesresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineassesspatchesresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineassesspatchesresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinecaptureparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinecaptureparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinecaptureparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinecaptureparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinecaptureresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinecaptureresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinecaptureresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinecaptureresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineextension.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineextension.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineextension.go index 53e2eac67e0c..880b0f17a25a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineextension.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineextension.go @@ -5,7 +5,7 @@ package virtualmachines type VirtualMachineExtension struct { Id *string `json:"id,omitempty"` - Location string `json:"location"` + Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *VirtualMachineExtensionProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineextensionhandlerinstanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineextensionhandlerinstanceview.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineextensionhandlerinstanceview.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineextensionhandlerinstanceview.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineextensioninstanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineextensioninstanceview.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineextensioninstanceview.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineextensioninstanceview.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineextensionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineextensionproperties.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineextensionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineextensionproperties.go index 0f489d6c99fa..58201efcab32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineextensionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineextensionproperties.go @@ -9,7 +9,8 @@ type VirtualMachineExtensionProperties struct { ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` InstanceView *VirtualMachineExtensionInstanceView `json:"instanceView,omitempty"` ProtectedSettings *interface{} `json:"protectedSettings,omitempty"` - ProtectedSettingsFromKeyVault *interface{} `json:"protectedSettingsFromKeyVault,omitempty"` + ProtectedSettingsFromKeyVault *KeyVaultSecretReference `json:"protectedSettingsFromKeyVault,omitempty"` + ProvisionAfterExtensions *[]string `json:"provisionAfterExtensions,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` Publisher *string `json:"publisher,omitempty"` Settings *interface{} `json:"settings,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinehealthstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinehealthstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinehealthstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinehealthstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineinstallpatchesparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineinstallpatchesparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineinstallpatchesparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineinstallpatchesparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineinstallpatchesresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineinstallpatchesresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineinstallpatchesresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineinstallpatchesresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineinstanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineinstanceview.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineinstanceview.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineinstanceview.go index 4864a761f303..8115a5b3cff8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineinstanceview.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineinstanceview.go @@ -10,6 +10,7 @@ type VirtualMachineInstanceView struct { Disks *[]DiskInstanceView `json:"disks,omitempty"` Extensions *[]VirtualMachineExtensionInstanceView `json:"extensions,omitempty"` HyperVGeneration *HyperVGenerationType `json:"hyperVGeneration,omitempty"` + IsVMInStandbyPool *bool `json:"isVMInStandbyPool,omitempty"` MaintenanceRedeployStatus *MaintenanceRedeployStatus `json:"maintenanceRedeployStatus,omitempty"` OsName *string `json:"osName,omitempty"` OsVersion *string `json:"osVersion,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineiptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineiptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineiptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineiptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinenetworkinterfaceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinenetworkinterfaceconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinenetworkinterfaceconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinenetworkinterfaceconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinenetworkinterfaceconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinenetworkinterfaceconfigurationproperties.go similarity index 78% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinenetworkinterfaceconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinenetworkinterfaceconfigurationproperties.go index 44b8e6c963b8..4a93a3359554 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinenetworkinterfaceconfigurationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinenetworkinterfaceconfigurationproperties.go @@ -4,7 +4,10 @@ package virtualmachines // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VirtualMachineNetworkInterfaceConfigurationProperties struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` DnsSettings *VirtualMachineNetworkInterfaceDnsSettingsConfiguration `json:"dnsSettings,omitempty"` DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinenetworkinterfacednssettingsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinenetworkinterfacednssettingsconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinenetworkinterfacednssettingsconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinenetworkinterfacednssettingsconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinenetworkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinenetworkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinenetworkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinenetworkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinenetworkinterfaceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinenetworkinterfaceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinenetworkinterfaceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinenetworkinterfaceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinepatchstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinepatchstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinepatchstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinepatchstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineproperties.go similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineproperties.go index a86d4b384907..2de07158c5e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineproperties.go @@ -29,6 +29,7 @@ type VirtualMachineProperties struct { Priority *VirtualMachinePriorityTypes `json:"priority,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` ProximityPlacementGroup *SubResource `json:"proximityPlacementGroup,omitempty"` + ScheduledEventsPolicy *ScheduledEventsPolicy `json:"scheduledEventsPolicy,omitempty"` ScheduledEventsProfile *ScheduledEventsProfile `json:"scheduledEventsProfile,omitempty"` SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` StorageProfile *StorageProfile `json:"storageProfile,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinepublicipaddressconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinepublicipaddressconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinepublicipaddressconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinepublicipaddressconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinepublicipaddressconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinepublicipaddressconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinepublicipaddressconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinepublicipaddressconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinepublicipaddressdnssettingsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinepublicipaddressdnssettingsconfiguration.go new file mode 100644 index 000000000000..8159711227ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinepublicipaddressdnssettingsconfiguration.go @@ -0,0 +1,9 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualMachinePublicIPAddressDnsSettingsConfiguration struct { + DomainNameLabel string `json:"domainNameLabel"` + DomainNameLabelScope *DomainNameLabelScopeTypes `json:"domainNameLabelScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinereimageparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinereimageparameters.go new file mode 100644 index 000000000000..8dcea267ddde --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinereimageparameters.go @@ -0,0 +1,10 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualMachineReimageParameters struct { + ExactVersion *string `json:"exactVersion,omitempty"` + OsProfile *OSProfileProvisioningData `json:"osProfile,omitempty"` + TempDisk *bool `json:"tempDisk,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinesize.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinesize.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinesize.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinesize.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinesizelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinesizelistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinesizelistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinesizelistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinesoftwarepatchproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinesoftwarepatchproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachinesoftwarepatchproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachinesoftwarepatchproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_virtualmachineupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_virtualmachineupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vmdisksecurityprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vmdisksecurityprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vmdisksecurityprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vmdisksecurityprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vmgalleryapplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vmgalleryapplication.go new file mode 100644 index 000000000000..90b989063e57 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vmgalleryapplication.go @@ -0,0 +1,13 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VMGalleryApplication struct { + ConfigurationReference *string `json:"configurationReference,omitempty"` + EnableAutomaticUpgrade *bool `json:"enableAutomaticUpgrade,omitempty"` + Order *int64 `json:"order,omitempty"` + PackageReferenceId string `json:"packageReferenceId"` + Tags *string `json:"tags,omitempty"` + TreatFailureAsDeploymentFailure *bool `json:"treatFailureAsDeploymentFailure,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vmsizeproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vmsizeproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_vmsizeproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_vmsizeproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_windowsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_windowsconfiguration.go new file mode 100644 index 000000000000..45060fd6cecf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_windowsconfiguration.go @@ -0,0 +1,14 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WindowsConfiguration struct { + AdditionalUnattendContent *[]AdditionalUnattendContent `json:"additionalUnattendContent,omitempty"` + EnableAutomaticUpdates *bool `json:"enableAutomaticUpdates,omitempty"` + EnableVMAgentPlatformUpdates *bool `json:"enableVMAgentPlatformUpdates,omitempty"` + PatchSettings *PatchSettings `json:"patchSettings,omitempty"` + ProvisionVMAgent *bool `json:"provisionVMAgent,omitempty"` + TimeZone *string `json:"timeZone,omitempty"` + WinRM *WinRMConfiguration `json:"winRM,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_windowsparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_windowsparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_windowsparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_windowsparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_windowsvmguestpatchautomaticbyplatformsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_windowsvmguestpatchautomaticbyplatformsettings.go new file mode 100644 index 000000000000..21886cadbc0d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_windowsvmguestpatchautomaticbyplatformsettings.go @@ -0,0 +1,9 @@ +package virtualmachines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WindowsVMGuestPatchAutomaticByPlatformSettings struct { + BypassPlatformSafetyChecksOnUserSchedule *bool `json:"bypassPlatformSafetyChecksOnUserSchedule,omitempty"` + RebootSetting *WindowsVMGuestPatchAutomaticByPlatformRebootSetting `json:"rebootSetting,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_winrmconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_winrmconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_winrmconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_winrmconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_winrmlistener.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_winrmlistener.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/model_winrmlistener.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/model_winrmlistener.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/predicates.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/predicates.go index b6284a175215..565b9864a2e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/predicates.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/predicates.go @@ -4,14 +4,20 @@ package virtualmachines // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VirtualMachineOperationPredicate struct { - Id *string - Location *string - Name *string - Type *string + Etag *string + Id *string + Location *string + ManagedBy *string + Name *string + Type *string } func (p VirtualMachineOperationPredicate) Matches(input VirtualMachine) bool { + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { return false } @@ -20,6 +26,10 @@ func (p VirtualMachineOperationPredicate) Matches(input VirtualMachine) bool { return false } + if p.ManagedBy != nil && (input.ManagedBy == nil || *p.ManagedBy != *input.ManagedBy) { + return false + } + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { return false } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/version.go index 5f2cc5ca0554..9540ddcd820f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachines/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/client.go index 7c611fe53d7c..bec267c5086f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/client.go @@ -1,18 +1,26 @@ package containerinstance -import "github.com/Azure/go-autorest/autorest" +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ContainerInstanceClient struct { - Client autorest.Client - baseUri string + Client *resourcemanager.Client } -func NewContainerInstanceClientWithBaseURI(endpoint string) ContainerInstanceClient { - return ContainerInstanceClient{ - Client: autorest.NewClientWithUserAgent(userAgent()), - baseUri: endpoint, +func NewContainerInstanceClientWithBaseURI(sdkApi sdkEnv.Api) (*ContainerInstanceClient, error) { + client, err := resourcemanager.NewResourceManagerClient(sdkApi, "containerinstance", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ContainerInstanceClient: %+v", err) } + + return &ContainerInstanceClient{ + Client: client, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/constants.go index a3ce76382771..074a23415e75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/constants.go @@ -1,6 +1,10 @@ package containerinstance -import "strings" +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. @@ -19,6 +23,19 @@ func PossibleValuesForContainerGroupIPAddressType() []string { } } +func (s *ContainerGroupIPAddressType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseContainerGroupIPAddressType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + func parseContainerGroupIPAddressType(input string) (*ContainerGroupIPAddressType, error) { vals := map[string]ContainerGroupIPAddressType{ "private": ContainerGroupIPAddressTypePrivate, @@ -47,6 +64,19 @@ func PossibleValuesForContainerGroupNetworkProtocol() []string { } } +func (s *ContainerGroupNetworkProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseContainerGroupNetworkProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + func parseContainerGroupNetworkProtocol(input string) (*ContainerGroupNetworkProtocol, error) { vals := map[string]ContainerGroupNetworkProtocol{ "tcp": ContainerGroupNetworkProtocolTCP, @@ -75,6 +105,19 @@ func PossibleValuesForContainerGroupPriority() []string { } } +func (s *ContainerGroupPriority) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseContainerGroupPriority(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + func parseContainerGroupPriority(input string) (*ContainerGroupPriority, error) { vals := map[string]ContainerGroupPriority{ "regular": ContainerGroupPriorityRegular, @@ -105,6 +148,19 @@ func PossibleValuesForContainerGroupRestartPolicy() []string { } } +func (s *ContainerGroupRestartPolicy) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseContainerGroupRestartPolicy(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + func parseContainerGroupRestartPolicy(input string) (*ContainerGroupRestartPolicy, error) { vals := map[string]ContainerGroupRestartPolicy{ "always": ContainerGroupRestartPolicyAlways, @@ -136,6 +192,19 @@ func PossibleValuesForContainerGroupSku() []string { } } +func (s *ContainerGroupSku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseContainerGroupSku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + func parseContainerGroupSku(input string) (*ContainerGroupSku, error) { vals := map[string]ContainerGroupSku{ "confidential": ContainerGroupSkuConfidential, @@ -165,6 +234,19 @@ func PossibleValuesForContainerNetworkProtocol() []string { } } +func (s *ContainerNetworkProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseContainerNetworkProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + func parseContainerNetworkProtocol(input string) (*ContainerNetworkProtocol, error) { vals := map[string]ContainerNetworkProtocol{ "tcp": ContainerNetworkProtocolTCP, @@ -199,6 +281,19 @@ func PossibleValuesForDnsNameLabelReusePolicy() []string { } } +func (s *DnsNameLabelReusePolicy) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDnsNameLabelReusePolicy(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + func parseDnsNameLabelReusePolicy(input string) (*DnsNameLabelReusePolicy, error) { vals := map[string]DnsNameLabelReusePolicy{ "noreuse": DnsNameLabelReusePolicyNoreuse, @@ -232,6 +327,19 @@ func PossibleValuesForGpuSku() []string { } } +func (s *GpuSku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGpuSku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + func parseGpuSku(input string) (*GpuSku, error) { vals := map[string]GpuSku{ "k80": GpuSkuKEightZero, @@ -261,6 +369,19 @@ func PossibleValuesForLogAnalyticsLogType() []string { } } +func (s *LogAnalyticsLogType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLogAnalyticsLogType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + func parseLogAnalyticsLogType(input string) (*LogAnalyticsLogType, error) { vals := map[string]LogAnalyticsLogType{ "containerinsights": LogAnalyticsLogTypeContainerInsights, @@ -289,6 +410,19 @@ func PossibleValuesForOperatingSystemTypes() []string { } } +func (s *OperatingSystemTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOperatingSystemTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + func parseOperatingSystemTypes(input string) (*OperatingSystemTypes, error) { vals := map[string]OperatingSystemTypes{ "linux": OperatingSystemTypesLinux, @@ -317,6 +451,19 @@ func PossibleValuesForScheme() []string { } } +func (s *Scheme) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseScheme(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + func parseScheme(input string) (*Scheme, error) { vals := map[string]Scheme{ "http": SchemeHTTP, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupscreateorupdate.go similarity index 60% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupscreateorupdate.go index 0db29a6ffd69..f79115be3fd4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupscreateorupdate.go @@ -1,4 +1,4 @@ -package virtualmachines +package containerinstance import ( "context" @@ -14,15 +14,15 @@ import ( // 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 { +type ContainerGroupsCreateOrUpdateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *VirtualMachine + Model *ContainerGroup } -// CreateOrUpdate ... -func (c VirtualMachinesClient) CreateOrUpdate(ctx context.Context, id VirtualMachineId, input VirtualMachine) (result CreateOrUpdateOperationResponse, err error) { +// ContainerGroupsCreateOrUpdate ... +func (c ContainerInstanceClient) ContainerGroupsCreateOrUpdate(ctx context.Context, id ContainerGroupId, input ContainerGroup) (result ContainerGroupsCreateOrUpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -60,15 +60,15 @@ func (c VirtualMachinesClient) CreateOrUpdate(ctx context.Context, id VirtualMac return } -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c VirtualMachinesClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachine) error { - result, err := c.CreateOrUpdate(ctx, id, input) +// ContainerGroupsCreateOrUpdateThenPoll performs ContainerGroupsCreateOrUpdate then polls until it's completed +func (c ContainerInstanceClient) ContainerGroupsCreateOrUpdateThenPoll(ctx context.Context, id ContainerGroupId, input ContainerGroup) error { + result, err := c.ContainerGroupsCreateOrUpdate(ctx, id, input) if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) + return fmt.Errorf("performing ContainerGroupsCreateOrUpdate: %+v", err) } if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + return fmt.Errorf("polling after ContainerGroupsCreateOrUpdate: %+v", err) } return nil diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupscreateorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupscreateorupdate_autorest.go deleted file mode 100644 index 0bd6a6e1bda1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupscreateorupdate_autorest.go +++ /dev/null @@ -1,80 +0,0 @@ -package containerinstance - -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 ContainerGroupsCreateOrUpdateOperationResponse struct { - Poller polling.LongRunningPoller - HttpResponse *http.Response - Model *ContainerGroup -} - -// ContainerGroupsCreateOrUpdate ... -func (c ContainerInstanceClient) ContainerGroupsCreateOrUpdate(ctx context.Context, id ContainerGroupId, input ContainerGroup) (result ContainerGroupsCreateOrUpdateOperationResponse, err error) { - req, err := c.preparerForContainerGroupsCreateOrUpdate(ctx, id, input) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsCreateOrUpdate", nil, "Failure preparing request") - return - } - - result, err = c.senderForContainerGroupsCreateOrUpdate(ctx, req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsCreateOrUpdate", result.HttpResponse, "Failure sending request") - return - } - - return -} - -// ContainerGroupsCreateOrUpdateThenPoll performs ContainerGroupsCreateOrUpdate then polls until it's completed -func (c ContainerInstanceClient) ContainerGroupsCreateOrUpdateThenPoll(ctx context.Context, id ContainerGroupId, input ContainerGroup) error { - result, err := c.ContainerGroupsCreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing ContainerGroupsCreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(); err != nil { - return fmt.Errorf("polling after ContainerGroupsCreateOrUpdate: %+v", err) - } - - return nil -} - -// preparerForContainerGroupsCreateOrUpdate prepares the ContainerGroupsCreateOrUpdate request. -func (c ContainerInstanceClient) preparerForContainerGroupsCreateOrUpdate(ctx context.Context, id ContainerGroupId, input ContainerGroup) (*http.Request, error) { - queryParameters := map[string]interface{}{ - "api-version": defaultApiVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(c.baseUri), - autorest.WithPath(id.ID()), - autorest.WithJSON(input), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// senderForContainerGroupsCreateOrUpdate sends the ContainerGroupsCreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (c ContainerInstanceClient) senderForContainerGroupsCreateOrUpdate(ctx context.Context, req *http.Request) (future ContainerGroupsCreateOrUpdateOperationResponse, 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/containerinstance/2023-05-01/containerinstance/method_containergroupsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsdelete.go new file mode 100644 index 000000000000..3052b7351c13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsdelete.go @@ -0,0 +1,72 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerGroupsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ContainerGroup +} + +// ContainerGroupsDelete ... +func (c ContainerInstanceClient) ContainerGroupsDelete(ctx context.Context, id ContainerGroupId) (result ContainerGroupsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ContainerGroupsDeleteThenPoll performs ContainerGroupsDelete then polls until it's completed +func (c ContainerInstanceClient) ContainerGroupsDeleteThenPoll(ctx context.Context, id ContainerGroupId) error { + result, err := c.ContainerGroupsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing ContainerGroupsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ContainerGroupsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsdelete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsdelete_autorest.go deleted file mode 100644 index da92832c8409..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsdelete_autorest.go +++ /dev/null @@ -1,79 +0,0 @@ -package containerinstance - -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 ContainerGroupsDeleteOperationResponse struct { - Poller polling.LongRunningPoller - HttpResponse *http.Response - Model *ContainerGroup -} - -// ContainerGroupsDelete ... -func (c ContainerInstanceClient) ContainerGroupsDelete(ctx context.Context, id ContainerGroupId) (result ContainerGroupsDeleteOperationResponse, err error) { - req, err := c.preparerForContainerGroupsDelete(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsDelete", nil, "Failure preparing request") - return - } - - result, err = c.senderForContainerGroupsDelete(ctx, req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsDelete", result.HttpResponse, "Failure sending request") - return - } - - return -} - -// ContainerGroupsDeleteThenPoll performs ContainerGroupsDelete then polls until it's completed -func (c ContainerInstanceClient) ContainerGroupsDeleteThenPoll(ctx context.Context, id ContainerGroupId) error { - result, err := c.ContainerGroupsDelete(ctx, id) - if err != nil { - return fmt.Errorf("performing ContainerGroupsDelete: %+v", err) - } - - if err := result.Poller.PollUntilDone(); err != nil { - return fmt.Errorf("polling after ContainerGroupsDelete: %+v", err) - } - - return nil -} - -// preparerForContainerGroupsDelete prepares the ContainerGroupsDelete request. -func (c ContainerInstanceClient) preparerForContainerGroupsDelete(ctx context.Context, id ContainerGroupId) (*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)) -} - -// senderForContainerGroupsDelete sends the ContainerGroupsDelete request. The method will close the -// http.Response Body if it receives an error. -func (c ContainerInstanceClient) senderForContainerGroupsDelete(ctx context.Context, req *http.Request) (future ContainerGroupsDeleteOperationResponse, 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/containerinstance/2023-05-01/containerinstance/method_containergroupsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsget.go new file mode 100644 index 000000000000..a185e3f92842 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsget.go @@ -0,0 +1,54 @@ +package containerinstance + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerGroupsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ContainerGroup +} + +// ContainerGroupsGet ... +func (c ContainerInstanceClient) ContainerGroupsGet(ctx context.Context, id ContainerGroupId) (result ContainerGroupsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ContainerGroup + result.Model = &model + + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsget_autorest.go deleted file mode 100644 index af6ae2e37cd6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsget_autorest.go +++ /dev/null @@ -1,68 +0,0 @@ -package containerinstance - -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 ContainerGroupsGetOperationResponse struct { - HttpResponse *http.Response - Model *ContainerGroup -} - -// ContainerGroupsGet ... -func (c ContainerInstanceClient) ContainerGroupsGet(ctx context.Context, id ContainerGroupId) (result ContainerGroupsGetOperationResponse, err error) { - req, err := c.preparerForContainerGroupsGet(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsGet", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsGet", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForContainerGroupsGet(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsGet", result.HttpResponse, "Failure responding to request") - return - } - - return -} - -// preparerForContainerGroupsGet prepares the ContainerGroupsGet request. -func (c ContainerInstanceClient) preparerForContainerGroupsGet(ctx context.Context, id ContainerGroupId) (*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)) -} - -// responderForContainerGroupsGet handles the response to the ContainerGroupsGet request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForContainerGroupsGet(resp *http.Response) (result ContainerGroupsGetOperationResponse, 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/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints.go new file mode 100644 index 000000000000..e957860b7610 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints.go @@ -0,0 +1,55 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerGroupsGetOutboundNetworkDependenciesEndpointsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]string +} + +// ContainerGroupsGetOutboundNetworkDependenciesEndpoints ... +func (c ContainerInstanceClient) ContainerGroupsGetOutboundNetworkDependenciesEndpoints(ctx context.Context, id ContainerGroupId) (result ContainerGroupsGetOutboundNetworkDependenciesEndpointsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model []string + result.Model = &model + + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints_autorest.go deleted file mode 100644 index 732743d8ec33..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints_autorest.go +++ /dev/null @@ -1,69 +0,0 @@ -package containerinstance - -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 ContainerGroupsGetOutboundNetworkDependenciesEndpointsOperationResponse struct { - HttpResponse *http.Response - Model *[]string -} - -// ContainerGroupsGetOutboundNetworkDependenciesEndpoints ... -func (c ContainerInstanceClient) ContainerGroupsGetOutboundNetworkDependenciesEndpoints(ctx context.Context, id ContainerGroupId) (result ContainerGroupsGetOutboundNetworkDependenciesEndpointsOperationResponse, err error) { - req, err := c.preparerForContainerGroupsGetOutboundNetworkDependenciesEndpoints(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsGetOutboundNetworkDependenciesEndpoints", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsGetOutboundNetworkDependenciesEndpoints", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForContainerGroupsGetOutboundNetworkDependenciesEndpoints(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsGetOutboundNetworkDependenciesEndpoints", result.HttpResponse, "Failure responding to request") - return - } - - return -} - -// preparerForContainerGroupsGetOutboundNetworkDependenciesEndpoints prepares the ContainerGroupsGetOutboundNetworkDependenciesEndpoints request. -func (c ContainerInstanceClient) preparerForContainerGroupsGetOutboundNetworkDependenciesEndpoints(ctx context.Context, id ContainerGroupId) (*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/outboundNetworkDependenciesEndpoints", id.ID())), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// responderForContainerGroupsGetOutboundNetworkDependenciesEndpoints handles the response to the ContainerGroupsGetOutboundNetworkDependenciesEndpoints request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForContainerGroupsGetOutboundNetworkDependenciesEndpoints(resp *http.Response) (result ContainerGroupsGetOutboundNetworkDependenciesEndpointsOperationResponse, 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/containerinstance/2023-05-01/containerinstance/method_containergroupslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslist.go new file mode 100644 index 000000000000..b125d71fc578 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslist.go @@ -0,0 +1,92 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerGroupsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ContainerGroup +} + +type ContainerGroupsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ContainerGroup +} + +// ContainerGroupsList ... +func (c ContainerInstanceClient) ContainerGroupsList(ctx context.Context, id commonids.SubscriptionId) (result ContainerGroupsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.ContainerInstance/containerGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ContainerGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ContainerGroupsListComplete retrieves all the results into a single object +func (c ContainerInstanceClient) ContainerGroupsListComplete(ctx context.Context, id commonids.SubscriptionId) (ContainerGroupsListCompleteResult, error) { + return c.ContainerGroupsListCompleteMatchingPredicate(ctx, id, ContainerGroupOperationPredicate{}) +} + +// ContainerGroupsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ContainerInstanceClient) ContainerGroupsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ContainerGroupOperationPredicate) (result ContainerGroupsListCompleteResult, err error) { + items := make([]ContainerGroup, 0) + + resp, err := c.ContainerGroupsList(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ContainerGroupsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslist_autorest.go deleted file mode 100644 index 4d0113e72a0e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslist_autorest.go +++ /dev/null @@ -1,187 +0,0 @@ -package containerinstance - -import ( - "context" - "fmt" - "net/http" - "net/url" - - "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 ContainerGroupsListOperationResponse struct { - HttpResponse *http.Response - Model *[]ContainerGroup - - nextLink *string - nextPageFunc func(ctx context.Context, nextLink string) (ContainerGroupsListOperationResponse, error) -} - -type ContainerGroupsListCompleteResult struct { - Items []ContainerGroup -} - -func (r ContainerGroupsListOperationResponse) HasMore() bool { - return r.nextLink != nil -} - -func (r ContainerGroupsListOperationResponse) LoadMore(ctx context.Context) (resp ContainerGroupsListOperationResponse, err error) { - if !r.HasMore() { - err = fmt.Errorf("no more pages returned") - return - } - return r.nextPageFunc(ctx, *r.nextLink) -} - -// ContainerGroupsList ... -func (c ContainerInstanceClient) ContainerGroupsList(ctx context.Context, id commonids.SubscriptionId) (resp ContainerGroupsListOperationResponse, err error) { - req, err := c.preparerForContainerGroupsList(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsList", nil, "Failure preparing request") - return - } - - resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsList", resp.HttpResponse, "Failure sending request") - return - } - - resp, err = c.responderForContainerGroupsList(resp.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsList", resp.HttpResponse, "Failure responding to request") - return - } - return -} - -// preparerForContainerGroupsList prepares the ContainerGroupsList request. -func (c ContainerInstanceClient) preparerForContainerGroupsList(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.ContainerInstance/containerGroups", id.ID())), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// preparerForContainerGroupsListWithNextLink prepares the ContainerGroupsList request with the given nextLink token. -func (c ContainerInstanceClient) preparerForContainerGroupsListWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { - uri, err := url.Parse(nextLink) - if err != nil { - return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) - } - queryParameters := map[string]interface{}{} - for k, v := range uri.Query() { - if len(v) == 0 { - continue - } - val := v[0] - val = autorest.Encode("query", val) - queryParameters[k] = val - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsGet(), - autorest.WithBaseURL(c.baseUri), - autorest.WithPath(uri.Path), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// responderForContainerGroupsList handles the response to the ContainerGroupsList request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForContainerGroupsList(resp *http.Response) (result ContainerGroupsListOperationResponse, err error) { - type page struct { - Values []ContainerGroup `json:"value"` - NextLink *string `json:"nextLink"` - } - var respObj page - err = autorest.Respond( - resp, - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&respObj), - autorest.ByClosing()) - result.HttpResponse = resp - result.Model = &respObj.Values - result.nextLink = respObj.NextLink - if respObj.NextLink != nil { - result.nextPageFunc = func(ctx context.Context, nextLink string) (result ContainerGroupsListOperationResponse, err error) { - req, err := c.preparerForContainerGroupsListWithNextLink(ctx, nextLink) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsList", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsList", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForContainerGroupsList(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsList", result.HttpResponse, "Failure responding to request") - return - } - - return - } - } - return -} - -// ContainerGroupsListComplete retrieves all of the results into a single object -func (c ContainerInstanceClient) ContainerGroupsListComplete(ctx context.Context, id commonids.SubscriptionId) (ContainerGroupsListCompleteResult, error) { - return c.ContainerGroupsListCompleteMatchingPredicate(ctx, id, ContainerGroupOperationPredicate{}) -} - -// ContainerGroupsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate -func (c ContainerInstanceClient) ContainerGroupsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ContainerGroupOperationPredicate) (resp ContainerGroupsListCompleteResult, err error) { - items := make([]ContainerGroup, 0) - - page, err := c.ContainerGroupsList(ctx, id) - if err != nil { - err = fmt.Errorf("loading the initial page: %+v", err) - return - } - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - for page.HasMore() { - page, err = page.LoadMore(ctx) - if err != nil { - err = fmt.Errorf("loading the next page: %+v", err) - return - } - - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - } - - out := ContainerGroupsListCompleteResult{ - Items: items, - } - return out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup.go new file mode 100644 index 000000000000..6012783a112c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup.go @@ -0,0 +1,92 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerGroupsListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ContainerGroup +} + +type ContainerGroupsListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []ContainerGroup +} + +// ContainerGroupsListByResourceGroup ... +func (c ContainerInstanceClient) ContainerGroupsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ContainerGroupsListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.ContainerInstance/containerGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ContainerGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ContainerGroupsListByResourceGroupComplete retrieves all the results into a single object +func (c ContainerInstanceClient) ContainerGroupsListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ContainerGroupsListByResourceGroupCompleteResult, error) { + return c.ContainerGroupsListByResourceGroupCompleteMatchingPredicate(ctx, id, ContainerGroupOperationPredicate{}) +} + +// ContainerGroupsListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ContainerInstanceClient) ContainerGroupsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ContainerGroupOperationPredicate) (result ContainerGroupsListByResourceGroupCompleteResult, err error) { + items := make([]ContainerGroup, 0) + + resp, err := c.ContainerGroupsListByResourceGroup(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ContainerGroupsListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup_autorest.go deleted file mode 100644 index 67e4b1d8b492..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup_autorest.go +++ /dev/null @@ -1,187 +0,0 @@ -package containerinstance - -import ( - "context" - "fmt" - "net/http" - "net/url" - - "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 ContainerGroupsListByResourceGroupOperationResponse struct { - HttpResponse *http.Response - Model *[]ContainerGroup - - nextLink *string - nextPageFunc func(ctx context.Context, nextLink string) (ContainerGroupsListByResourceGroupOperationResponse, error) -} - -type ContainerGroupsListByResourceGroupCompleteResult struct { - Items []ContainerGroup -} - -func (r ContainerGroupsListByResourceGroupOperationResponse) HasMore() bool { - return r.nextLink != nil -} - -func (r ContainerGroupsListByResourceGroupOperationResponse) LoadMore(ctx context.Context) (resp ContainerGroupsListByResourceGroupOperationResponse, err error) { - if !r.HasMore() { - err = fmt.Errorf("no more pages returned") - return - } - return r.nextPageFunc(ctx, *r.nextLink) -} - -// ContainerGroupsListByResourceGroup ... -func (c ContainerInstanceClient) ContainerGroupsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp ContainerGroupsListByResourceGroupOperationResponse, err error) { - req, err := c.preparerForContainerGroupsListByResourceGroup(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsListByResourceGroup", nil, "Failure preparing request") - return - } - - resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsListByResourceGroup", resp.HttpResponse, "Failure sending request") - return - } - - resp, err = c.responderForContainerGroupsListByResourceGroup(resp.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsListByResourceGroup", resp.HttpResponse, "Failure responding to request") - return - } - return -} - -// preparerForContainerGroupsListByResourceGroup prepares the ContainerGroupsListByResourceGroup request. -func (c ContainerInstanceClient) preparerForContainerGroupsListByResourceGroup(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.ContainerInstance/containerGroups", id.ID())), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// preparerForContainerGroupsListByResourceGroupWithNextLink prepares the ContainerGroupsListByResourceGroup request with the given nextLink token. -func (c ContainerInstanceClient) preparerForContainerGroupsListByResourceGroupWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { - uri, err := url.Parse(nextLink) - if err != nil { - return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) - } - queryParameters := map[string]interface{}{} - for k, v := range uri.Query() { - if len(v) == 0 { - continue - } - val := v[0] - val = autorest.Encode("query", val) - queryParameters[k] = val - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsGet(), - autorest.WithBaseURL(c.baseUri), - autorest.WithPath(uri.Path), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// responderForContainerGroupsListByResourceGroup handles the response to the ContainerGroupsListByResourceGroup request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForContainerGroupsListByResourceGroup(resp *http.Response) (result ContainerGroupsListByResourceGroupOperationResponse, err error) { - type page struct { - Values []ContainerGroup `json:"value"` - NextLink *string `json:"nextLink"` - } - var respObj page - err = autorest.Respond( - resp, - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&respObj), - autorest.ByClosing()) - result.HttpResponse = resp - result.Model = &respObj.Values - result.nextLink = respObj.NextLink - if respObj.NextLink != nil { - result.nextPageFunc = func(ctx context.Context, nextLink string) (result ContainerGroupsListByResourceGroupOperationResponse, err error) { - req, err := c.preparerForContainerGroupsListByResourceGroupWithNextLink(ctx, nextLink) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsListByResourceGroup", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsListByResourceGroup", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForContainerGroupsListByResourceGroup(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsListByResourceGroup", result.HttpResponse, "Failure responding to request") - return - } - - return - } - } - return -} - -// ContainerGroupsListByResourceGroupComplete retrieves all of the results into a single object -func (c ContainerInstanceClient) ContainerGroupsListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ContainerGroupsListByResourceGroupCompleteResult, error) { - return c.ContainerGroupsListByResourceGroupCompleteMatchingPredicate(ctx, id, ContainerGroupOperationPredicate{}) -} - -// ContainerGroupsListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate -func (c ContainerInstanceClient) ContainerGroupsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ContainerGroupOperationPredicate) (resp ContainerGroupsListByResourceGroupCompleteResult, err error) { - items := make([]ContainerGroup, 0) - - page, err := c.ContainerGroupsListByResourceGroup(ctx, id) - if err != nil { - err = fmt.Errorf("loading the initial page: %+v", err) - return - } - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - for page.HasMore() { - page, err = page.LoadMore(ctx) - if err != nil { - err = fmt.Errorf("loading the next page: %+v", err) - return - } - - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - } - - out := ContainerGroupsListByResourceGroupCompleteResult{ - Items: items, - } - return out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsrestart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsrestart.go new file mode 100644 index 000000000000..1d567778c037 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsrestart.go @@ -0,0 +1,69 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerGroupsRestartOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ContainerGroupsRestart ... +func (c ContainerInstanceClient) ContainerGroupsRestart(ctx context.Context, id ContainerGroupId) (result ContainerGroupsRestartOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restart", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ContainerGroupsRestartThenPoll performs ContainerGroupsRestart then polls until it's completed +func (c ContainerInstanceClient) ContainerGroupsRestartThenPoll(ctx context.Context, id ContainerGroupId) error { + result, err := c.ContainerGroupsRestart(ctx, id) + if err != nil { + return fmt.Errorf("performing ContainerGroupsRestart: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ContainerGroupsRestart: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsrestart_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsrestart_autorest.go deleted file mode 100644 index b4792ea3d197..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsrestart_autorest.go +++ /dev/null @@ -1,78 +0,0 @@ -package containerinstance - -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 ContainerGroupsRestartOperationResponse struct { - Poller polling.LongRunningPoller - HttpResponse *http.Response -} - -// ContainerGroupsRestart ... -func (c ContainerInstanceClient) ContainerGroupsRestart(ctx context.Context, id ContainerGroupId) (result ContainerGroupsRestartOperationResponse, err error) { - req, err := c.preparerForContainerGroupsRestart(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsRestart", nil, "Failure preparing request") - return - } - - result, err = c.senderForContainerGroupsRestart(ctx, req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsRestart", result.HttpResponse, "Failure sending request") - return - } - - return -} - -// ContainerGroupsRestartThenPoll performs ContainerGroupsRestart then polls until it's completed -func (c ContainerInstanceClient) ContainerGroupsRestartThenPoll(ctx context.Context, id ContainerGroupId) error { - result, err := c.ContainerGroupsRestart(ctx, id) - if err != nil { - return fmt.Errorf("performing ContainerGroupsRestart: %+v", err) - } - - if err := result.Poller.PollUntilDone(); err != nil { - return fmt.Errorf("polling after ContainerGroupsRestart: %+v", err) - } - - return nil -} - -// preparerForContainerGroupsRestart prepares the ContainerGroupsRestart request. -func (c ContainerInstanceClient) preparerForContainerGroupsRestart(ctx context.Context, id ContainerGroupId) (*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/restart", id.ID())), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// senderForContainerGroupsRestart sends the ContainerGroupsRestart request. The method will close the -// http.Response Body if it receives an error. -func (c ContainerInstanceClient) senderForContainerGroupsRestart(ctx context.Context, req *http.Request) (future ContainerGroupsRestartOperationResponse, 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/containerinstance/2023-05-01/containerinstance/method_containergroupsstart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstart.go new file mode 100644 index 000000000000..c3e6d2c56842 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstart.go @@ -0,0 +1,70 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerGroupsStartOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ContainerGroupsStart ... +func (c ContainerInstanceClient) ContainerGroupsStart(ctx context.Context, id ContainerGroupId) (result ContainerGroupsStartOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/start", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ContainerGroupsStartThenPoll performs ContainerGroupsStart then polls until it's completed +func (c ContainerInstanceClient) ContainerGroupsStartThenPoll(ctx context.Context, id ContainerGroupId) error { + result, err := c.ContainerGroupsStart(ctx, id) + if err != nil { + return fmt.Errorf("performing ContainerGroupsStart: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ContainerGroupsStart: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstart_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstart_autorest.go deleted file mode 100644 index eb0e27e83be3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstart_autorest.go +++ /dev/null @@ -1,78 +0,0 @@ -package containerinstance - -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 ContainerGroupsStartOperationResponse struct { - Poller polling.LongRunningPoller - HttpResponse *http.Response -} - -// ContainerGroupsStart ... -func (c ContainerInstanceClient) ContainerGroupsStart(ctx context.Context, id ContainerGroupId) (result ContainerGroupsStartOperationResponse, err error) { - req, err := c.preparerForContainerGroupsStart(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsStart", nil, "Failure preparing request") - return - } - - result, err = c.senderForContainerGroupsStart(ctx, req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsStart", result.HttpResponse, "Failure sending request") - return - } - - return -} - -// ContainerGroupsStartThenPoll performs ContainerGroupsStart then polls until it's completed -func (c ContainerInstanceClient) ContainerGroupsStartThenPoll(ctx context.Context, id ContainerGroupId) error { - result, err := c.ContainerGroupsStart(ctx, id) - if err != nil { - return fmt.Errorf("performing ContainerGroupsStart: %+v", err) - } - - if err := result.Poller.PollUntilDone(); err != nil { - return fmt.Errorf("polling after ContainerGroupsStart: %+v", err) - } - - return nil -} - -// preparerForContainerGroupsStart prepares the ContainerGroupsStart request. -func (c ContainerInstanceClient) preparerForContainerGroupsStart(ctx context.Context, id ContainerGroupId) (*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)) -} - -// senderForContainerGroupsStart sends the ContainerGroupsStart request. The method will close the -// http.Response Body if it receives an error. -func (c ContainerInstanceClient) senderForContainerGroupsStart(ctx context.Context, req *http.Request) (future ContainerGroupsStartOperationResponse, 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/containerinstance/2023-05-01/containerinstance/method_containergroupsstop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstop.go new file mode 100644 index 000000000000..82a8c0b9a072 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstop.go @@ -0,0 +1,47 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerGroupsStopOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// ContainerGroupsStop ... +func (c ContainerInstanceClient) ContainerGroupsStop(ctx context.Context, id ContainerGroupId) (result ContainerGroupsStopOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstop_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstop_autorest.go deleted file mode 100644 index 4fab0380b9b8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsstop_autorest.go +++ /dev/null @@ -1,67 +0,0 @@ -package containerinstance - -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 ContainerGroupsStopOperationResponse struct { - HttpResponse *http.Response -} - -// ContainerGroupsStop ... -func (c ContainerInstanceClient) ContainerGroupsStop(ctx context.Context, id ContainerGroupId) (result ContainerGroupsStopOperationResponse, err error) { - req, err := c.preparerForContainerGroupsStop(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsStop", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsStop", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForContainerGroupsStop(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsStop", result.HttpResponse, "Failure responding to request") - return - } - - return -} - -// preparerForContainerGroupsStop prepares the ContainerGroupsStop request. -func (c ContainerInstanceClient) preparerForContainerGroupsStop(ctx context.Context, id ContainerGroupId) (*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)) -} - -// responderForContainerGroupsStop handles the response to the ContainerGroupsStop request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForContainerGroupsStop(resp *http.Response) (result ContainerGroupsStopOperationResponse, err error) { - err = autorest.Respond( - resp, - azure.WithErrorUnlessStatusCode(http.StatusNoContent), - autorest.ByClosing()) - result.HttpResponse = resp - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate.go new file mode 100644 index 000000000000..ab81ed5b734c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate.go @@ -0,0 +1,58 @@ +package containerinstance + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerGroupsUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ContainerGroup +} + +// ContainerGroupsUpdate ... +func (c ContainerInstanceClient) ContainerGroupsUpdate(ctx context.Context, id ContainerGroupId, input Resource) (result ContainerGroupsUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ContainerGroup + result.Model = &model + + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate_autorest.go deleted file mode 100644 index 9981b0f6707f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate_autorest.go +++ /dev/null @@ -1,69 +0,0 @@ -package containerinstance - -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 ContainerGroupsUpdateOperationResponse struct { - HttpResponse *http.Response - Model *ContainerGroup -} - -// ContainerGroupsUpdate ... -func (c ContainerInstanceClient) ContainerGroupsUpdate(ctx context.Context, id ContainerGroupId, input Resource) (result ContainerGroupsUpdateOperationResponse, err error) { - req, err := c.preparerForContainerGroupsUpdate(ctx, id, input) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsUpdate", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsUpdate", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForContainerGroupsUpdate(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainerGroupsUpdate", result.HttpResponse, "Failure responding to request") - return - } - - return -} - -// preparerForContainerGroupsUpdate prepares the ContainerGroupsUpdate request. -func (c ContainerInstanceClient) preparerForContainerGroupsUpdate(ctx context.Context, id ContainerGroupId, input Resource) (*http.Request, error) { - queryParameters := map[string]interface{}{ - "api-version": defaultApiVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(c.baseUri), - autorest.WithPath(id.ID()), - autorest.WithJSON(input), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// responderForContainerGroupsUpdate handles the response to the ContainerGroupsUpdate request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForContainerGroupsUpdate(resp *http.Response) (result ContainerGroupsUpdateOperationResponse, 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/containerinstance/2023-05-01/containerinstance/method_containersattach.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersattach.go new file mode 100644 index 000000000000..bf56bbcf9391 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersattach.go @@ -0,0 +1,55 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainersAttachOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ContainerAttachResponse +} + +// ContainersAttach ... +func (c ContainerInstanceClient) ContainersAttach(ctx context.Context, id ContainerId) (result ContainersAttachOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/attach", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ContainerAttachResponse + result.Model = &model + + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersattach_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersattach_autorest.go deleted file mode 100644 index aff05fac3274..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersattach_autorest.go +++ /dev/null @@ -1,69 +0,0 @@ -package containerinstance - -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 ContainersAttachOperationResponse struct { - HttpResponse *http.Response - Model *ContainerAttachResponse -} - -// ContainersAttach ... -func (c ContainerInstanceClient) ContainersAttach(ctx context.Context, id ContainerId) (result ContainersAttachOperationResponse, err error) { - req, err := c.preparerForContainersAttach(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainersAttach", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainersAttach", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForContainersAttach(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainersAttach", result.HttpResponse, "Failure responding to request") - return - } - - return -} - -// preparerForContainersAttach prepares the ContainersAttach request. -func (c ContainerInstanceClient) preparerForContainersAttach(ctx context.Context, id ContainerId) (*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/attach", id.ID())), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// responderForContainersAttach handles the response to the ContainersAttach request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForContainersAttach(resp *http.Response) (result ContainersAttachOperationResponse, 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/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand.go new file mode 100644 index 000000000000..1701b25a299c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand.go @@ -0,0 +1,59 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainersExecuteCommandOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ContainerExecResponse +} + +// ContainersExecuteCommand ... +func (c ContainerInstanceClient) ContainersExecuteCommand(ctx context.Context, id ContainerId, input ContainerExecRequest) (result ContainersExecuteCommandOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/exec", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ContainerExecResponse + result.Model = &model + + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand_autorest.go deleted file mode 100644 index 1001f4c29b11..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand_autorest.go +++ /dev/null @@ -1,70 +0,0 @@ -package containerinstance - -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 ContainersExecuteCommandOperationResponse struct { - HttpResponse *http.Response - Model *ContainerExecResponse -} - -// ContainersExecuteCommand ... -func (c ContainerInstanceClient) ContainersExecuteCommand(ctx context.Context, id ContainerId, input ContainerExecRequest) (result ContainersExecuteCommandOperationResponse, err error) { - req, err := c.preparerForContainersExecuteCommand(ctx, id, input) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainersExecuteCommand", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainersExecuteCommand", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForContainersExecuteCommand(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainersExecuteCommand", result.HttpResponse, "Failure responding to request") - return - } - - return -} - -// preparerForContainersExecuteCommand prepares the ContainersExecuteCommand request. -func (c ContainerInstanceClient) preparerForContainersExecuteCommand(ctx context.Context, id ContainerId, input ContainerExecRequest) (*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/exec", id.ID())), - autorest.WithJSON(input), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// responderForContainersExecuteCommand handles the response to the ContainersExecuteCommand request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForContainersExecuteCommand(resp *http.Response) (result ContainersExecuteCommandOperationResponse, 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/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go new file mode 100644 index 000000000000..1f7dba6249af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go @@ -0,0 +1,87 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainersListLogsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Logs +} + +type ContainersListLogsOperationOptions struct { + Tail *int64 + Timestamps *bool +} + +func DefaultContainersListLogsOperationOptions() ContainersListLogsOperationOptions { + return ContainersListLogsOperationOptions{} +} + +func (o ContainersListLogsOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ContainersListLogsOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o ContainersListLogsOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Tail != nil { + out.Append("tail", fmt.Sprintf("%v", *o.Tail)) + } + if o.Timestamps != nil { + out.Append("timestamps", fmt.Sprintf("%v", *o.Timestamps)) + } + return &out +} + +// ContainersListLogs ... +func (c ContainerInstanceClient) ContainersListLogs(ctx context.Context, id ContainerId, options ContainersListLogsOperationOptions) (result ContainersListLogsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/logs", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Logs + result.Model = &model + + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs_autorest.go deleted file mode 100644 index ed9b55e5185d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs_autorest.go +++ /dev/null @@ -1,103 +0,0 @@ -package containerinstance - -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 ContainersListLogsOperationResponse struct { - HttpResponse *http.Response - Model *Logs -} - -type ContainersListLogsOperationOptions struct { - Tail *int64 - Timestamps *bool -} - -func DefaultContainersListLogsOperationOptions() ContainersListLogsOperationOptions { - return ContainersListLogsOperationOptions{} -} - -func (o ContainersListLogsOperationOptions) toHeaders() map[string]interface{} { - out := make(map[string]interface{}) - - return out -} - -func (o ContainersListLogsOperationOptions) toQueryString() map[string]interface{} { - out := make(map[string]interface{}) - - if o.Tail != nil { - out["tail"] = *o.Tail - } - - if o.Timestamps != nil { - out["timestamps"] = *o.Timestamps - } - - return out -} - -// ContainersListLogs ... -func (c ContainerInstanceClient) ContainersListLogs(ctx context.Context, id ContainerId, options ContainersListLogsOperationOptions) (result ContainersListLogsOperationResponse, err error) { - req, err := c.preparerForContainersListLogs(ctx, id, options) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainersListLogs", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainersListLogs", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForContainersListLogs(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "ContainersListLogs", result.HttpResponse, "Failure responding to request") - return - } - - return -} - -// preparerForContainersListLogs prepares the ContainersListLogs request. -func (c ContainerInstanceClient) preparerForContainersListLogs(ctx context.Context, id ContainerId, options ContainersListLogsOperationOptions) (*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.AsGet(), - autorest.WithBaseURL(c.baseUri), - autorest.WithHeaders(options.toHeaders()), - autorest.WithPath(fmt.Sprintf("%s/logs", id.ID())), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// responderForContainersListLogs handles the response to the ContainersListLogs request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForContainersListLogs(resp *http.Response) (result ContainersListLogsOperationResponse, 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/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages.go new file mode 100644 index 000000000000..2f07dea8475d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages.go @@ -0,0 +1,91 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocationListCachedImagesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CachedImages +} + +type LocationListCachedImagesCompleteResult struct { + LatestHttpResponse *http.Response + Items []CachedImages +} + +// LocationListCachedImages ... +func (c ContainerInstanceClient) LocationListCachedImages(ctx context.Context, id LocationId) (result LocationListCachedImagesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/cachedImages", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CachedImages `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// LocationListCachedImagesComplete retrieves all the results into a single object +func (c ContainerInstanceClient) LocationListCachedImagesComplete(ctx context.Context, id LocationId) (LocationListCachedImagesCompleteResult, error) { + return c.LocationListCachedImagesCompleteMatchingPredicate(ctx, id, CachedImagesOperationPredicate{}) +} + +// LocationListCachedImagesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ContainerInstanceClient) LocationListCachedImagesCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate CachedImagesOperationPredicate) (result LocationListCachedImagesCompleteResult, err error) { + items := make([]CachedImages, 0) + + resp, err := c.LocationListCachedImages(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = LocationListCachedImagesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages_autorest.go deleted file mode 100644 index 612c11dc940a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages_autorest.go +++ /dev/null @@ -1,186 +0,0 @@ -package containerinstance - -import ( - "context" - "fmt" - "net/http" - "net/url" - - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LocationListCachedImagesOperationResponse struct { - HttpResponse *http.Response - Model *[]CachedImages - - nextLink *string - nextPageFunc func(ctx context.Context, nextLink string) (LocationListCachedImagesOperationResponse, error) -} - -type LocationListCachedImagesCompleteResult struct { - Items []CachedImages -} - -func (r LocationListCachedImagesOperationResponse) HasMore() bool { - return r.nextLink != nil -} - -func (r LocationListCachedImagesOperationResponse) LoadMore(ctx context.Context) (resp LocationListCachedImagesOperationResponse, err error) { - if !r.HasMore() { - err = fmt.Errorf("no more pages returned") - return - } - return r.nextPageFunc(ctx, *r.nextLink) -} - -// LocationListCachedImages ... -func (c ContainerInstanceClient) LocationListCachedImages(ctx context.Context, id LocationId) (resp LocationListCachedImagesOperationResponse, err error) { - req, err := c.preparerForLocationListCachedImages(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCachedImages", nil, "Failure preparing request") - return - } - - resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCachedImages", resp.HttpResponse, "Failure sending request") - return - } - - resp, err = c.responderForLocationListCachedImages(resp.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCachedImages", resp.HttpResponse, "Failure responding to request") - return - } - return -} - -// preparerForLocationListCachedImages prepares the LocationListCachedImages request. -func (c ContainerInstanceClient) preparerForLocationListCachedImages(ctx context.Context, id LocationId) (*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/cachedImages", id.ID())), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// preparerForLocationListCachedImagesWithNextLink prepares the LocationListCachedImages request with the given nextLink token. -func (c ContainerInstanceClient) preparerForLocationListCachedImagesWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { - uri, err := url.Parse(nextLink) - if err != nil { - return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) - } - queryParameters := map[string]interface{}{} - for k, v := range uri.Query() { - if len(v) == 0 { - continue - } - val := v[0] - val = autorest.Encode("query", val) - queryParameters[k] = val - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsGet(), - autorest.WithBaseURL(c.baseUri), - autorest.WithPath(uri.Path), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// responderForLocationListCachedImages handles the response to the LocationListCachedImages request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForLocationListCachedImages(resp *http.Response) (result LocationListCachedImagesOperationResponse, err error) { - type page struct { - Values []CachedImages `json:"value"` - NextLink *string `json:"nextLink"` - } - var respObj page - err = autorest.Respond( - resp, - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&respObj), - autorest.ByClosing()) - result.HttpResponse = resp - result.Model = &respObj.Values - result.nextLink = respObj.NextLink - if respObj.NextLink != nil { - result.nextPageFunc = func(ctx context.Context, nextLink string) (result LocationListCachedImagesOperationResponse, err error) { - req, err := c.preparerForLocationListCachedImagesWithNextLink(ctx, nextLink) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCachedImages", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCachedImages", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForLocationListCachedImages(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCachedImages", result.HttpResponse, "Failure responding to request") - return - } - - return - } - } - return -} - -// LocationListCachedImagesComplete retrieves all of the results into a single object -func (c ContainerInstanceClient) LocationListCachedImagesComplete(ctx context.Context, id LocationId) (LocationListCachedImagesCompleteResult, error) { - return c.LocationListCachedImagesCompleteMatchingPredicate(ctx, id, CachedImagesOperationPredicate{}) -} - -// LocationListCachedImagesCompleteMatchingPredicate retrieves all of the results and then applied the predicate -func (c ContainerInstanceClient) LocationListCachedImagesCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate CachedImagesOperationPredicate) (resp LocationListCachedImagesCompleteResult, err error) { - items := make([]CachedImages, 0) - - page, err := c.LocationListCachedImages(ctx, id) - if err != nil { - err = fmt.Errorf("loading the initial page: %+v", err) - return - } - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - for page.HasMore() { - page, err = page.LoadMore(ctx) - if err != nil { - err = fmt.Errorf("loading the next page: %+v", err) - return - } - - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - } - - out := LocationListCachedImagesCompleteResult{ - Items: items, - } - return out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities.go new file mode 100644 index 000000000000..1957a5bb41b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities.go @@ -0,0 +1,91 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocationListCapabilitiesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Capabilities +} + +type LocationListCapabilitiesCompleteResult struct { + LatestHttpResponse *http.Response + Items []Capabilities +} + +// LocationListCapabilities ... +func (c ContainerInstanceClient) LocationListCapabilities(ctx context.Context, id LocationId) (result LocationListCapabilitiesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/capabilities", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Capabilities `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// LocationListCapabilitiesComplete retrieves all the results into a single object +func (c ContainerInstanceClient) LocationListCapabilitiesComplete(ctx context.Context, id LocationId) (LocationListCapabilitiesCompleteResult, error) { + return c.LocationListCapabilitiesCompleteMatchingPredicate(ctx, id, CapabilitiesOperationPredicate{}) +} + +// LocationListCapabilitiesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ContainerInstanceClient) LocationListCapabilitiesCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate CapabilitiesOperationPredicate) (result LocationListCapabilitiesCompleteResult, err error) { + items := make([]Capabilities, 0) + + resp, err := c.LocationListCapabilities(ctx, id) + if err != nil { + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = LocationListCapabilitiesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities_autorest.go deleted file mode 100644 index 473480935fef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities_autorest.go +++ /dev/null @@ -1,186 +0,0 @@ -package containerinstance - -import ( - "context" - "fmt" - "net/http" - "net/url" - - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LocationListCapabilitiesOperationResponse struct { - HttpResponse *http.Response - Model *[]Capabilities - - nextLink *string - nextPageFunc func(ctx context.Context, nextLink string) (LocationListCapabilitiesOperationResponse, error) -} - -type LocationListCapabilitiesCompleteResult struct { - Items []Capabilities -} - -func (r LocationListCapabilitiesOperationResponse) HasMore() bool { - return r.nextLink != nil -} - -func (r LocationListCapabilitiesOperationResponse) LoadMore(ctx context.Context) (resp LocationListCapabilitiesOperationResponse, err error) { - if !r.HasMore() { - err = fmt.Errorf("no more pages returned") - return - } - return r.nextPageFunc(ctx, *r.nextLink) -} - -// LocationListCapabilities ... -func (c ContainerInstanceClient) LocationListCapabilities(ctx context.Context, id LocationId) (resp LocationListCapabilitiesOperationResponse, err error) { - req, err := c.preparerForLocationListCapabilities(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCapabilities", nil, "Failure preparing request") - return - } - - resp.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCapabilities", resp.HttpResponse, "Failure sending request") - return - } - - resp, err = c.responderForLocationListCapabilities(resp.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCapabilities", resp.HttpResponse, "Failure responding to request") - return - } - return -} - -// preparerForLocationListCapabilities prepares the LocationListCapabilities request. -func (c ContainerInstanceClient) preparerForLocationListCapabilities(ctx context.Context, id LocationId) (*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/capabilities", id.ID())), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// preparerForLocationListCapabilitiesWithNextLink prepares the LocationListCapabilities request with the given nextLink token. -func (c ContainerInstanceClient) preparerForLocationListCapabilitiesWithNextLink(ctx context.Context, nextLink string) (*http.Request, error) { - uri, err := url.Parse(nextLink) - if err != nil { - return nil, fmt.Errorf("parsing nextLink %q: %+v", nextLink, err) - } - queryParameters := map[string]interface{}{} - for k, v := range uri.Query() { - if len(v) == 0 { - continue - } - val := v[0] - val = autorest.Encode("query", val) - queryParameters[k] = val - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsGet(), - autorest.WithBaseURL(c.baseUri), - autorest.WithPath(uri.Path), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// responderForLocationListCapabilities handles the response to the LocationListCapabilities request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForLocationListCapabilities(resp *http.Response) (result LocationListCapabilitiesOperationResponse, err error) { - type page struct { - Values []Capabilities `json:"value"` - NextLink *string `json:"nextLink"` - } - var respObj page - err = autorest.Respond( - resp, - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&respObj), - autorest.ByClosing()) - result.HttpResponse = resp - result.Model = &respObj.Values - result.nextLink = respObj.NextLink - if respObj.NextLink != nil { - result.nextPageFunc = func(ctx context.Context, nextLink string) (result LocationListCapabilitiesOperationResponse, err error) { - req, err := c.preparerForLocationListCapabilitiesWithNextLink(ctx, nextLink) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCapabilities", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCapabilities", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForLocationListCapabilities(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListCapabilities", result.HttpResponse, "Failure responding to request") - return - } - - return - } - } - return -} - -// LocationListCapabilitiesComplete retrieves all of the results into a single object -func (c ContainerInstanceClient) LocationListCapabilitiesComplete(ctx context.Context, id LocationId) (LocationListCapabilitiesCompleteResult, error) { - return c.LocationListCapabilitiesCompleteMatchingPredicate(ctx, id, CapabilitiesOperationPredicate{}) -} - -// LocationListCapabilitiesCompleteMatchingPredicate retrieves all of the results and then applied the predicate -func (c ContainerInstanceClient) LocationListCapabilitiesCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate CapabilitiesOperationPredicate) (resp LocationListCapabilitiesCompleteResult, err error) { - items := make([]Capabilities, 0) - - page, err := c.LocationListCapabilities(ctx, id) - if err != nil { - err = fmt.Errorf("loading the initial page: %+v", err) - return - } - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - for page.HasMore() { - page, err = page.LoadMore(ctx) - if err != nil { - err = fmt.Errorf("loading the next page: %+v", err) - return - } - - if page.Model != nil { - for _, v := range *page.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - } - - out := LocationListCapabilitiesCompleteResult{ - Items: items, - } - return out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage.go new file mode 100644 index 000000000000..e7f7dfc3786e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage.go @@ -0,0 +1,55 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocationListUsageOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *UsageListResult +} + +// LocationListUsage ... +func (c ContainerInstanceClient) LocationListUsage(ctx context.Context, id LocationId) (result LocationListUsageOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/usages", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model UsageListResult + result.Model = &model + + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage_autorest.go deleted file mode 100644 index 461b96fac0cf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage_autorest.go +++ /dev/null @@ -1,69 +0,0 @@ -package containerinstance - -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 LocationListUsageOperationResponse struct { - HttpResponse *http.Response - Model *UsageListResult -} - -// LocationListUsage ... -func (c ContainerInstanceClient) LocationListUsage(ctx context.Context, id LocationId) (result LocationListUsageOperationResponse, err error) { - req, err := c.preparerForLocationListUsage(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListUsage", nil, "Failure preparing request") - return - } - - result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListUsage", result.HttpResponse, "Failure sending request") - return - } - - result, err = c.responderForLocationListUsage(result.HttpResponse) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "LocationListUsage", result.HttpResponse, "Failure responding to request") - return - } - - return -} - -// preparerForLocationListUsage prepares the LocationListUsage request. -func (c ContainerInstanceClient) preparerForLocationListUsage(ctx context.Context, id LocationId) (*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/usages", id.ID())), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// responderForLocationListUsage handles the response to the LocationListUsage request. The method always -// closes the http.Response Body. -func (c ContainerInstanceClient) responderForLocationListUsage(resp *http.Response) (result LocationListUsageOperationResponse, 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/containerinstance/2023-05-01/containerinstance/method_subnetserviceassociationlinkdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_subnetserviceassociationlinkdelete.go new file mode 100644 index 000000000000..a9b469719f8f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_subnetserviceassociationlinkdelete.go @@ -0,0 +1,72 @@ +package containerinstance + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetServiceAssociationLinkDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// SubnetServiceAssociationLinkDelete ... +func (c ContainerInstanceClient) SubnetServiceAssociationLinkDelete(ctx context.Context, id commonids.SubnetId) (result SubnetServiceAssociationLinkDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SubnetServiceAssociationLinkDeleteThenPoll performs SubnetServiceAssociationLinkDelete then polls until it's completed +func (c ContainerInstanceClient) SubnetServiceAssociationLinkDeleteThenPoll(ctx context.Context, id commonids.SubnetId) error { + result, err := c.SubnetServiceAssociationLinkDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing SubnetServiceAssociationLinkDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after SubnetServiceAssociationLinkDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_subnetserviceassociationlinkdelete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_subnetserviceassociationlinkdelete_autorest.go deleted file mode 100644 index 0a90357e821c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_subnetserviceassociationlinkdelete_autorest.go +++ /dev/null @@ -1,79 +0,0 @@ -package containerinstance - -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" - "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 SubnetServiceAssociationLinkDeleteOperationResponse struct { - Poller polling.LongRunningPoller - HttpResponse *http.Response -} - -// SubnetServiceAssociationLinkDelete ... -func (c ContainerInstanceClient) SubnetServiceAssociationLinkDelete(ctx context.Context, id commonids.SubnetId) (result SubnetServiceAssociationLinkDeleteOperationResponse, err error) { - req, err := c.preparerForSubnetServiceAssociationLinkDelete(ctx, id) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "SubnetServiceAssociationLinkDelete", nil, "Failure preparing request") - return - } - - result, err = c.senderForSubnetServiceAssociationLinkDelete(ctx, req) - if err != nil { - err = autorest.NewErrorWithError(err, "containerinstance.ContainerInstanceClient", "SubnetServiceAssociationLinkDelete", result.HttpResponse, "Failure sending request") - return - } - - return -} - -// SubnetServiceAssociationLinkDeleteThenPoll performs SubnetServiceAssociationLinkDelete then polls until it's completed -func (c ContainerInstanceClient) SubnetServiceAssociationLinkDeleteThenPoll(ctx context.Context, id commonids.SubnetId) error { - result, err := c.SubnetServiceAssociationLinkDelete(ctx, id) - if err != nil { - return fmt.Errorf("performing SubnetServiceAssociationLinkDelete: %+v", err) - } - - if err := result.Poller.PollUntilDone(); err != nil { - return fmt.Errorf("polling after SubnetServiceAssociationLinkDelete: %+v", err) - } - - return nil -} - -// preparerForSubnetServiceAssociationLinkDelete prepares the SubnetServiceAssociationLinkDelete request. -func (c ContainerInstanceClient) preparerForSubnetServiceAssociationLinkDelete(ctx context.Context, id commonids.SubnetId) (*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(fmt.Sprintf("%s/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default", id.ID())), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// senderForSubnetServiceAssociationLinkDelete sends the SubnetServiceAssociationLinkDelete request. The method will close the -// http.Response Body if it receives an error. -func (c ContainerInstanceClient) senderForSubnetServiceAssociationLinkDelete(ctx context.Context, req *http.Request) (future SubnetServiceAssociationLinkDeleteOperationResponse, 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/sdk/client/resourcemanager/poller_lro.go b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager/poller_lro.go index 254bb9913a2b..c8c40cfbaf18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager/poller_lro.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager/poller_lro.go @@ -215,6 +215,9 @@ func (p *longRunningOperationPoller) Poll(ctx context.Context) (result *pollers. // AnalysisServices @ 2017-08-01 (Servers Suspend) returns `Pausing` during update "Pausing": pollers.PollingStatusInProgress, + // ContainerInstance @ 2023-05-01 returns `Pending` during creation/update + "Pending": pollers.PollingStatusInProgress, + // SAPVirtualInstance @ 2023-04-01 returns `Preparing System Configuration` during Creation "Preparing System Configuration": pollers.PollingStatusInProgress, diff --git a/vendor/modules.txt b/vendor/modules.txt index 09a39768e331..fc88317d7845 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -152,7 +152,7 @@ github.com/hashicorp/go-azure-helpers/resourcemanager/tags github.com/hashicorp/go-azure-helpers/resourcemanager/zones github.com/hashicorp/go-azure-helpers/sender github.com/hashicorp/go-azure-helpers/storage -# github.com/hashicorp/go-azure-sdk/resource-manager v0.20240321.1145953 +# github.com/hashicorp/go-azure-sdk/resource-manager v0.20240327.1093302 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview @@ -321,7 +321,6 @@ github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabili github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys -github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/virtualmachines github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images @@ -336,6 +335,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysha github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks +github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates @@ -1075,7 +1075,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplands github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances -# github.com/hashicorp/go-azure-sdk/sdk v0.20240321.1145953 +# github.com/hashicorp/go-azure-sdk/sdk v0.20240327.1093302 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/sdk/auth github.com/hashicorp/go-azure-sdk/sdk/auth/autorest From d59efa93b4f87a5386413ad95e18dfc21251bf5e Mon Sep 17 00:00:00 2001 From: Zhenhua Hu Date: Wed, 27 Mar 2024 20:34:29 +0800 Subject: [PATCH 2/4] go fmt --- internal/services/compute/no_downtime_resize.go | 2 +- .../recoveryservices/site_recovery_replicated_vm_resource.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/compute/no_downtime_resize.go b/internal/services/compute/no_downtime_resize.go index 297090ddef65..83a09c69dde7 100644 --- a/internal/services/compute/no_downtime_resize.go +++ b/internal/services/compute/no_downtime_resize.go @@ -12,8 +12,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" ) // The logic on this file is based on: diff --git a/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go b/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go index 5c8a9b6534dc..32b5de4a996a 100644 --- a/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go +++ b/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go @@ -17,10 +17,10 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationfabrics" "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationpolicies" "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotecteditems" From 24e4781ae14c77a1b2d2a0ab63a4eacea7468926 Mon Sep 17 00:00:00 2001 From: Zhenhua Hu Date: Wed, 27 Mar 2024 21:39:51 +0800 Subject: [PATCH 3/4] upgrade api version --- .../compute/availability_set_resource.go | 2 +- internal/services/compute/client/client.go | 8 +-- .../compute/dedicated_host_data_source.go | 2 +- .../dedicated_host_group_data_source.go | 2 +- .../compute/dedicated_host_group_resource.go | 2 +- .../dedicated_host_group_resource_test.go | 2 +- .../compute/dedicated_host_resource.go | 2 +- .../compute/dedicated_host_resource_test.go | 2 +- .../compute/ssh_public_key_data_source.go | 2 +- .../compute/ssh_public_key_resource.go | 2 +- .../compute/ssh_public_key_resource_test.go | 2 +- .../model_dedicatedhostgroupproperties.go | 11 ---- .../availabilitysets/README.md | 6 +-- .../availabilitysets/client.go | 0 .../availabilitysets/constants.go | 0 .../availabilitysets/method_createorupdate.go | 0 .../availabilitysets/method_delete.go | 0 .../availabilitysets/method_get.go | 0 .../availabilitysets/method_list.go | 0 .../method_listavailablesizes.go | 0 .../method_listbysubscription.go | 0 .../availabilitysets/method_update.go | 0 .../availabilitysets/model_availabilityset.go | 0 .../model_availabilitysetproperties.go | 0 .../model_availabilitysetupdate.go | 0 .../model_instanceviewstatus.go | 0 .../availabilitysets/model_sku.go | 0 .../availabilitysets/model_subresource.go | 0 .../model_virtualmachinesize.go | 0 .../model_virtualmachinesizelistresult.go | 0 .../availabilitysets/predicates.go | 0 .../availabilitysets/version.go | 2 +- .../dedicatedhostgroups/README.md | 6 +-- .../dedicatedhostgroups/client.go | 0 .../dedicatedhostgroups/constants.go | 0 .../method_createorupdate.go | 0 .../dedicatedhostgroups/method_delete.go | 0 .../dedicatedhostgroups/method_get.go | 0 .../method_listbyresourcegroup.go | 0 .../method_listbysubscription.go | 0 .../dedicatedhostgroups/method_update.go | 0 .../model_dedicatedhostallocatablevm.go | 0 .../model_dedicatedhostavailablecapacity.go | 0 .../model_dedicatedhostgroup.go | 0 .../model_dedicatedhostgroupinstanceview.go | 0 .../model_dedicatedhostgroupproperties.go | 12 +++++ ...stgrouppropertiesadditionalcapabilities.go | 8 +++ .../model_dedicatedhostgroupupdate.go | 0 ...model_dedicatedhostinstanceviewwithname.go | 0 .../model_instanceviewstatus.go | 0 .../model_subresourcereadonly.go | 0 .../dedicatedhostgroups/predicates.go | 0 .../dedicatedhostgroups/version.go | 2 +- .../dedicatedhosts/README.md | 6 +-- .../dedicatedhosts/client.go | 0 .../dedicatedhosts/constants.go | 0 .../dedicatedhosts/method_createorupdate.go | 0 .../dedicatedhosts/method_delete.go | 0 .../dedicatedhosts/method_get.go | 0 .../dedicatedhosts/method_update.go | 0 .../dedicatedhosts/model_dedicatedhost.go | 0 .../model_dedicatedhostallocatablevm.go | 0 .../model_dedicatedhostavailablecapacity.go | 0 .../model_dedicatedhostinstanceview.go | 0 .../model_dedicatedhostproperties.go | 0 .../model_dedicatedhostupdate.go | 1 + .../model_instanceviewstatus.go | 0 .../dedicatedhosts/model_sku.go | 0 .../model_subresourcereadonly.go | 0 .../dedicatedhosts/version.go | 2 +- .../sshpublickeys/README.md | 13 +++-- .../sshpublickeys/client.go | 0 .../2024-03-01/sshpublickeys/constants.go | 51 +++++++++++++++++++ .../sshpublickeys/id_sshpublickey.go | 0 .../sshpublickeys/method_create.go | 0 .../sshpublickeys/method_delete.go | 0 .../sshpublickeys/method_generatekeypair.go | 6 ++- .../sshpublickeys/method_get.go | 0 .../method_listbyresourcegroup.go | 0 .../method_listbysubscription.go | 0 .../sshpublickeys/method_update.go | 0 ...model_sshgeneratekeypairinputparameters.go | 8 +++ ...model_sshpublickeygeneratekeypairresult.go | 0 .../model_sshpublickeyresource.go | 0 .../model_sshpublickeyresourceproperties.go | 0 .../model_sshpublickeyupdateresource.go | 0 .../sshpublickeys/predicates.go | 0 .../sshpublickeys/version.go | 2 +- vendor/modules.txt | 8 +-- 89 files changed, 125 insertions(+), 47 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostgroupproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/README.md (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/method_listavailablesizes.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/method_listbysubscription.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/model_availabilityset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/model_availabilitysetproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/model_availabilitysetupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/model_instanceviewstatus.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/model_sku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/model_virtualmachinesize.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/model_virtualmachinesizelistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/availabilitysets/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/method_listbysubscription.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/model_dedicatedhostallocatablevm.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/model_dedicatedhostavailablecapacity.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/model_dedicatedhostgroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/model_dedicatedhostgroupinstanceview.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgroupproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgrouppropertiesadditionalcapabilities.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/model_dedicatedhostgroupupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/model_dedicatedhostinstanceviewwithname.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/model_instanceviewstatus.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/model_subresourcereadonly.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhostgroups/version.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/model_dedicatedhost.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/model_dedicatedhostallocatablevm.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/model_dedicatedhostavailablecapacity.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/model_dedicatedhostinstanceview.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/model_dedicatedhostproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/model_dedicatedhostupdate.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/model_instanceviewstatus.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/model_sku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/model_subresourcereadonly.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/dedicatedhosts/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/client.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/constants.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/id_sshpublickey.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/method_create.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/method_generatekeypair.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/method_listbysubscription.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/method_update.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshgeneratekeypairinputparameters.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/model_sshpublickeygeneratekeypairresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/model_sshpublickeyresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/model_sshpublickeyresourceproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/model_sshpublickeyupdateresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/{2021-11-01 => 2024-03-01}/sshpublickeys/version.go (88%) diff --git a/internal/services/compute/availability_set_resource.go b/internal/services/compute/availability_set_resource.go index 2ed610874ced..928a7f730034 100644 --- a/internal/services/compute/availability_set_resource.go +++ b/internal/services/compute/availability_set_resource.go @@ -15,7 +15,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/compute/2021-11-01/availabilitysets" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/compute/client/client.go b/internal/services/compute/client/client.go index 253f49cf12e1..727e5a7952d1 100644 --- a/internal/services/compute/client/client.go +++ b/internal/services/compute/client/client.go @@ -11,10 +11,6 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images" @@ -28,6 +24,10 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements" "github.com/hashicorp/terraform-provider-azurerm/internal/common" diff --git a/internal/services/compute/dedicated_host_data_source.go b/internal/services/compute/dedicated_host_data_source.go index 8697cc02a6f8..1b95c80e3f42 100644 --- a/internal/services/compute/dedicated_host_data_source.go +++ b/internal/services/compute/dedicated_host_data_source.go @@ -12,7 +12,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/compute/2021-11-01/dedicatedhosts" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/compute/dedicated_host_group_data_source.go b/internal/services/compute/dedicated_host_group_data_source.go index 2337f4a97ae4..6f50660b1df0 100644 --- a/internal/services/compute/dedicated_host_group_data_source.go +++ b/internal/services/compute/dedicated_host_group_data_source.go @@ -14,7 +14,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/compute/2021-11-01/dedicatedhostgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/compute/dedicated_host_group_resource.go b/internal/services/compute/dedicated_host_group_resource.go index fbcaa0c87839..8e263ca2ba04 100644 --- a/internal/services/compute/dedicated_host_group_resource.go +++ b/internal/services/compute/dedicated_host_group_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/validate" diff --git a/internal/services/compute/dedicated_host_group_resource_test.go b/internal/services/compute/dedicated_host_group_resource_test.go index 2b19459fba0d..48a5f454cbdf 100644 --- a/internal/services/compute/dedicated_host_group_resource_test.go +++ b/internal/services/compute/dedicated_host_group_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups" "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/compute/dedicated_host_resource.go b/internal/services/compute/dedicated_host_resource.go index 31348af00ea5..277724530183 100644 --- a/internal/services/compute/dedicated_host_resource.go +++ b/internal/services/compute/dedicated_host_resource.go @@ -15,7 +15,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/compute/2021-11-01/dedicatedhosts" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/validate" diff --git a/internal/services/compute/dedicated_host_resource_test.go b/internal/services/compute/dedicated_host_resource_test.go index df421bd2a89d..86d6e93a55ed 100644 --- a/internal/services/compute/dedicated_host_resource_test.go +++ b/internal/services/compute/dedicated_host_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts" "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/compute/ssh_public_key_data_source.go b/internal/services/compute/ssh_public_key_data_source.go index 82babd40e604..d268bbb2ab88 100644 --- a/internal/services/compute/ssh_public_key_data_source.go +++ b/internal/services/compute/ssh_public_key_data_source.go @@ -11,7 +11,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/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/compute/ssh_public_key_resource.go b/internal/services/compute/ssh_public_key_resource.go index 0cb50c07872a..6504f8b83759 100644 --- a/internal/services/compute/ssh_public_key_resource.go +++ b/internal/services/compute/ssh_public_key_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/validate" diff --git a/internal/services/compute/ssh_public_key_resource_test.go b/internal/services/compute/ssh_public_key_resource_test.go index f02007536dff..1de40f4bf25c 100644 --- a/internal/services/compute/ssh_public_key_resource_test.go +++ b/internal/services/compute/ssh_public_key_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys" + "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys" "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/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostgroupproperties.go deleted file mode 100644 index 57f37cb87a9d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostgroupproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package dedicatedhostgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DedicatedHostGroupProperties struct { - Hosts *[]SubResourceReadOnly `json:"hosts,omitempty"` - InstanceView *DedicatedHostGroupInstanceView `json:"instanceView,omitempty"` - PlatformFaultDomainCount int64 `json:"platformFaultDomainCount"` - SupportAutomaticPlacement *bool `json:"supportAutomaticPlacement,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/README.md index f0b28cd5cede..bd2653d73182 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets` Documentation -The `availabilitysets` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2021-11-01`). +The `availabilitysets` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets" +import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_listavailablesizes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listavailablesizes.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_listavailablesizes.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listavailablesizes.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_listbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_availabilityset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_availabilityset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_availabilityset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_availabilityset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_availabilitysetproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_availabilitysetproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_availabilitysetproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_availabilitysetproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_availabilitysetupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_availabilitysetupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_availabilitysetupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_availabilitysetupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_instanceviewstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_instanceviewstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_instanceviewstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_instanceviewstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_virtualmachinesize.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_virtualmachinesize.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_virtualmachinesize.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_virtualmachinesize.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_virtualmachinesizelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_virtualmachinesizelistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/model_virtualmachinesizelistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/model_virtualmachinesizelistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/version.go index f51ca52b5548..ef8fe9081df2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/availabilitysets/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/README.md index 95a20c43759e..bc83232b572b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups` Documentation -The `dedicatedhostgroups` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2021-11-01`). +The `dedicatedhostgroups` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups" +import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_listbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostallocatablevm.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostallocatablevm.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostallocatablevm.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostallocatablevm.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostavailablecapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostavailablecapacity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostavailablecapacity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostavailablecapacity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostgroupinstanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgroupinstanceview.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostgroupinstanceview.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgroupinstanceview.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgroupproperties.go new file mode 100644 index 000000000000..4b098a22db42 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgroupproperties.go @@ -0,0 +1,12 @@ +package dedicatedhostgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DedicatedHostGroupProperties struct { + AdditionalCapabilities *DedicatedHostGroupPropertiesAdditionalCapabilities `json:"additionalCapabilities,omitempty"` + Hosts *[]SubResourceReadOnly `json:"hosts,omitempty"` + InstanceView *DedicatedHostGroupInstanceView `json:"instanceView,omitempty"` + PlatformFaultDomainCount int64 `json:"platformFaultDomainCount"` + SupportAutomaticPlacement *bool `json:"supportAutomaticPlacement,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgrouppropertiesadditionalcapabilities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgrouppropertiesadditionalcapabilities.go new file mode 100644 index 000000000000..296a2f029f4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgrouppropertiesadditionalcapabilities.go @@ -0,0 +1,8 @@ +package dedicatedhostgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DedicatedHostGroupPropertiesAdditionalCapabilities struct { + UltraSSDEnabled *bool `json:"ultraSSDEnabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostgroupupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgroupupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostgroupupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostgroupupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostinstanceviewwithname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostinstanceviewwithname.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_dedicatedhostinstanceviewwithname.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_dedicatedhostinstanceviewwithname.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_instanceviewstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_instanceviewstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_instanceviewstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_instanceviewstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_subresourcereadonly.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_subresourcereadonly.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/model_subresourcereadonly.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/model_subresourcereadonly.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/version.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/version.go index 788e7707a6b8..618f3a46fec0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/dedicatedhostgroups/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/README.md index 1590a64201e9..e5b1553c82fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts` Documentation -The `dedicatedhosts` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2021-11-01`). +The `dedicatedhosts` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts" +import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhost.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhost.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhost.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhostallocatablevm.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhostallocatablevm.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhostallocatablevm.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhostallocatablevm.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhostavailablecapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhostavailablecapacity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhostavailablecapacity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhostavailablecapacity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhostinstanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhostinstanceview.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhostinstanceview.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhostinstanceview.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhostproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhostproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhostproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhostproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhostupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhostupdate.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhostupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhostupdate.go index c2a21bb93d1c..987da6693937 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_dedicatedhostupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_dedicatedhostupdate.go @@ -5,5 +5,6 @@ package dedicatedhosts type DedicatedHostUpdate struct { Properties *DedicatedHostProperties `json:"properties,omitempty"` + Sku *Sku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_instanceviewstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_instanceviewstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_instanceviewstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_instanceviewstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_subresourcereadonly.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_subresourcereadonly.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/model_subresourcereadonly.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/model_subresourcereadonly.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/version.go index 74e63de99bd9..ff71e375c074 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/dedicatedhosts/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/README.md index e6fb78b52d97..5fb9c4d76728 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys` Documentation -The `sshpublickeys` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2021-11-01`). +The `sshpublickeys` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys" +import "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys" ``` @@ -64,7 +64,12 @@ if model := read.Model; model != nil { ctx := context.TODO() id := sshpublickeys.NewSshPublicKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sshPublicKeyValue") -read, err := client.GenerateKeyPair(ctx, id) +payload := sshpublickeys.SshGenerateKeyPairInputParameters{ + // ... +} + + +read, err := client.GenerateKeyPair(ctx, id, payload) if err != nil { // handle the error } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/constants.go new file mode 100644 index 000000000000..81d9eb1b3af2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/constants.go @@ -0,0 +1,51 @@ +package sshpublickeys + +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 SshEncryptionTypes string + +const ( + SshEncryptionTypesEdTwoFiveFiveOneNine SshEncryptionTypes = "Ed25519" + SshEncryptionTypesRSA SshEncryptionTypes = "RSA" +) + +func PossibleValuesForSshEncryptionTypes() []string { + return []string{ + string(SshEncryptionTypesEdTwoFiveFiveOneNine), + string(SshEncryptionTypesRSA), + } +} + +func (s *SshEncryptionTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSshEncryptionTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSshEncryptionTypes(input string) (*SshEncryptionTypes, error) { + vals := map[string]SshEncryptionTypes{ + "ed25519": SshEncryptionTypesEdTwoFiveFiveOneNine, + "rsa": SshEncryptionTypesRSA, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SshEncryptionTypes(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/id_sshpublickey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/id_sshpublickey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/id_sshpublickey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/id_sshpublickey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_generatekeypair.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_generatekeypair.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_generatekeypair.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_generatekeypair.go index 0793e94f13bb..c4670a0c4326 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_generatekeypair.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_generatekeypair.go @@ -19,7 +19,7 @@ type GenerateKeyPairOperationResponse struct { } // GenerateKeyPair ... -func (c SshPublicKeysClient) GenerateKeyPair(ctx context.Context, id SshPublicKeyId) (result GenerateKeyPairOperationResponse, err error) { +func (c SshPublicKeysClient) GenerateKeyPair(ctx context.Context, id SshPublicKeyId, input SshGenerateKeyPairInputParameters) (result GenerateKeyPairOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -34,6 +34,10 @@ func (c SshPublicKeysClient) GenerateKeyPair(ctx context.Context, id SshPublicKe return } + if err = req.Marshal(input); err != nil { + return + } + var resp *client.Response resp, err = req.Execute(ctx) if resp != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_listbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_listbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_listbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshgeneratekeypairinputparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshgeneratekeypairinputparameters.go new file mode 100644 index 000000000000..9edecb3ad2f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshgeneratekeypairinputparameters.go @@ -0,0 +1,8 @@ +package sshpublickeys + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SshGenerateKeyPairInputParameters struct { + EncryptionType *SshEncryptionTypes `json:"encryptionType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/model_sshpublickeygeneratekeypairresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshpublickeygeneratekeypairresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/model_sshpublickeygeneratekeypairresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshpublickeygeneratekeypairresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/model_sshpublickeyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshpublickeyresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/model_sshpublickeyresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshpublickeyresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/model_sshpublickeyresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshpublickeyresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/model_sshpublickeyresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshpublickeyresourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/model_sshpublickeyupdateresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshpublickeyupdateresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/model_sshpublickeyupdateresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/model_sshpublickeyupdateresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/version.go index dfef6a053cbb..77095cd40ff7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/sshpublickeys/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index fc88317d7845..7da2d6af044a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -317,10 +317,6 @@ github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployme github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus -github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/availabilitysets -github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhostgroups -github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/dedicatedhosts -github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-11-01/sshpublickeys github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images @@ -335,6 +331,10 @@ github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysha github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks +github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets +github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups +github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts +github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets From 8b42eea6c75cfe0f90c877d2e86fbf082393552d Mon Sep 17 00:00:00 2001 From: Zhenhua Hu Date: Thu, 28 Mar 2024 13:42:38 +0800 Subject: [PATCH 4/4] go mod --- go.mod | 4 +- go.sum | 8 +- .../sdk/auth/azure_cli_authorizer.go | 24 +++++- .../go-azure-sdk/sdk/client/client.go | 16 +++- .../sdk/internal/azurecli/azcli.go | 86 +++++++++++++++---- vendor/modules.txt | 4 +- 6 files changed, 111 insertions(+), 31 deletions(-) diff --git a/go.mod b/go.mod index dbd6eb58d4f9..5d6b59275594 100644 --- a/go.mod +++ b/go.mod @@ -17,8 +17,8 @@ require ( github.com/google/go-cmp v0.5.9 github.com/google/uuid v1.4.0 github.com/hashicorp/go-azure-helpers v0.67.0 - github.com/hashicorp/go-azure-sdk/resource-manager v0.20240321.1145953 - github.com/hashicorp/go-azure-sdk/sdk v0.20240321.1145953 + github.com/hashicorp/go-azure-sdk/resource-manager v0.20240327.1161949 + github.com/hashicorp/go-azure-sdk/sdk v0.20240327.1161949 github.com/hashicorp/go-hclog v1.5.0 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-uuid v1.0.3 diff --git a/go.sum b/go.sum index 1cb52769607c..5ccd4885fbf9 100644 --- a/go.sum +++ b/go.sum @@ -95,10 +95,10 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-azure-helpers v0.67.0 h1:0RY6mY3W3Ym2I+jExLtyLx96fh6p5n9vidqisAKGUSE= github.com/hashicorp/go-azure-helpers v0.67.0/go.mod h1:S4Bu66vyJvHA0trqHQB0YVGsISuF7HMH9tyEsMVlx8A= -github.com/hashicorp/go-azure-sdk/resource-manager v0.20240321.1145953 h1:eoU9iMmWgufB441trZJ45TsZ+0vJ79vGKdBuVVYUXwI= -github.com/hashicorp/go-azure-sdk/resource-manager v0.20240321.1145953/go.mod h1:zvsDltRIRr58vA0EpSmY+a6NcgGirQE/u02Ag+D8jmM= -github.com/hashicorp/go-azure-sdk/sdk v0.20240321.1145953 h1:WAcSZL5+H9Z/DjUZ0x0sluNoEno/mD4b+NWpY04vJrw= -github.com/hashicorp/go-azure-sdk/sdk v0.20240321.1145953/go.mod h1:POOjeoqNp+mvlLBuibJTziUAkBZ7FxXGeGestwemL/w= +github.com/hashicorp/go-azure-sdk/resource-manager v0.20240327.1161949 h1:6kiYPtSO7l08UshpjOkeBvqDOIOdRXhYFMAYRdosLoo= +github.com/hashicorp/go-azure-sdk/resource-manager v0.20240327.1161949/go.mod h1:6emA77HGPRTEV9n0VLpVfzsvinp6iDBqsf/W1C+eRhY= +github.com/hashicorp/go-azure-sdk/sdk v0.20240327.1161949 h1:Iu3U8RUGKQNza6MSFyTNjgasDaEcpehqr0Rn4ruBHBk= +github.com/hashicorp/go-azure-sdk/sdk v0.20240327.1161949/go.mod h1:POOjeoqNp+mvlLBuibJTziUAkBZ7FxXGeGestwemL/w= github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= diff --git a/vendor/github.com/hashicorp/go-azure-sdk/sdk/auth/azure_cli_authorizer.go b/vendor/github.com/hashicorp/go-azure-sdk/sdk/auth/azure_cli_authorizer.go index ac697ea301d5..ba1853eca60e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/sdk/auth/azure_cli_authorizer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/sdk/auth/azure_cli_authorizer.go @@ -65,9 +65,29 @@ func (a *AzureCliAuthorizer) Token(_ context.Context, _ *http.Request) (*oauth2. } azArgs = append(azArgs, "--scope", *scope) + accountType, err := azurecli.GetAccountType() + if err != nil { + return nil, fmt.Errorf("determining account type: %+v", err) + } + + accountName, err := azurecli.GetAccountName() + if err != nil { + return nil, fmt.Errorf("determining account name: %+v", err) + } + + tenantIdRequired := true + // Try to detect if we're running in Cloud Shell - if cloudShell := os.Getenv("AZUREPS_HOST_ENVIRONMENT"); !strings.HasPrefix(cloudShell, "cloud-shell/") { - // Seemingly not, so we'll append the tenant ID to the az args + if cloudShell := os.Getenv("AZUREPS_HOST_ENVIRONMENT"); strings.HasPrefix(cloudShell, "cloud-shell/") { + tenantIdRequired = false + } + + // Try to detect whether authenticated principal is a managed identity + if accountType != nil && accountName != nil && *accountType == "servicePrincipal" && (*accountName == "systemAssignedIdentity" || *accountName == "userAssignedIdentity") { + tenantIdRequired = false + } + + if tenantIdRequired { azArgs = append(azArgs, "--tenant", a.conf.TenantID) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go index 8cb50b454168..29102933c372 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go @@ -436,7 +436,7 @@ func (c *Client) Execute(ctx context.Context, req *Request) (*Response, error) { } // Instantiate a RetryableHttp client and configure its CheckRetry func - r := c.retryableClient(func(ctx context.Context, r *http.Response, err error) (bool, error) { + r := c.retryableClient(ctx, func(ctx context.Context, r *http.Response, err error) (bool, error) { // First check for badly malformed responses if r == nil { if req.IsIdempotent() { @@ -647,7 +647,7 @@ func (c *Client) ExecutePaged(ctx context.Context, req *Request) (*Response, err } // retryableClient instantiates a new *retryablehttp.Client having the provided checkRetry func -func (c *Client) retryableClient(checkRetry retryablehttp.CheckRetry) (r *retryablehttp.Client) { +func (c *Client) retryableClient(ctx context.Context, checkRetry retryablehttp.CheckRetry) (r *retryablehttp.Client) { r = retryablehttp.NewClient() r.Backoff = func(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration { @@ -672,6 +672,18 @@ func (c *Client) retryableClient(checkRetry retryablehttp.CheckRetry) (r *retrya r.CheckRetry = checkRetry r.ErrorHandler = RetryableErrorHandler r.Logger = log.Default() + r.RetryWaitMin = 1 * time.Second + r.RetryWaitMax = 61 * time.Second + + // Default RetryMax of 16 takes approx 10 minutes to iterate + r.RetryMax = 16 + + // Extend the RetryMax if the context timeout exceeds 10 minutes + if deadline, ok := ctx.Deadline(); ok { + if timeout := deadline.Sub(time.Now()); timeout > 10*time.Minute { + r.RetryMax = int(math.Round(timeout.Minutes())) + 6 + } + } tlsConfig := tls.Config{ MinVersion: tls.VersionTLS12, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/sdk/internal/azurecli/azcli.go b/vendor/github.com/hashicorp/go-azure-sdk/sdk/internal/azurecli/azcli.go index caaffd8f48c9..bb225d181873 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/sdk/internal/azurecli/azcli.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/sdk/internal/azurecli/azcli.go @@ -15,6 +15,33 @@ import ( "github.com/hashicorp/go-version" ) +type azAccount struct { + EnvironmentName *string `json:"environmentName"` + HomeTenantId *string `json:"homeTenantId"` + Id *string `json:"id"` + Default *bool `json:"isDefault"` + Name *string `json:"name"` + State *string `json:"state"` + TenantId *string `json:"tenantId"` + + ManagedByTenants *[]struct { + TenantId *string `json:"tenantId"` + } `json:"managedByTenants"` + + User *struct { + AssignedIdentityInfo *string `json:"assignedIdentityInfo"` + Name *string `json:"name"` + Type *string `json:"type"` + } +} + +type azVersion struct { + AzureCli *string `json:"azure-cli,omitempty"` + AzureCliCore *string `json:"azure-cli-core,omitempty"` + AzureCliTelemetry *string `json:"azure-cli-telemetry,omitempty"` + Extensions *interface{} `json:"extensions,omitempty"` +} + // CheckAzVersion tries to determine the version of Azure CLI in the path and checks for a compatible version func CheckAzVersion() error { currentVersion, err := getAzVersion() @@ -60,39 +87,60 @@ func ValidateTenantID(tenantId string) (bool, error) { // GetDefaultTenantID tries to determine the default tenant func GetDefaultTenantID() (*string, error) { - var account struct { - TenantID string `json:"tenantId"` - } - if err := JSONUnmarshalAzCmd(true, &account, "account", "show"); err != nil { + account, err := getAzAccount() + if err != nil { return nil, fmt.Errorf("obtaining tenant ID: %s", err) } - - return &account.TenantID, nil + return account.TenantId, nil } // GetDefaultSubscriptionID tries to determine the default subscription func GetDefaultSubscriptionID() (*string, error) { - var account struct { - SubscriptionID string `json:"id"` - } - err := JSONUnmarshalAzCmd(true, &account, "account", "show") + account, err := getAzAccount() if err != nil { return nil, fmt.Errorf("obtaining subscription ID: %s", err) } + return account.Id, nil +} + +// GetAccountName returns the name of the authenticated principal +func GetAccountName() (*string, error) { + account, err := getAzAccount() + if err != nil { + return nil, fmt.Errorf("obtaining account name: %s", err) + } + if account.User == nil { + return nil, fmt.Errorf("account details were nil: %s", err) + } + return account.User.Name, nil +} - return &account.SubscriptionID, nil +// GetAccountType returns the account type of the authenticated principal +func GetAccountType() (*string, error) { + account, err := getAzAccount() + if err != nil { + return nil, fmt.Errorf("obtaining account type: %s", err) + } + if account.User == nil { + return nil, fmt.Errorf("account details were nil: %s", err) + } + return account.User.Type, nil +} + +// getAzAccount returns the output of `az account show` +func getAzAccount() (*azAccount, error) { + var account azAccount + if err := JSONUnmarshalAzCmd(true, &account, "account", "show"); err != nil { + return nil, fmt.Errorf("obtaining account details: %s", err) + } + return &account, nil } // getAzVersion tries to determine the version of Azure CLI in the path. func getAzVersion() (*string, error) { - var cliVersion *struct { - AzureCli *string `json:"azure-cli,omitempty"` - AzureCliCore *string `json:"azure-cli-core,omitempty"` - AzureCliTelemetry *string `json:"azure-cli-telemetry,omitempty"` - Extensions *interface{} `json:"extensions,omitempty"` - } - err := JSONUnmarshalAzCmd(true, &cliVersion, "version") - if err != nil { + var cliVersion azVersion + + if err := JSONUnmarshalAzCmd(true, &cliVersion, "version"); err != nil { return nil, fmt.Errorf("could not parse Azure CLI version: %v", err) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 8d0917b7e193..abac0cac3a70 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -152,7 +152,7 @@ github.com/hashicorp/go-azure-helpers/resourcemanager/tags github.com/hashicorp/go-azure-helpers/resourcemanager/zones github.com/hashicorp/go-azure-helpers/sender github.com/hashicorp/go-azure-helpers/storage -# github.com/hashicorp/go-azure-sdk/resource-manager v0.20240327.1093302 +# github.com/hashicorp/go-azure-sdk/resource-manager v0.20240327.1161949 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview @@ -1075,7 +1075,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplands github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances -# github.com/hashicorp/go-azure-sdk/sdk v0.20240327.1093302 +# github.com/hashicorp/go-azure-sdk/sdk v0.20240327.1161949 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/sdk/auth github.com/hashicorp/go-azure-sdk/sdk/auth/autorest