// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT.

package armazurestackhci_test

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurestackhci/armazurestackhci/v3"
	"log"
)

// Generated from example definition: 2026-04-30/Operations_List.json
func ExampleOperationsClient_NewListPager() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armazurestackhci.NewClientFactory("<subscriptionID>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewOperationsClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page = armazurestackhci.OperationsClientListResponse{
		// 	OperationListResult: armazurestackhci.OperationListResult{
		// 		Value: []*armazurestackhci.Operation{
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/VirtualHardDisks/Delete"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("VirtualHardDisks"),
		// 					Operation: to.Ptr("Deletes virtual hard disk resource"),
		// 					Description: to.Ptr("Deletes virtual hard disk resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/VirtualHardDisks/Write"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("VirtualHardDisks"),
		// 					Operation: to.Ptr("Creates/Updates virtual hard disk resource"),
		// 					Description: to.Ptr("Creates/Updates virtual hard disk resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/VirtualHardDisks/Read"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("VirtualHardDisks"),
		// 					Operation: to.Ptr("Gets/Lists virtual hard disk resource"),
		// 					Description: to.Ptr("Gets/Lists virtual hard disk resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/NetworkInterfaces/Delete"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("NetworkInterfaces"),
		// 					Operation: to.Ptr("Deletes network interfaces resource"),
		// 					Description: to.Ptr("Deletes network interfaces resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/NetworkInterfaces/Write"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("NetworkInterfaces"),
		// 					Operation: to.Ptr("Creates/Updates network interfaces resource"),
		// 					Description: to.Ptr("Creates/Updates network interfaces resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/NetworkInterfaces/Read"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("NetworkInterfaces"),
		// 					Operation: to.Ptr("Gets/Lists network interfaces resource"),
		// 					Description: to.Ptr("Gets/Lists network interfaces resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/GalleryImages/Delete"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("GalleryImages"),
		// 					Operation: to.Ptr("Deletes gallery images resource"),
		// 					Description: to.Ptr("Deletes gallery images resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/GalleryImages/Write"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("GalleryImages"),
		// 					Operation: to.Ptr("Creates/Updates gallery images resource"),
		// 					Description: to.Ptr("Creates/Updates gallery images resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/GalleryImages/Read"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("GalleryImages"),
		// 					Operation: to.Ptr("Gets/Lists gallery images resource"),
		// 					Description: to.Ptr("Gets/Lists gallery images resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/VirtualMachineInstances/HybridIdentityMetadata/Read"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("VirtualMachineInstances/HybridIdentityMetadata"),
		// 					Operation: to.Ptr("Gets/Lists virtual machine instance hybrid identity metadata proxy resource"),
		// 					Description: to.Ptr("Gets/Lists virtual machine instance hybrid identity metadata proxy resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/VirtualMachineInstances/attestationStatus/read"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("VirtualMachineInstances/attestationStatus"),
		// 					Operation: to.Ptr("Gets/Lists virtual machine instance's attestation status"),
		// 					Description: to.Ptr("Gets/Lists virtual machine instance's attestation status"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/LogicalNetworks/Delete"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("LogicalNetworks"),
		// 					Operation: to.Ptr("Deletes logical networks resource"),
		// 					Description: to.Ptr("Deletes logical networks resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/LogicalNetworks/Write"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("LogicalNetworks"),
		// 					Operation: to.Ptr("Creates/Updates logical networks resource"),
		// 					Description: to.Ptr("Creates/Updates logical networks resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/LogicalNetworks/Read"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("LogicalNetworks"),
		// 					Operation: to.Ptr("Gets/Lists logical networks resource"),
		// 					Description: to.Ptr("Gets/Lists logical networks resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/LogicalNetworks/join/action"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("LogicalNetworks"),
		// 					Operation: to.Ptr("Joins logical networks resource"),
		// 					Description: to.Ptr("Joins logical networks resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/VirtualMachineInstances/Restart/Action"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("VirtualMachineInstances"),
		// 					Operation: to.Ptr("Restarts virtual machine instance resource"),
		// 					Description: to.Ptr("Restarts virtual machine instance resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/VirtualMachineInstances/Start/Action"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("VirtualMachineInstances"),
		// 					Operation: to.Ptr("Starts virtual machine instance resource"),
		// 					Description: to.Ptr("Starts virtual machine instance resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/VirtualMachineInstances/Stop/Action"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("VirtualMachineInstances"),
		// 					Operation: to.Ptr("Stops virtual machine instance resource"),
		// 					Description: to.Ptr("Stops virtual machine instance resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/VirtualMachineInstances/Delete"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("VirtualMachineInstances"),
		// 					Operation: to.Ptr("Deletes virtual machine instance resource"),
		// 					Description: to.Ptr("Deletes virtual machine instance resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/VirtualMachineInstances/Write"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("VirtualMachineInstances"),
		// 					Operation: to.Ptr("Creates/Updates virtual machine instance resource"),
		// 					Description: to.Ptr("Creates/Updates virtual machine instance resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/VirtualMachineInstances/Read"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("VirtualMachineInstances"),
		// 					Operation: to.Ptr("Gets/Lists virtual machine instance resource"),
		// 					Description: to.Ptr("Gets/Lists virtual machine instance resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/StorageContainers/Delete"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("StorageContainers"),
		// 					Operation: to.Ptr("Deletes storage containers resource"),
		// 					Description: to.Ptr("Deletes storage containers resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/StorageContainers/Write"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("StorageContainers"),
		// 					Operation: to.Ptr("Creates/Updates storage containers resource"),
		// 					Description: to.Ptr("Creates/Updates storage containers resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/StorageContainers/Read"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("StorageContainers"),
		// 					Operation: to.Ptr("Gets/Lists storage containers resource"),
		// 					Description: to.Ptr("Gets/Lists storage containers resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/StorageContainers/deploy/action"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("StorageContainers"),
		// 					Operation: to.Ptr("Deploys storage containers resource"),
		// 					Description: to.Ptr("Deploys storage containers resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Delete"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("MarketPlaceGalleryImages"),
		// 					Operation: to.Ptr("Deletes market place gallery images resource"),
		// 					Description: to.Ptr("Deletes market place gallery images resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Write"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("MarketPlaceGalleryImages"),
		// 					Operation: to.Ptr("Creates/Updates market place gallery images resource"),
		// 					Description: to.Ptr("Creates/Updates market place gallery images resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Read"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("MarketPlaceGalleryImages"),
		// 					Operation: to.Ptr("Gets/Lists market place gallery images resource"),
		// 					Description: to.Ptr("Gets/Lists market place gallery images resource"),
		// 				},
		// 			},
		// 			{
		// 				Name: to.Ptr("Microsoft.AzureStackHCI/MarketPlaceGalleryImages/deploy/action"),
		// 				IsDataAction: to.Ptr(false),
		// 				Display: &armazurestackhci.OperationDisplay{
		// 					Provider: to.Ptr("Microsoft.AzureStackHCI"),
		// 					Resource: to.Ptr("MarketPlaceGalleryImages"),
		// 					Operation: to.Ptr("Deploys market place gallery images resource"),
		// 					Description: to.Ptr("Deploys market place gallery images resource"),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}
