// 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 armdeviceregistry_test

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deviceregistry/armdeviceregistry"
	"log"
)

// Generated from example definition: 2024-11-01/Create_Asset_With_DiscoveredAssetRef.json
func ExampleAssetsClient_BeginCreateOrReplace_createAssetWithDiscoveredAssetRefs() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdeviceregistry.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAssetsClient().BeginCreateOrReplace(ctx, "myResourceGroup", "my-asset", armdeviceregistry.Asset{
		Location: to.Ptr("West Europe"),
		ExtendedLocation: &armdeviceregistry.ExtendedLocation{
			Type: to.Ptr("CustomLocation"),
			Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
		},
		Tags: map[string]*string{
			"site": to.Ptr("building-1"),
		},
		Properties: &armdeviceregistry.AssetProperties{
			Enabled:                 to.Ptr(true),
			ExternalAssetID:         to.Ptr("8ZBA6LRHU0A458969"),
			DisplayName:             to.Ptr("AssetDisplayName"),
			Description:             to.Ptr("This is a sample Asset"),
			AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
			Manufacturer:            to.Ptr("Contoso"),
			ManufacturerURI:         to.Ptr("https://www.contoso.com/manufacturerUri"),
			Model:                   to.Ptr("ContosoModel"),
			ProductCode:             to.Ptr("SA34VDG"),
			HardwareRevision:        to.Ptr("1.0"),
			SoftwareRevision:        to.Ptr("2.0"),
			DocumentationURI:        to.Ptr("https://www.example.com/manual"),
			SerialNumber:            to.Ptr("64-103816-519918-8"),
			DiscoveredAssetRefs: []*string{
				to.Ptr("discoveredAsset1"),
				to.Ptr("discoveredAsset2"),
			},
			DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
			DefaultEventsConfiguration:   to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
			DefaultTopic: &armdeviceregistry.Topic{
				Path:   to.Ptr("/path/defaultTopic"),
				Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
			},
			Datasets: []*armdeviceregistry.Dataset{
				{
					Name:                 to.Ptr("dataset1"),
					DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
					Topic: &armdeviceregistry.Topic{
						Path:   to.Ptr("/path/dataset1"),
						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
					},
					DataPoints: []*armdeviceregistry.DataPoint{
						{
							Name:                   to.Ptr("dataPoint1"),
							DataSource:             to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
							ObservabilityMode:      to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
							DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
						},
						{
							Name:                   to.Ptr("dataPoint2"),
							DataSource:             to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
							ObservabilityMode:      to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
							DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
						},
					},
				},
			},
			Events: []*armdeviceregistry.Event{
				{
					Name:               to.Ptr("event1"),
					EventNotifier:      to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
					ObservabilityMode:  to.Ptr(armdeviceregistry.EventObservabilityModeNone),
					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
					Topic: &armdeviceregistry.Topic{
						Path:   to.Ptr("/path/event1"),
						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
					},
				},
				{
					Name:               to.Ptr("event2"),
					EventNotifier:      to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
					ObservabilityMode:  to.Ptr(armdeviceregistry.EventObservabilityModeLog),
					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
				},
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armdeviceregistry.AssetsClientCreateOrReplaceResponse{
	// 	Asset: &armdeviceregistry.Asset{
	// 		ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/assets/my-asset"),
	// 		Name: to.Ptr("my-asset"),
	// 		Type: to.Ptr("Microsoft.DeviceRegistry/assets"),
	// 		Location: to.Ptr("West Europe"),
	// 		ExtendedLocation: &armdeviceregistry.ExtendedLocation{
	// 			Type: to.Ptr("CustomLocation"),
	// 			Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
	// 		},
	// 		Tags: map[string]*string{
	// 			"site": to.Ptr("building-1"),
	// 		},
	// 		SystemData: &armdeviceregistry.SystemData{
	// 			CreatedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			CreatedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T00:36:43.2516899Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			LastModifiedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T01:37:16.0922793Z"); return t}()),
	// 		},
	// 		Properties: &armdeviceregistry.AssetProperties{
	// 			UUID: to.Ptr("0796f7c1-f2c8-44d7-9f5b-9a6f9522a85d"),
	// 			Enabled: to.Ptr(true),
	// 			ExternalAssetID: to.Ptr("8ZBA6LRHU0A458969"),
	// 			DisplayName: to.Ptr("AssetDisplayName"),
	// 			Description: to.Ptr("This is a sample Asset"),
	// 			AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
	// 			Version: to.Ptr[int64](73766),
	// 			Manufacturer: to.Ptr("Contoso"),
	// 			ManufacturerURI: to.Ptr("https://www.contoso.com/manufacturerUri"),
	// 			Model: to.Ptr("ContosoModel"),
	// 			ProductCode: to.Ptr("SA34VDG"),
	// 			HardwareRevision: to.Ptr("1.0"),
	// 			SoftwareRevision: to.Ptr("2.0"),
	// 			DocumentationURI: to.Ptr("https://www.example.com/manual"),
	// 			SerialNumber: to.Ptr("64-103816-519918-8"),
	// 			DiscoveredAssetRefs: []*string{
	// 				to.Ptr("discoveredAsset1"),
	// 				to.Ptr("discoveredAsset2"),
	// 			},
	// 			DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultEventsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultTopic: &armdeviceregistry.Topic{
	// 				Path: to.Ptr("/path/defaultTopic"),
	// 				Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 			},
	// 			Datasets: []*armdeviceregistry.Dataset{
	// 				{
	// 					Name: to.Ptr("dataset1"),
	// 					DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/dataset1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 					DataPoints: []*armdeviceregistry.DataPoint{
	// 						{
	// 							Name: to.Ptr("dataPoint1"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
	// 						},
	// 						{
	// 							Name: to.Ptr("dataPoint2"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
	// 						},
	// 					},
	// 				},
	// 			},
	// 			Events: []*armdeviceregistry.Event{
	// 				{
	// 					Name: to.Ptr("event1"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeNone),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/event1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 				},
	// 				{
	// 					Name: to.Ptr("event2"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeLog),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
	// 				},
	// 			},
	// 			ProvisioningState: to.Ptr(armdeviceregistry.ProvisioningStateSucceeded),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2024-11-01/Create_Asset_With_ExternalAssetId.json
func ExampleAssetsClient_BeginCreateOrReplace_createAssetWithExternalAssetId() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdeviceregistry.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAssetsClient().BeginCreateOrReplace(ctx, "myResourceGroup", "my-asset", armdeviceregistry.Asset{
		Location: to.Ptr("West Europe"),
		ExtendedLocation: &armdeviceregistry.ExtendedLocation{
			Type: to.Ptr("CustomLocation"),
			Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
		},
		Tags: map[string]*string{
			"site": to.Ptr("building-1"),
		},
		Properties: &armdeviceregistry.AssetProperties{
			Enabled:                      to.Ptr(true),
			ExternalAssetID:              to.Ptr("8ZBA6LRHU0A458969"),
			DisplayName:                  to.Ptr("AssetDisplayName"),
			Description:                  to.Ptr("This is a sample Asset"),
			AssetEndpointProfileRef:      to.Ptr("myAssetEndpointProfile"),
			Manufacturer:                 to.Ptr("Contoso"),
			ManufacturerURI:              to.Ptr("https://www.contoso.com/manufacturerUri"),
			Model:                        to.Ptr("ContosoModel"),
			ProductCode:                  to.Ptr("SA34VDG"),
			HardwareRevision:             to.Ptr("1.0"),
			SoftwareRevision:             to.Ptr("2.0"),
			DocumentationURI:             to.Ptr("https://www.example.com/manual"),
			SerialNumber:                 to.Ptr("64-103816-519918-8"),
			DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
			DefaultEventsConfiguration:   to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
			DefaultTopic: &armdeviceregistry.Topic{
				Path:   to.Ptr("/path/defaultTopic"),
				Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
			},
			Datasets: []*armdeviceregistry.Dataset{
				{
					Name:                 to.Ptr("dataset1"),
					DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
					Topic: &armdeviceregistry.Topic{
						Path:   to.Ptr("/path/dataset1"),
						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
					},
					DataPoints: []*armdeviceregistry.DataPoint{
						{
							Name:                   to.Ptr("dataPoint1"),
							DataSource:             to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
							ObservabilityMode:      to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
							DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
						},
						{
							Name:                   to.Ptr("dataPoint2"),
							DataSource:             to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
							ObservabilityMode:      to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
							DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
						},
					},
				},
			},
			Events: []*armdeviceregistry.Event{
				{
					Name:               to.Ptr("event1"),
					EventNotifier:      to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
					ObservabilityMode:  to.Ptr(armdeviceregistry.EventObservabilityModeNone),
					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
					Topic: &armdeviceregistry.Topic{
						Path:   to.Ptr("/path/event1"),
						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
					},
				},
				{
					Name:               to.Ptr("event2"),
					EventNotifier:      to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
					ObservabilityMode:  to.Ptr(armdeviceregistry.EventObservabilityModeLog),
					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
				},
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armdeviceregistry.AssetsClientCreateOrReplaceResponse{
	// 	Asset: &armdeviceregistry.Asset{
	// 		ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/assets/my-asset"),
	// 		Name: to.Ptr("my-asset"),
	// 		Type: to.Ptr("Microsoft.DeviceRegistry/assets"),
	// 		Location: to.Ptr("West Europe"),
	// 		ExtendedLocation: &armdeviceregistry.ExtendedLocation{
	// 			Type: to.Ptr("CustomLocation"),
	// 			Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
	// 		},
	// 		Tags: map[string]*string{
	// 			"site": to.Ptr("building-1"),
	// 		},
	// 		SystemData: &armdeviceregistry.SystemData{
	// 			CreatedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			CreatedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T00:36:43.2516899Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			LastModifiedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T01:37:16.0922793Z"); return t}()),
	// 		},
	// 		Properties: &armdeviceregistry.AssetProperties{
	// 			UUID: to.Ptr("0796f7c1-f2c8-44d7-9f5b-9a6f9522a85d"),
	// 			Enabled: to.Ptr(true),
	// 			ExternalAssetID: to.Ptr("8ZBA6LRHU0A458969"),
	// 			DisplayName: to.Ptr("AssetDisplayName"),
	// 			Description: to.Ptr("This is a sample Asset"),
	// 			AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
	// 			Version: to.Ptr[int64](73766),
	// 			Manufacturer: to.Ptr("Contoso"),
	// 			ManufacturerURI: to.Ptr("https://www.contoso.com/manufacturerUri"),
	// 			Model: to.Ptr("ContosoModel"),
	// 			ProductCode: to.Ptr("SA34VDG"),
	// 			HardwareRevision: to.Ptr("1.0"),
	// 			SoftwareRevision: to.Ptr("2.0"),
	// 			DocumentationURI: to.Ptr("https://www.example.com/manual"),
	// 			SerialNumber: to.Ptr("64-103816-519918-8"),
	// 			DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultEventsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultTopic: &armdeviceregistry.Topic{
	// 				Path: to.Ptr("/path/defaultTopic"),
	// 				Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 			},
	// 			Datasets: []*armdeviceregistry.Dataset{
	// 				{
	// 					Name: to.Ptr("dataset1"),
	// 					DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/dataset1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 					DataPoints: []*armdeviceregistry.DataPoint{
	// 						{
	// 							Name: to.Ptr("dataPoint1"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
	// 						},
	// 						{
	// 							Name: to.Ptr("dataPoint2"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
	// 						},
	// 					},
	// 				},
	// 			},
	// 			Events: []*armdeviceregistry.Event{
	// 				{
	// 					Name: to.Ptr("event1"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeNone),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/event1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 				},
	// 				{
	// 					Name: to.Ptr("event2"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeLog),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
	// 				},
	// 			},
	// 			ProvisioningState: to.Ptr(armdeviceregistry.ProvisioningStateSucceeded),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2024-11-01/Create_Asset_Without_DisplayName.json
func ExampleAssetsClient_BeginCreateOrReplace_createAssetWithoutDisplayName() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdeviceregistry.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAssetsClient().BeginCreateOrReplace(ctx, "myResourceGroup", "my-asset", armdeviceregistry.Asset{
		Location: to.Ptr("West Europe"),
		ExtendedLocation: &armdeviceregistry.ExtendedLocation{
			Type: to.Ptr("CustomLocation"),
			Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
		},
		Tags: map[string]*string{
			"site": to.Ptr("building-1"),
		},
		Properties: &armdeviceregistry.AssetProperties{
			Enabled:                      to.Ptr(true),
			ExternalAssetID:              to.Ptr("8ZBA6LRHU0A458969"),
			Description:                  to.Ptr("This is a sample Asset"),
			AssetEndpointProfileRef:      to.Ptr("myAssetEndpointProfile"),
			Manufacturer:                 to.Ptr("Contoso"),
			ManufacturerURI:              to.Ptr("https://www.contoso.com/manufacturerUri"),
			Model:                        to.Ptr("ContosoModel"),
			ProductCode:                  to.Ptr("SA34VDG"),
			HardwareRevision:             to.Ptr("1.0"),
			SoftwareRevision:             to.Ptr("2.0"),
			DocumentationURI:             to.Ptr("https://www.example.com/manual"),
			SerialNumber:                 to.Ptr("64-103816-519918-8"),
			DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
			DefaultEventsConfiguration:   to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
			DefaultTopic: &armdeviceregistry.Topic{
				Path:   to.Ptr("/path/defaultTopic"),
				Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
			},
			Datasets: []*armdeviceregistry.Dataset{
				{
					Name:                 to.Ptr("dataset1"),
					DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
					Topic: &armdeviceregistry.Topic{
						Path:   to.Ptr("/path/dataset1"),
						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
					},
					DataPoints: []*armdeviceregistry.DataPoint{
						{
							Name:                   to.Ptr("dataPoint1"),
							DataSource:             to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
							ObservabilityMode:      to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
							DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
						},
						{
							Name:                   to.Ptr("dataPoint2"),
							DataSource:             to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
							ObservabilityMode:      to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
							DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
						},
					},
				},
			},
			Events: []*armdeviceregistry.Event{
				{
					Name:               to.Ptr("event1"),
					EventNotifier:      to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
					ObservabilityMode:  to.Ptr(armdeviceregistry.EventObservabilityModeNone),
					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
					Topic: &armdeviceregistry.Topic{
						Path:   to.Ptr("/path/event1"),
						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
					},
				},
				{
					Name:               to.Ptr("event2"),
					EventNotifier:      to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
					ObservabilityMode:  to.Ptr(armdeviceregistry.EventObservabilityModeLog),
					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
				},
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armdeviceregistry.AssetsClientCreateOrReplaceResponse{
	// 	Asset: &armdeviceregistry.Asset{
	// 		ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/assets/my-asset"),
	// 		Name: to.Ptr("my-asset"),
	// 		Type: to.Ptr("Microsoft.DeviceRegistry/assets"),
	// 		Location: to.Ptr("West Europe"),
	// 		ExtendedLocation: &armdeviceregistry.ExtendedLocation{
	// 			Type: to.Ptr("CustomLocation"),
	// 			Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
	// 		},
	// 		Tags: map[string]*string{
	// 			"site": to.Ptr("building-1"),
	// 		},
	// 		SystemData: &armdeviceregistry.SystemData{
	// 			CreatedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			CreatedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T00:36:43.2516899Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			LastModifiedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T01:37:16.0922793Z"); return t}()),
	// 		},
	// 		Properties: &armdeviceregistry.AssetProperties{
	// 			UUID: to.Ptr("0796f7c1-f2c8-44d7-9f5b-9a6f9522a85d"),
	// 			Enabled: to.Ptr(true),
	// 			ExternalAssetID: to.Ptr("8ZBA6LRHU0A458969"),
	// 			DisplayName: to.Ptr("my-asset"),
	// 			Description: to.Ptr("This is a sample Asset"),
	// 			AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
	// 			Version: to.Ptr[int64](73766),
	// 			Manufacturer: to.Ptr("Contoso"),
	// 			ManufacturerURI: to.Ptr("https://www.contoso.com/manufacturerUri"),
	// 			Model: to.Ptr("ContosoModel"),
	// 			ProductCode: to.Ptr("SA34VDG"),
	// 			HardwareRevision: to.Ptr("1.0"),
	// 			SoftwareRevision: to.Ptr("2.0"),
	// 			DocumentationURI: to.Ptr("https://www.example.com/manual"),
	// 			SerialNumber: to.Ptr("64-103816-519918-8"),
	// 			DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultEventsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultTopic: &armdeviceregistry.Topic{
	// 				Path: to.Ptr("/path/defaultTopic"),
	// 				Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 			},
	// 			Datasets: []*armdeviceregistry.Dataset{
	// 				{
	// 					Name: to.Ptr("dataset1"),
	// 					DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/dataset1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 					DataPoints: []*armdeviceregistry.DataPoint{
	// 						{
	// 							Name: to.Ptr("dataPoint1"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
	// 						},
	// 						{
	// 							Name: to.Ptr("dataPoint2"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
	// 						},
	// 					},
	// 				},
	// 			},
	// 			Events: []*armdeviceregistry.Event{
	// 				{
	// 					Name: to.Ptr("event1"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeNone),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/event1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 				},
	// 				{
	// 					Name: to.Ptr("event2"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeLog),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
	// 				},
	// 			},
	// 			ProvisioningState: to.Ptr(armdeviceregistry.ProvisioningStateSucceeded),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2024-11-01/Create_Asset_Without_ExternalAssetId.json
func ExampleAssetsClient_BeginCreateOrReplace_createAssetWithoutExternalAssetId() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdeviceregistry.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAssetsClient().BeginCreateOrReplace(ctx, "myResourceGroup", "my-asset", armdeviceregistry.Asset{
		Location: to.Ptr("West Europe"),
		ExtendedLocation: &armdeviceregistry.ExtendedLocation{
			Type: to.Ptr("CustomLocation"),
			Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
		},
		Tags: map[string]*string{
			"site": to.Ptr("building-1"),
		},
		Properties: &armdeviceregistry.AssetProperties{
			Enabled:                      to.Ptr(true),
			DisplayName:                  to.Ptr("AssetDisplayName"),
			Description:                  to.Ptr("This is a sample Asset"),
			AssetEndpointProfileRef:      to.Ptr("myAssetEndpointProfile"),
			Manufacturer:                 to.Ptr("Contoso"),
			ManufacturerURI:              to.Ptr("https://www.contoso.com/manufacturerUri"),
			Model:                        to.Ptr("ContosoModel"),
			ProductCode:                  to.Ptr("SA34VDG"),
			HardwareRevision:             to.Ptr("1.0"),
			SoftwareRevision:             to.Ptr("2.0"),
			DocumentationURI:             to.Ptr("https://www.example.com/manual"),
			SerialNumber:                 to.Ptr("64-103816-519918-8"),
			DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
			DefaultEventsConfiguration:   to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
			DefaultTopic: &armdeviceregistry.Topic{
				Path:   to.Ptr("/path/defaultTopic"),
				Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
			},
			Datasets: []*armdeviceregistry.Dataset{
				{
					Name:                 to.Ptr("dataset1"),
					DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
					Topic: &armdeviceregistry.Topic{
						Path:   to.Ptr("/path/dataset1"),
						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
					},
					DataPoints: []*armdeviceregistry.DataPoint{
						{
							Name:                   to.Ptr("dataPoint1"),
							DataSource:             to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
							ObservabilityMode:      to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
							DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
						},
						{
							Name:                   to.Ptr("dataPoint2"),
							DataSource:             to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
							ObservabilityMode:      to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
							DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
						},
					},
				},
			},
			Events: []*armdeviceregistry.Event{
				{
					Name:               to.Ptr("event1"),
					EventNotifier:      to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
					ObservabilityMode:  to.Ptr(armdeviceregistry.EventObservabilityModeNone),
					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
					Topic: &armdeviceregistry.Topic{
						Path:   to.Ptr("/path/event1"),
						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
					},
				},
				{
					Name:               to.Ptr("event2"),
					EventNotifier:      to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
					ObservabilityMode:  to.Ptr(armdeviceregistry.EventObservabilityModeLog),
					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
				},
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armdeviceregistry.AssetsClientCreateOrReplaceResponse{
	// 	Asset: &armdeviceregistry.Asset{
	// 		ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/assets/my-asset"),
	// 		Name: to.Ptr("my-asset"),
	// 		Type: to.Ptr("Microsoft.DeviceRegistry/assets"),
	// 		Location: to.Ptr("West Europe"),
	// 		ExtendedLocation: &armdeviceregistry.ExtendedLocation{
	// 			Type: to.Ptr("CustomLocation"),
	// 			Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
	// 		},
	// 		Tags: map[string]*string{
	// 			"site": to.Ptr("building-1"),
	// 		},
	// 		SystemData: &armdeviceregistry.SystemData{
	// 			CreatedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			CreatedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T00:36:43.2516899Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			LastModifiedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T01:37:16.0922793Z"); return t}()),
	// 		},
	// 		Properties: &armdeviceregistry.AssetProperties{
	// 			UUID: to.Ptr("0796f7c1-f2c8-44d7-9f5b-9a6f9522a85d"),
	// 			Enabled: to.Ptr(true),
	// 			ExternalAssetID: to.Ptr("0796f7c1-f2c8-44d7-9f5b-9a6f9522a85d"),
	// 			DisplayName: to.Ptr("AssetDisplayName"),
	// 			Description: to.Ptr("This is a sample Asset"),
	// 			AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
	// 			Version: to.Ptr[int64](73766),
	// 			Manufacturer: to.Ptr("Contoso"),
	// 			ManufacturerURI: to.Ptr("https://www.contoso.com/manufacturerUri"),
	// 			Model: to.Ptr("ContosoModel"),
	// 			ProductCode: to.Ptr("SA34VDG"),
	// 			HardwareRevision: to.Ptr("1.0"),
	// 			SoftwareRevision: to.Ptr("2.0"),
	// 			DocumentationURI: to.Ptr("https://www.example.com/manual"),
	// 			SerialNumber: to.Ptr("64-103816-519918-8"),
	// 			DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultEventsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultTopic: &armdeviceregistry.Topic{
	// 				Path: to.Ptr("/path/defaultTopic"),
	// 				Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 			},
	// 			Datasets: []*armdeviceregistry.Dataset{
	// 				{
	// 					Name: to.Ptr("dataset1"),
	// 					DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/dataset1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 					DataPoints: []*armdeviceregistry.DataPoint{
	// 						{
	// 							Name: to.Ptr("dataPoint1"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
	// 						},
	// 						{
	// 							Name: to.Ptr("dataPoint2"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
	// 						},
	// 					},
	// 				},
	// 			},
	// 			Events: []*armdeviceregistry.Event{
	// 				{
	// 					Name: to.Ptr("event1"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeNone),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/event1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 				},
	// 				{
	// 					Name: to.Ptr("event2"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeLog),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
	// 				},
	// 			},
	// 			ProvisioningState: to.Ptr(armdeviceregistry.ProvisioningStateSucceeded),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2024-11-01/Delete_Asset.json
func ExampleAssetsClient_BeginDelete() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdeviceregistry.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAssetsClient().BeginDelete(ctx, "myResourceGroup", "my-asset", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}

// Generated from example definition: 2024-11-01/Get_Asset.json
func ExampleAssetsClient_Get_getAsset() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdeviceregistry.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewAssetsClient().Get(ctx, "myResourceGroup", "my-asset", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armdeviceregistry.AssetsClientGetResponse{
	// 	Asset: &armdeviceregistry.Asset{
	// 		ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/assets/my-asset"),
	// 		Name: to.Ptr("my-asset"),
	// 		Type: to.Ptr("Microsoft.DeviceRegistry/assets"),
	// 		Location: to.Ptr("West Europe"),
	// 		ExtendedLocation: &armdeviceregistry.ExtendedLocation{
	// 			Type: to.Ptr("CustomLocation"),
	// 			Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
	// 		},
	// 		Tags: map[string]*string{
	// 			"site": to.Ptr("building-1"),
	// 		},
	// 		SystemData: &armdeviceregistry.SystemData{
	// 			CreatedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			CreatedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T00:36:43.2516899Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			LastModifiedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T01:37:16.0922793Z"); return t}()),
	// 		},
	// 		Properties: &armdeviceregistry.AssetProperties{
	// 			UUID: to.Ptr("0796f7c1-f2c8-44d7-9f5b-9a6f9522a85d"),
	// 			Enabled: to.Ptr(true),
	// 			ExternalAssetID: to.Ptr("8ZBA6LRHU0A458969"),
	// 			DisplayName: to.Ptr("AssetDisplayName"),
	// 			Description: to.Ptr("This is a sample Asset"),
	// 			AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
	// 			Version: to.Ptr[int64](73766),
	// 			Manufacturer: to.Ptr("Contoso"),
	// 			ManufacturerURI: to.Ptr("https://www.contoso.com/manufacturerUri"),
	// 			Model: to.Ptr("ContosoModel"),
	// 			ProductCode: to.Ptr("SA34VDG"),
	// 			HardwareRevision: to.Ptr("1.0"),
	// 			SoftwareRevision: to.Ptr("2.0"),
	// 			DocumentationURI: to.Ptr("https://www.example.com/manual"),
	// 			SerialNumber: to.Ptr("64-103816-519918-8"),
	// 			DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultEventsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultTopic: &armdeviceregistry.Topic{
	// 				Path: to.Ptr("/path/defaultTopic"),
	// 				Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 			},
	// 			Datasets: []*armdeviceregistry.Dataset{
	// 				{
	// 					Name: to.Ptr("dataset1"),
	// 					DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/dataset1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 					DataPoints: []*armdeviceregistry.DataPoint{
	// 						{
	// 							Name: to.Ptr("dataPoint1"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
	// 						},
	// 						{
	// 							Name: to.Ptr("dataPoint2"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
	// 						},
	// 					},
	// 				},
	// 			},
	// 			Events: []*armdeviceregistry.Event{
	// 				{
	// 					Name: to.Ptr("event1"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeNone),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/event1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 				},
	// 				{
	// 					Name: to.Ptr("event2"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeLog),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
	// 				},
	// 			},
	// 			ProvisioningState: to.Ptr(armdeviceregistry.ProvisioningStateSucceeded),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2024-11-01/Get_Asset_With_SyncStatus.json
func ExampleAssetsClient_Get_getAssetWithSyncStatus() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdeviceregistry.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewAssetsClient().Get(ctx, "myResourceGroup", "my-asset", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armdeviceregistry.AssetsClientGetResponse{
	// 	Asset: &armdeviceregistry.Asset{
	// 		ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/assets/my-asset"),
	// 		Name: to.Ptr("my-asset"),
	// 		Type: to.Ptr("Microsoft.DeviceRegistry/assets"),
	// 		Location: to.Ptr("West Europe"),
	// 		ExtendedLocation: &armdeviceregistry.ExtendedLocation{
	// 			Type: to.Ptr("CustomLocation"),
	// 			Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
	// 		},
	// 		Tags: map[string]*string{
	// 			"site": to.Ptr("building-1"),
	// 		},
	// 		SystemData: &armdeviceregistry.SystemData{
	// 			CreatedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			CreatedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T00:36:43.2516899Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			LastModifiedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T01:37:16.0922793Z"); return t}()),
	// 		},
	// 		Properties: &armdeviceregistry.AssetProperties{
	// 			UUID: to.Ptr("0796f7c1-f2c8-44d7-9f5b-9a6f9522a85d"),
	// 			Enabled: to.Ptr(true),
	// 			ExternalAssetID: to.Ptr("8ZBA6LRHU0A458969"),
	// 			DisplayName: to.Ptr("AssetDisplayName"),
	// 			Description: to.Ptr("This is a sample Asset"),
	// 			AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
	// 			Version: to.Ptr[int64](73766),
	// 			Manufacturer: to.Ptr("Contoso"),
	// 			ManufacturerURI: to.Ptr("https://www.contoso.com/manufacturerUri"),
	// 			Model: to.Ptr("ContosoModel"),
	// 			ProductCode: to.Ptr("SA34VDG"),
	// 			HardwareRevision: to.Ptr("1.0"),
	// 			SoftwareRevision: to.Ptr("2.0"),
	// 			DocumentationURI: to.Ptr("https://www.example.com/manual"),
	// 			SerialNumber: to.Ptr("64-103816-519918-8"),
	// 			DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultEventsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultTopic: &armdeviceregistry.Topic{
	// 				Path: to.Ptr("/path/defaultTopic"),
	// 				Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 			},
	// 			Datasets: []*armdeviceregistry.Dataset{
	// 				{
	// 					Name: to.Ptr("dataset1"),
	// 					DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/dataset1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 					DataPoints: []*armdeviceregistry.DataPoint{
	// 						{
	// 							Name: to.Ptr("dataPoint1"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
	// 						},
	// 						{
	// 							Name: to.Ptr("dataPoint2"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
	// 						},
	// 					},
	// 				},
	// 			},
	// 			Events: []*armdeviceregistry.Event{
	// 				{
	// 					Name: to.Ptr("event1"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeNone),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/event1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 				},
	// 				{
	// 					Name: to.Ptr("event2"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeLog),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
	// 				},
	// 			},
	// 			Status: &armdeviceregistry.AssetStatus{
	// 				Errors: []*armdeviceregistry.AssetStatusError{
	// 					{
	// 						Code: to.Ptr[int32](500),
	// 						Message: to.Ptr("Internal Server Error"),
	// 					},
	// 				},
	// 				Version: to.Ptr[int64](1),
	// 				Datasets: []*armdeviceregistry.AssetStatusDataset{
	// 					{
	// 						Name: to.Ptr("dataset1"),
	// 						MessageSchemaReference: &armdeviceregistry.MessageSchemaReference{
	// 							SchemaRegistryNamespace: to.Ptr("schemans"),
	// 							SchemaName: to.Ptr("schema1"),
	// 							SchemaVersion: to.Ptr("1.0.0"),
	// 						},
	// 					},
	// 				},
	// 				Events: []*armdeviceregistry.AssetStatusEvent{
	// 					{
	// 						Name: to.Ptr("event1"),
	// 						MessageSchemaReference: &armdeviceregistry.MessageSchemaReference{
	// 							SchemaRegistryNamespace: to.Ptr("schemans"),
	// 							SchemaName: to.Ptr("schema2"),
	// 							SchemaVersion: to.Ptr("1.0.0"),
	// 						},
	// 					},
	// 				},
	// 			},
	// 			ProvisioningState: to.Ptr(armdeviceregistry.ProvisioningStateSucceeded),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2024-11-01/List_Assets_ResourceGroup.json
func ExampleAssetsClient_NewListByResourceGroupPager() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdeviceregistry.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAssetsClient().NewListByResourceGroupPager("myResourceGroup", 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 = armdeviceregistry.AssetsClientListByResourceGroupResponse{
		// 	AssetListResult: armdeviceregistry.AssetListResult{
		// 		Value: []*armdeviceregistry.Asset{
		// 			{
		// 				ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/assets/my-asset"),
		// 				Name: to.Ptr("my-asset"),
		// 				Type: to.Ptr("Microsoft.DeviceRegistry/assets"),
		// 				Location: to.Ptr("West Europe"),
		// 				ExtendedLocation: &armdeviceregistry.ExtendedLocation{
		// 					Type: to.Ptr("CustomLocation"),
		// 					Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
		// 				},
		// 				Tags: map[string]*string{
		// 					"site": to.Ptr("building-1"),
		// 				},
		// 				SystemData: &armdeviceregistry.SystemData{
		// 					CreatedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
		// 					CreatedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T00:36:43.2516899Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
		// 					LastModifiedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T01:37:16.0922793Z"); return t}()),
		// 				},
		// 				Properties: &armdeviceregistry.AssetProperties{
		// 					UUID: to.Ptr("0796f7c1-f2c8-44d7-9f5b-9a6f9522a85d"),
		// 					Enabled: to.Ptr(true),
		// 					ExternalAssetID: to.Ptr("8ZBA6LRHU0A458969"),
		// 					DisplayName: to.Ptr("AssetDisplayName"),
		// 					Description: to.Ptr("This is a sample Asset"),
		// 					AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
		// 					Version: to.Ptr[int64](73766),
		// 					Manufacturer: to.Ptr("Contoso"),
		// 					ManufacturerURI: to.Ptr("https://www.contoso.com/manufacturerUri"),
		// 					Model: to.Ptr("ContosoModel"),
		// 					ProductCode: to.Ptr("SA34VDG"),
		// 					HardwareRevision: to.Ptr("1.0"),
		// 					SoftwareRevision: to.Ptr("2.0"),
		// 					DocumentationURI: to.Ptr("https://www.example.com/manual"),
		// 					SerialNumber: to.Ptr("64-103816-519918-8"),
		// 					DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 					DefaultEventsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 					DefaultTopic: &armdeviceregistry.Topic{
		// 						Path: to.Ptr("/path/defaultTopic"),
		// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 					},
		// 					Datasets: []*armdeviceregistry.Dataset{
		// 						{
		// 							Name: to.Ptr("dataset1"),
		// 							DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 							Topic: &armdeviceregistry.Topic{
		// 								Path: to.Ptr("/path/dataset1"),
		// 								Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 							},
		// 							DataPoints: []*armdeviceregistry.DataPoint{
		// 								{
		// 									Name: to.Ptr("dataPoint1"),
		// 									DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
		// 									ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
		// 									DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
		// 								},
		// 								{
		// 									Name: to.Ptr("dataPoint2"),
		// 									DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
		// 									ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
		// 									DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
		// 								},
		// 							},
		// 						},
		// 					},
		// 					Events: []*armdeviceregistry.Event{
		// 						{
		// 							Name: to.Ptr("event1"),
		// 							EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
		// 							ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeNone),
		// 							EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
		// 							Topic: &armdeviceregistry.Topic{
		// 								Path: to.Ptr("/path/event1"),
		// 								Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 							},
		// 						},
		// 						{
		// 							Name: to.Ptr("event2"),
		// 							EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
		// 							ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeLog),
		// 							EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
		// 						},
		// 					},
		// 					ProvisioningState: to.Ptr(armdeviceregistry.ProvisioningStateSucceeded),
		// 				},
		// 			},
		// 			{
		// 				ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/assets/my-asset1"),
		// 				Name: to.Ptr("my-asset1"),
		// 				Type: to.Ptr("Microsoft.DeviceRegistry/assets"),
		// 				Location: to.Ptr("West Europe"),
		// 				ExtendedLocation: &armdeviceregistry.ExtendedLocation{
		// 					Type: to.Ptr("CustomLocation"),
		// 					Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
		// 				},
		// 				Tags: map[string]*string{
		// 					"site": to.Ptr("building-2"),
		// 				},
		// 				SystemData: &armdeviceregistry.SystemData{
		// 					CreatedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
		// 					CreatedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T00:36:43.2516899Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
		// 					LastModifiedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T01:37:16.0922793Z"); return t}()),
		// 				},
		// 				Properties: &armdeviceregistry.AssetProperties{
		// 					UUID: to.Ptr("7824a74f-21e1-4458-ae06-604d3a241d2c"),
		// 					Enabled: to.Ptr(true),
		// 					ExternalAssetID: to.Ptr("9AVD7KLPU03377981"),
		// 					DisplayName: to.Ptr("AssetDisplayName 1"),
		// 					Description: to.Ptr("This is a sample Asset 1"),
		// 					AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
		// 					Version: to.Ptr[int64](73766),
		// 					Manufacturer: to.Ptr("Contoso"),
		// 					ManufacturerURI: to.Ptr("https://www.contoso.com/manufacturerUri"),
		// 					Model: to.Ptr("ContosoModel"),
		// 					ProductCode: to.Ptr("SA34VDG"),
		// 					HardwareRevision: to.Ptr("1.0"),
		// 					SoftwareRevision: to.Ptr("2.0"),
		// 					DocumentationURI: to.Ptr("https://www.example.com/manual"),
		// 					SerialNumber: to.Ptr("12-984302-792341-8"),
		// 					DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 					DefaultEventsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 					DefaultTopic: &armdeviceregistry.Topic{
		// 						Path: to.Ptr("/path/defaultTopic"),
		// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 					},
		// 					Datasets: []*armdeviceregistry.Dataset{
		// 						{
		// 							Name: to.Ptr("dataset1"),
		// 							DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 							Topic: &armdeviceregistry.Topic{
		// 								Path: to.Ptr("/path/dataset1"),
		// 								Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 							},
		// 							DataPoints: []*armdeviceregistry.DataPoint{
		// 								{
		// 									Name: to.Ptr("dataPoint1"),
		// 									DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
		// 									ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
		// 									DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
		// 								},
		// 								{
		// 									Name: to.Ptr("dataPoint2"),
		// 									DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
		// 									ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
		// 									DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
		// 								},
		// 							},
		// 						},
		// 					},
		// 					Events: []*armdeviceregistry.Event{
		// 						{
		// 							Name: to.Ptr("event1"),
		// 							EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
		// 							ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeNone),
		// 							EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
		// 							Topic: &armdeviceregistry.Topic{
		// 								Path: to.Ptr("/path/event1"),
		// 								Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 							},
		// 						},
		// 						{
		// 							Name: to.Ptr("event2"),
		// 							EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
		// 							ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeLog),
		// 							EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
		// 						},
		// 					},
		// 					ProvisioningState: to.Ptr(armdeviceregistry.ProvisioningStateSucceeded),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

// Generated from example definition: 2024-11-01/List_Assets_Subscription.json
func ExampleAssetsClient_NewListBySubscriptionPager() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdeviceregistry.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewAssetsClient().NewListBySubscriptionPager(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 = armdeviceregistry.AssetsClientListBySubscriptionResponse{
		// 	AssetListResult: armdeviceregistry.AssetListResult{
		// 		Value: []*armdeviceregistry.Asset{
		// 			{
		// 				ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/assets/my-asset"),
		// 				Name: to.Ptr("my-asset"),
		// 				Type: to.Ptr("Microsoft.DeviceRegistry/assets"),
		// 				Location: to.Ptr("West Europe"),
		// 				ExtendedLocation: &armdeviceregistry.ExtendedLocation{
		// 					Type: to.Ptr("CustomLocation"),
		// 					Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
		// 				},
		// 				Tags: map[string]*string{
		// 					"site": to.Ptr("building-1"),
		// 				},
		// 				SystemData: &armdeviceregistry.SystemData{
		// 					CreatedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
		// 					CreatedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T00:36:43.2516899Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
		// 					LastModifiedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T01:37:16.0922793Z"); return t}()),
		// 				},
		// 				Properties: &armdeviceregistry.AssetProperties{
		// 					UUID: to.Ptr("0796f7c1-f2c8-44d7-9f5b-9a6f9522a85d"),
		// 					Enabled: to.Ptr(true),
		// 					ExternalAssetID: to.Ptr("8ZBA6LRHU0A458969"),
		// 					DisplayName: to.Ptr("AssetDisplayName"),
		// 					Description: to.Ptr("This is a sample Asset"),
		// 					AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
		// 					Version: to.Ptr[int64](73766),
		// 					Manufacturer: to.Ptr("Contoso"),
		// 					ManufacturerURI: to.Ptr("https://www.contoso.com/manufacturerUri"),
		// 					Model: to.Ptr("ContosoModel"),
		// 					ProductCode: to.Ptr("SA34VDG"),
		// 					HardwareRevision: to.Ptr("1.0"),
		// 					SoftwareRevision: to.Ptr("2.0"),
		// 					DocumentationURI: to.Ptr("https://www.example.com/manual"),
		// 					SerialNumber: to.Ptr("64-103816-519918-8"),
		// 					DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 					DefaultEventsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 					DefaultTopic: &armdeviceregistry.Topic{
		// 						Path: to.Ptr("/path/defaultTopic"),
		// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 					},
		// 					Datasets: []*armdeviceregistry.Dataset{
		// 						{
		// 							Name: to.Ptr("dataset1"),
		// 							DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 							Topic: &armdeviceregistry.Topic{
		// 								Path: to.Ptr("/path/dataset1"),
		// 								Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 							},
		// 							DataPoints: []*armdeviceregistry.DataPoint{
		// 								{
		// 									Name: to.Ptr("dataPoint1"),
		// 									DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
		// 									ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
		// 									DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
		// 								},
		// 								{
		// 									Name: to.Ptr("dataPoint2"),
		// 									DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
		// 									ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
		// 									DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
		// 								},
		// 							},
		// 						},
		// 					},
		// 					Events: []*armdeviceregistry.Event{
		// 						{
		// 							Name: to.Ptr("event1"),
		// 							EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
		// 							ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeNone),
		// 							EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
		// 							Topic: &armdeviceregistry.Topic{
		// 								Path: to.Ptr("/path/event1"),
		// 								Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 							},
		// 						},
		// 						{
		// 							Name: to.Ptr("event2"),
		// 							EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
		// 							ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeLog),
		// 							EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
		// 						},
		// 					},
		// 					ProvisioningState: to.Ptr(armdeviceregistry.ProvisioningStateSucceeded),
		// 				},
		// 			},
		// 			{
		// 				ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/assets/my-asset1"),
		// 				Name: to.Ptr("my-asset1"),
		// 				Type: to.Ptr("Microsoft.DeviceRegistry/assets"),
		// 				Location: to.Ptr("West Europe"),
		// 				ExtendedLocation: &armdeviceregistry.ExtendedLocation{
		// 					Type: to.Ptr("CustomLocation"),
		// 					Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
		// 				},
		// 				Tags: map[string]*string{
		// 					"site": to.Ptr("building-2"),
		// 				},
		// 				SystemData: &armdeviceregistry.SystemData{
		// 					CreatedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
		// 					CreatedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T00:36:43.2516899Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
		// 					LastModifiedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T01:37:16.0922793Z"); return t}()),
		// 				},
		// 				Properties: &armdeviceregistry.AssetProperties{
		// 					UUID: to.Ptr("7824a74f-21e1-4458-ae06-604d3a241d2c"),
		// 					Enabled: to.Ptr(true),
		// 					ExternalAssetID: to.Ptr("9AVD7KLPU03377981"),
		// 					DisplayName: to.Ptr("AssetDisplayName 1"),
		// 					Description: to.Ptr("This is a sample Asset 1"),
		// 					AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
		// 					Version: to.Ptr[int64](73766),
		// 					Manufacturer: to.Ptr("Contoso"),
		// 					ManufacturerURI: to.Ptr("https://www.contoso.com/manufacturerUri"),
		// 					Model: to.Ptr("ContosoModel"),
		// 					ProductCode: to.Ptr("SA34VDG"),
		// 					HardwareRevision: to.Ptr("1.0"),
		// 					SoftwareRevision: to.Ptr("2.0"),
		// 					DocumentationURI: to.Ptr("https://www.example.com/manual"),
		// 					SerialNumber: to.Ptr("12-984302-792341-8"),
		// 					DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 					DefaultEventsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 					DefaultTopic: &armdeviceregistry.Topic{
		// 						Path: to.Ptr("/path/defaultTopic"),
		// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 					},
		// 					Datasets: []*armdeviceregistry.Dataset{
		// 						{
		// 							Name: to.Ptr("dataset1"),
		// 							DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
		// 							Topic: &armdeviceregistry.Topic{
		// 								Path: to.Ptr("/path/dataset1"),
		// 								Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 							},
		// 							DataPoints: []*armdeviceregistry.DataPoint{
		// 								{
		// 									Name: to.Ptr("dataPoint1"),
		// 									DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
		// 									ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
		// 									DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
		// 								},
		// 								{
		// 									Name: to.Ptr("dataPoint2"),
		// 									DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
		// 									ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
		// 									DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
		// 								},
		// 							},
		// 						},
		// 					},
		// 					Events: []*armdeviceregistry.Event{
		// 						{
		// 							Name: to.Ptr("event1"),
		// 							EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
		// 							ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeNone),
		// 							EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
		// 							Topic: &armdeviceregistry.Topic{
		// 								Path: to.Ptr("/path/event1"),
		// 								Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
		// 							},
		// 						},
		// 						{
		// 							Name: to.Ptr("event2"),
		// 							EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
		// 							ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeLog),
		// 							EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
		// 						},
		// 					},
		// 					ProvisioningState: to.Ptr(armdeviceregistry.ProvisioningStateSucceeded),
		// 				},
		// 			},
		// 		},
		// 	},
		// }
	}
}

// Generated from example definition: 2024-11-01/Update_Asset.json
func ExampleAssetsClient_BeginUpdate() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdeviceregistry.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewAssetsClient().BeginUpdate(ctx, "myResourceGroup", "my-asset", armdeviceregistry.AssetUpdate{
		Properties: &armdeviceregistry.AssetUpdateProperties{
			Enabled:     to.Ptr(false),
			DisplayName: to.Ptr("NewAssetDisplayName"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armdeviceregistry.AssetsClientUpdateResponse{
	// 	Asset: &armdeviceregistry.Asset{
	// 		ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DeviceRegistry/assets/my-asset"),
	// 		Name: to.Ptr("my-asset"),
	// 		Type: to.Ptr("Microsoft.DeviceRegistry/assets"),
	// 		Location: to.Ptr("West Europe"),
	// 		ExtendedLocation: &armdeviceregistry.ExtendedLocation{
	// 			Type: to.Ptr("CustomLocation"),
	// 			Name: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
	// 		},
	// 		Tags: map[string]*string{
	// 			"site": to.Ptr("building-1"),
	// 		},
	// 		SystemData: &armdeviceregistry.SystemData{
	// 			CreatedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			CreatedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T00:36:43.2516899Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("2ta23112-4596-44ff-b773-19405922bfc1"),
	// 			LastModifiedByType: to.Ptr(armdeviceregistry.CreatedByTypeApplication),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-16T01:37:16.0922793Z"); return t}()),
	// 		},
	// 		Properties: &armdeviceregistry.AssetProperties{
	// 			UUID: to.Ptr("0796f7c1-f2c8-44d7-9f5b-9a6f9522a85d"),
	// 			Enabled: to.Ptr(true),
	// 			ExternalAssetID: to.Ptr("8ZBA6LRHU0A458969"),
	// 			DisplayName: to.Ptr("NewAssetDisplayName"),
	// 			Description: to.Ptr("This is a sample Asset"),
	// 			AssetEndpointProfileRef: to.Ptr("myAssetEndpointProfile"),
	// 			Version: to.Ptr[int64](73766),
	// 			Manufacturer: to.Ptr("Contoso"),
	// 			ManufacturerURI: to.Ptr("https://www.contoso.com/manufacturerUri"),
	// 			Model: to.Ptr("ContosoModel"),
	// 			ProductCode: to.Ptr("SA34VDG"),
	// 			HardwareRevision: to.Ptr("1.0"),
	// 			SoftwareRevision: to.Ptr("2.0"),
	// 			DocumentationURI: to.Ptr("https://www.example.com/manual"),
	// 			SerialNumber: to.Ptr("64-103816-519918-8"),
	// 			DefaultDatasetsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultEventsConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 			DefaultTopic: &armdeviceregistry.Topic{
	// 				Path: to.Ptr("/path/defaultTopic"),
	// 				Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 			},
	// 			Datasets: []*armdeviceregistry.Dataset{
	// 				{
	// 					Name: to.Ptr("dataset1"),
	// 					DatasetConfiguration: to.Ptr("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/dataset1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 					DataPoints: []*armdeviceregistry.DataPoint{
	// 						{
	// 							Name: to.Ptr("dataPoint1"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeCounter),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
	// 						},
	// 						{
	// 							Name: to.Ptr("dataPoint2"),
	// 							DataSource: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
	// 							ObservabilityMode: to.Ptr(armdeviceregistry.DataPointObservabilityModeNone),
	// 							DataPointConfiguration: to.Ptr("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
	// 						},
	// 					},
	// 				},
	// 			},
	// 			Events: []*armdeviceregistry.Event{
	// 				{
	// 					Name: to.Ptr("event1"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeNone),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
	// 					Topic: &armdeviceregistry.Topic{
	// 						Path: to.Ptr("/path/event1"),
	// 						Retain: to.Ptr(armdeviceregistry.TopicRetainTypeKeep),
	// 					},
	// 				},
	// 				{
	// 					Name: to.Ptr("event2"),
	// 					EventNotifier: to.Ptr("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
	// 					ObservabilityMode: to.Ptr(armdeviceregistry.EventObservabilityModeLog),
	// 					EventConfiguration: to.Ptr("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
	// 				},
	// 			},
	// 			ProvisioningState: to.Ptr(armdeviceregistry.ProvisioningStateSucceeded),
	// 		},
	// 	},
	// }
}
