From 4dc7fd5241104716c0eb7bbb4b7bf5c8f542fccb Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Tue, 21 Oct 2025 01:01:19 +0000 Subject: [PATCH] [skip ci] Archive 8c91a890762bac880a210d3e329b98c6e40ba81b --- .../Az.DeviceRegistry.format.ps1xml | 186 ++++- .../Properties/AssemblyInfo.cs | 5 +- .../New-AzDeviceRegistryNamespaceAsset.ps1 | 178 ++++- .../New-AzDeviceRegistryNamespaceDevice.ps1 | 6 +- ...DeviceRegistryNamespaceDiscoveredAsset.ps1 | 199 ++++- ...eviceRegistryNamespaceDiscoveredDevice.ps1 | 8 +- .../exports/ProxyCmdletDefinitions.ps1 | 524 +++++++++++-- .../exports/Remove-AzDeviceRegistrySchema.ps1 | 12 + .../Remove-AzDeviceRegistrySchemaVersion.ps1 | 12 + .../Update-AzDeviceRegistryNamespaceAsset.ps1 | 29 +- ...Update-AzDeviceRegistryNamespaceDevice.ps1 | 16 +- ...DeviceRegistryNamespaceDiscoveredAsset.ps1 | 48 +- ...eviceRegistryNamespaceDiscoveredDevice.ps1 | 16 +- .../generate-info.json | 2 +- .../generated/api/DeviceRegistry.cs | 710 +++++++++++------- .../Models/HostAuthentication.PowerShell.cs | 20 +- .../api/Models/HostAuthentication.cs | 56 +- .../api/Models/HostAuthentication.json.cs | 2 +- .../HostAuthenticationUpdate.PowerShell.cs | 20 +- .../api/Models/HostAuthenticationUpdate.cs | 56 +- .../Models/HostAuthenticationUpdate.json.cs | 2 +- .../api/Models/InboundEndpoints.PowerShell.cs | 32 +- .../generated/api/Models/InboundEndpoints.cs | 50 +- .../InboundEndpointsUpdate.PowerShell.cs | 20 +- .../api/Models/InboundEndpointsUpdate.cs | 50 +- .../api/Models/ManagementGroup.PowerShell.cs | 8 + .../generated/api/Models/ManagementGroup.cs | 20 + .../api/Models/ManagementGroup.json.cs | 2 + .../api/Models/NamespaceAsset.PowerShell.cs | 16 +- .../generated/api/Models/NamespaceAsset.cs | 40 +- .../NamespaceAssetProperties.PowerShell.cs | 16 +- .../api/Models/NamespaceAssetProperties.cs | 44 +- .../Models/NamespaceAssetProperties.json.cs | 8 +- .../Models/NamespaceAssetStatus.PowerShell.cs | 8 +- .../api/Models/NamespaceAssetStatus.cs | 26 +- .../api/Models/NamespaceAssetStatus.json.cs | 8 +- ...espaceAssetStatusEventGroup.PowerShell.cs} | 62 +- ...paceAssetStatusEventGroup.TypeConverter.cs | 148 ++++ .../Models/NamespaceAssetStatusEventGroup.cs | 95 +++ ...=> NamespaceAssetStatusEventGroup.json.cs} | 42 +- .../Models/NamespaceAssetUpdate.PowerShell.cs | 8 +- .../api/Models/NamespaceAssetUpdate.cs | 18 +- ...mespaceAssetUpdateProperties.PowerShell.cs | 8 +- .../Models/NamespaceAssetUpdateProperties.cs | 22 +- .../NamespaceAssetUpdateProperties.json.cs | 8 +- .../NamespaceDiscoveredAsset.PowerShell.cs | 32 +- .../api/Models/NamespaceDiscoveredAsset.cs | 69 +- ...aceDiscoveredAssetProperties.PowerShell.cs | 32 +- .../NamespaceDiscoveredAssetProperties.cs | 82 +- ...NamespaceDiscoveredAssetProperties.json.cs | 17 +- ...mespaceDiscoveredAssetUpdate.PowerShell.cs | 24 +- .../Models/NamespaceDiscoveredAssetUpdate.cs | 52 +- ...coveredAssetUpdateProperties.PowerShell.cs | 24 +- ...amespaceDiscoveredAssetUpdateProperties.cs | 62 +- ...aceDiscoveredAssetUpdateProperties.json.cs | 12 +- .../NamespaceDiscoveredEvent.PowerShell.cs | 16 +- .../api/Models/NamespaceDiscoveredEvent.cs | 54 +- .../Models/NamespaceDiscoveredEvent.json.cs | 14 +- .../NamespaceDiscoveredEventDataPoint.cs | 129 ---- ...amespaceDiscoveredEventGroup.PowerShell.cs | 204 +++++ ...paceDiscoveredEventGroup.TypeConverter.cs} | 29 +- .../Models/NamespaceDiscoveredEventGroup.cs | 178 +++++ ... => NamespaceDiscoveredEventGroup.json.cs} | 48 +- ...aceDiscoveredManagementGroup.PowerShell.cs | 8 + .../NamespaceDiscoveredManagementGroup.cs | 20 + ...NamespaceDiscoveredManagementGroup.json.cs | 2 + .../api/Models/NamespaceEvent.PowerShell.cs | 16 +- .../generated/api/Models/NamespaceEvent.cs | 54 +- .../api/Models/NamespaceEvent.json.cs | 14 +- .../api/Models/NamespaceEventDataPoint.cs | 109 --- .../Models/NamespaceEventGroup.PowerShell.cs | 204 +++++ ...s => NamespaceEventGroup.TypeConverter.cs} | 28 +- .../api/Models/NamespaceEventGroup.cs | 178 +++++ .../api/Models/NamespaceEventGroup.json.cs | 134 ++++ .../X509CertificateCredentials.PowerShell.cs | 180 +++++ ...509CertificateCredentials.TypeConverter.cs | 147 ++++ .../api/Models/X509CertificateCredentials.cs | 112 +++ .../Models/X509CertificateCredentials.json.cs | 112 +++ ...ertificateCredentialsUpdate.PowerShell.cs} | 110 ++- ...tificateCredentialsUpdate.TypeConverter.cs | 148 ++++ .../X509CertificateCredentialsUpdate.cs | 112 +++ .../X509CertificateCredentialsUpdate.json.cs | 112 +++ ...zDeviceRegistryAssetEndpointProfile_Get.cs | 2 +- ...stryAssetEndpointProfile_GetViaIdentity.cs | 2 +- ...DeviceRegistryAssetEndpointProfile_List.cs | 2 +- ...eviceRegistryAssetEndpointProfile_List1.cs | 2 +- .../cmdlets/GetAzDeviceRegistryAsset_Get.cs | 2 +- ...GetAzDeviceRegistryAsset_GetViaIdentity.cs | 2 +- .../cmdlets/GetAzDeviceRegistryAsset_List.cs | 2 +- .../cmdlets/GetAzDeviceRegistryAsset_List1.cs | 2 +- ...GetAzDeviceRegistryBillingContainer_Get.cs | 2 +- ...RegistryBillingContainer_GetViaIdentity.cs | 2 +- ...etAzDeviceRegistryBillingContainer_List.cs | 2 +- .../GetAzDeviceRegistryNamespaceAsset_Get.cs | 2 +- ...ceRegistryNamespaceAsset_GetViaIdentity.cs | 2 +- ...yNamespaceAsset_GetViaIdentityNamespace.cs | 2 +- .../GetAzDeviceRegistryNamespaceAsset_List.cs | 2 +- .../GetAzDeviceRegistryNamespaceDevice_Get.cs | 2 +- ...eRegistryNamespaceDevice_GetViaIdentity.cs | 2 +- ...NamespaceDevice_GetViaIdentityNamespace.cs | 2 +- ...GetAzDeviceRegistryNamespaceDevice_List.cs | 2 +- ...iceRegistryNamespaceDiscoveredAsset_Get.cs | 2 +- ...NamespaceDiscoveredAsset_GetViaIdentity.cs | 2 +- ...DiscoveredAsset_GetViaIdentityNamespace.cs | 2 +- ...ceRegistryNamespaceDiscoveredAsset_List.cs | 2 +- ...ceRegistryNamespaceDiscoveredDevice_Get.cs | 2 +- ...amespaceDiscoveredDevice_GetViaIdentity.cs | 2 +- ...iscoveredDevice_GetViaIdentityNamespace.cs | 2 +- ...eRegistryNamespaceDiscoveredDevice_List.cs | 2 +- .../GetAzDeviceRegistryNamespace_Get.cs | 2 +- ...zDeviceRegistryNamespace_GetViaIdentity.cs | 2 +- .../GetAzDeviceRegistryNamespace_List.cs | 2 +- .../GetAzDeviceRegistryNamespace_List1.cs | 2 +- .../GetAzDeviceRegistryOperation_List.cs | 2 +- .../GetAzDeviceRegistrySchemaRegistry_Get.cs | 2 +- ...ceRegistrySchemaRegistry_GetViaIdentity.cs | 2 +- .../GetAzDeviceRegistrySchemaRegistry_List.cs | 2 +- ...GetAzDeviceRegistrySchemaRegistry_List1.cs | 2 +- .../GetAzDeviceRegistrySchemaVersion_Get.cs | 2 +- ...iceRegistrySchemaVersion_GetViaIdentity.cs | 2 +- ...istrySchemaVersion_GetViaIdentitySchema.cs | 2 +- ...emaVersion_GetViaIdentitySchemaRegistry.cs | 2 +- .../GetAzDeviceRegistrySchemaVersion_List.cs | 2 +- .../cmdlets/GetAzDeviceRegistrySchema_Get.cs | 2 +- ...etAzDeviceRegistrySchema_GetViaIdentity.cs | 2 +- ...strySchema_GetViaIdentitySchemaRegistry.cs | 2 +- .../cmdlets/GetAzDeviceRegistrySchema_List.cs | 2 +- .../MoveAzDeviceRegistryNamespace_Migrate.cs | 2 +- ...DeviceRegistryNamespace_MigrateExpanded.cs | 2 +- ...iceRegistryNamespace_MigrateViaIdentity.cs | 2 +- ...tryNamespace_MigrateViaIdentityExpanded.cs | 2 +- ...egistryNamespace_MigrateViaJsonFilePath.cs | 2 +- ...eRegistryNamespace_MigrateViaJsonString.cs | 2 +- ...stryAssetEndpointProfile_CreateExpanded.cs | 2 +- ...etEndpointProfile_CreateViaJsonFilePath.cs | 2 +- ...ssetEndpointProfile_CreateViaJsonString.cs | 2 +- ...NewAzDeviceRegistryAsset_CreateExpanded.cs | 2 +- ...viceRegistryAsset_CreateViaJsonFilePath.cs | 2 +- ...DeviceRegistryAsset_CreateViaJsonString.cs | 2 +- ...ceRegistryNamespaceAsset_CreateExpanded.cs | 14 +- ...tryNamespaceAsset_CreateViaJsonFilePath.cs | 2 +- ...istryNamespaceAsset_CreateViaJsonString.cs | 2 +- ...eRegistryNamespaceDevice_CreateExpanded.cs | 2 +- ...ryNamespaceDevice_CreateViaJsonFilePath.cs | 2 +- ...stryNamespaceDevice_CreateViaJsonString.cs | 2 +- ...NamespaceDiscoveredAsset_CreateExpanded.cs | 47 +- ...ceDiscoveredAsset_CreateViaJsonFilePath.cs | 2 +- ...paceDiscoveredAsset_CreateViaJsonString.cs | 2 +- ...amespaceDiscoveredDevice_CreateExpanded.cs | 2 +- ...eDiscoveredDevice_CreateViaJsonFilePath.cs | 2 +- ...aceDiscoveredDevice_CreateViaJsonString.cs | 2 +- ...zDeviceRegistryNamespace_CreateExpanded.cs | 2 +- ...RegistryNamespace_CreateViaJsonFilePath.cs | 2 +- ...ceRegistryNamespace_CreateViaJsonString.cs | 2 +- ...ceRegistrySchemaRegistry_CreateExpanded.cs | 2 +- ...trySchemaRegistry_CreateViaJsonFilePath.cs | 2 +- ...istrySchemaRegistry_CreateViaJsonString.cs | 2 +- ...iceRegistrySchemaVersion_CreateExpanded.cs | 2 +- ...strySchemaVersion_CreateViaJsonFilePath.cs | 2 +- ...gistrySchemaVersion_CreateViaJsonString.cs | 2 +- ...ewAzDeviceRegistrySchema_CreateExpanded.cs | 2 +- ...iceRegistrySchema_CreateViaJsonFilePath.cs | 2 +- ...eviceRegistrySchema_CreateViaJsonString.cs | 2 +- ...viceRegistryAssetEndpointProfile_Delete.cs | 6 +- ...yAssetEndpointProfile_DeleteViaIdentity.cs | 6 +- .../RemoveAzDeviceRegistryAsset_Delete.cs | 6 +- ...AzDeviceRegistryAsset_DeleteViaIdentity.cs | 6 +- ...veAzDeviceRegistryNamespaceAsset_Delete.cs | 6 +- ...egistryNamespaceAsset_DeleteViaIdentity.cs | 6 +- ...mespaceAsset_DeleteViaIdentityNamespace.cs | 6 +- ...eAzDeviceRegistryNamespaceDevice_Delete.cs | 6 +- ...gistryNamespaceDevice_DeleteViaIdentity.cs | 6 +- ...espaceDevice_DeleteViaIdentityNamespace.cs | 6 +- ...RegistryNamespaceDiscoveredAsset_Delete.cs | 6 +- ...espaceDiscoveredAsset_DeleteViaIdentity.cs | 6 +- ...coveredAsset_DeleteViaIdentityNamespace.cs | 6 +- ...egistryNamespaceDiscoveredDevice_Delete.cs | 6 +- ...spaceDiscoveredDevice_DeleteViaIdentity.cs | 6 +- ...overedDevice_DeleteViaIdentityNamespace.cs | 6 +- .../RemoveAzDeviceRegistryNamespace_Delete.cs | 6 +- ...viceRegistryNamespace_DeleteViaIdentity.cs | 6 +- ...veAzDeviceRegistrySchemaRegistry_Delete.cs | 6 +- ...egistrySchemaRegistry_DeleteViaIdentity.cs | 6 +- ...oveAzDeviceRegistrySchemaVersion_Delete.cs | 112 ++- ...RegistrySchemaVersion_DeleteViaIdentity.cs | 109 ++- ...rySchemaVersion_DeleteViaIdentitySchema.cs | 112 ++- ...Version_DeleteViaIdentitySchemaRegistry.cs | 113 ++- .../RemoveAzDeviceRegistrySchema_Delete.cs | 111 ++- ...zDeviceRegistrySchema_DeleteViaIdentity.cs | 109 ++- ...ySchema_DeleteViaIdentitySchemaRegistry.cs | 112 ++- ...stryAssetEndpointProfile_UpdateExpanded.cs | 2 +- ...dpointProfile_UpdateViaIdentityExpanded.cs | 2 +- ...etEndpointProfile_UpdateViaJsonFilePath.cs | 2 +- ...ssetEndpointProfile_UpdateViaJsonString.cs | 2 +- ...ateAzDeviceRegistryAsset_UpdateExpanded.cs | 2 +- ...RegistryAsset_UpdateViaIdentityExpanded.cs | 2 +- ...viceRegistryAsset_UpdateViaJsonFilePath.cs | 2 +- ...DeviceRegistryAsset_UpdateViaJsonString.cs | 2 +- ...ceRegistryNamespaceAsset_UpdateExpanded.cs | 14 +- ...amespaceAsset_UpdateViaIdentityExpanded.cs | 14 +- ...sset_UpdateViaIdentityNamespaceExpanded.cs | 14 +- ...tryNamespaceAsset_UpdateViaJsonFilePath.cs | 2 +- ...istryNamespaceAsset_UpdateViaJsonString.cs | 2 +- ...eRegistryNamespaceDevice_UpdateExpanded.cs | 2 +- ...mespaceDevice_UpdateViaIdentityExpanded.cs | 2 +- ...vice_UpdateViaIdentityNamespaceExpanded.cs | 2 +- ...ryNamespaceDevice_UpdateViaJsonFilePath.cs | 2 +- ...stryNamespaceDevice_UpdateViaJsonString.cs | 2 +- ...NamespaceDiscoveredAsset_UpdateExpanded.cs | 36 +- ...scoveredAsset_UpdateViaIdentityExpanded.cs | 36 +- ...sset_UpdateViaIdentityNamespaceExpanded.cs | 36 +- ...ceDiscoveredAsset_UpdateViaJsonFilePath.cs | 2 +- ...paceDiscoveredAsset_UpdateViaJsonString.cs | 2 +- ...amespaceDiscoveredDevice_UpdateExpanded.cs | 2 +- ...coveredDevice_UpdateViaIdentityExpanded.cs | 2 +- ...vice_UpdateViaIdentityNamespaceExpanded.cs | 2 +- ...eDiscoveredDevice_UpdateViaJsonFilePath.cs | 2 +- ...aceDiscoveredDevice_UpdateViaJsonString.cs | 2 +- .../generated/runtime/Context.cs | 2 +- 219 files changed, 5501 insertions(+), 1556 deletions(-) rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceEventDataPoint.PowerShell.cs => NamespaceAssetStatusEventGroup.PowerShell.cs} (66%) create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.TypeConverter.cs create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.cs rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceEventDataPoint.json.cs => NamespaceAssetStatusEventGroup.json.cs} (68%) delete mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.cs create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.PowerShell.cs rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceDiscoveredEventDataPoint.TypeConverter.cs => NamespaceDiscoveredEventGroup.TypeConverter.cs} (83%) create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.cs rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceDiscoveredEventDataPoint.json.cs => NamespaceDiscoveredEventGroup.json.cs} (62%) delete mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.cs create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.PowerShell.cs rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceEventDataPoint.TypeConverter.cs => NamespaceEventGroup.TypeConverter.cs} (85%) create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.cs create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.json.cs create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.PowerShell.cs create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.TypeConverter.cs create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.cs create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.json.cs rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceDiscoveredEventDataPoint.PowerShell.cs => X509CertificateCredentialsUpdate.PowerShell.cs} (59%) create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.TypeConverter.cs create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.cs create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.json.cs diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/Az.DeviceRegistry.format.ps1xml b/generated/DeviceRegistry/DeviceRegistry.Autorest/Az.DeviceRegistry.format.ps1xml index ca0f69ec40b5..127287dcb7fa 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/Az.DeviceRegistry.format.ps1xml +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/Az.DeviceRegistry.format.ps1xml @@ -1797,6 +1797,9 @@ + + + @@ -1816,6 +1819,9 @@ Configuration + + DataSource + DefaultTimeoutInSecond @@ -2311,6 +2317,28 @@ + + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventGroup + + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventGroup#Multiple + + + + + + + + + + + + Name + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusManagementAction @@ -2926,12 +2954,21 @@ + + + + + + + + + @@ -2975,12 +3012,21 @@ DefaultStreamsConfiguration + + Description + DiscoveryId + + DisplayName + DocumentationUri + + ExternalAssetId + HardwareRevision @@ -3032,9 +3078,15 @@ + + + + + + @@ -3078,9 +3130,15 @@ DefaultStreamsConfiguration + + Description + DiscoveryId + + DisplayName + DocumentationUri @@ -3453,10 +3511,10 @@ - + - + @@ -3472,10 +3530,10 @@ - EventConfiguration + DataSource - EventNotifier + EventConfiguration LastUpdatedOn @@ -3492,40 +3550,40 @@ - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventDataPoint + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroup - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventDataPoint#Multiple + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroup#Multiple - - - - + + + + - - DataPointConfiguration - DataSource - LastUpdatedOn + EventGroupConfiguration Name + + TypeRef + @@ -3602,6 +3660,9 @@ + + + @@ -3624,6 +3685,9 @@ + + DataSource + DefaultTimeoutInSecond @@ -3695,10 +3759,10 @@ - + - + @@ -3711,10 +3775,10 @@ - EventConfiguration + DataSource - EventNotifier + EventConfiguration Name @@ -3728,34 +3792,40 @@ - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventDataPoint + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroup - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventDataPoint#Multiple + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroup#Multiple - + - + + + + - DataPointConfiguration + DataSource - DataSource + EventGroupConfiguration Name + + TypeRef + @@ -5093,6 +5163,74 @@ + + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentials + + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentials#Multiple + + + + + + + + + + + + + + + + + + CertificateSecretName + + + IntermediateCertificatesSecretName + + + KeySecretName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsUpdate + + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsUpdate#Multiple + + + + + + + + + + + + + + + + + + CertificateSecretName + + + IntermediateCertificatesSecretName + + + KeySecretName + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509Credentials diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs index 7836ec330e52..d4e4fc189b47 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs @@ -20,10 +20,9 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DeviceRegistry")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.1")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.1")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.2.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1 index 2b8b7a67d674..8100383577bd 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1 @@ -20,7 +20,154 @@ Create a NamespaceAsset .Description Create a NamespaceAsset .Example -New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -ExternalAssetId "my-external-asset-id" -DisplayName "My Asset Display Name" -Manufacturer "Contoso" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -HardwareRevision "1.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" +$eventGroups = @( + @{ + name = "eventGroup1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/EventGroup1" + eventGroupConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}' + typeRef = "eventGroup1TypeRef" + events = @( + @{ + name = "event1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt5" + eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}' + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/testEvent1" + retain = "Keep" + qos = "Qos0" + ttl = 7200 + } + } + ) + typeRef = "event1Ref" + } + ) + }, + @{ + name = "eventGroup2" + events = @( + @{ + name = "event2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt8" + eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}' + destinations = @( + @{ + target = "Storage" + configuration = @{ + path = "/tmp/event2" + } + } + ) + typeRef = "event2Ref" + } + ) + } +) + +$managementGroups = @( + @{ + name = "managementGroup1" + managementGroupConfiguration = '{"retryCount":10,"retryBackoffInterval":15}' + typeRef = "managementGroup1TypeRef" + defaultTopic = "/contoso/managementGroup1" + defaultTimeoutInSeconds = 100 + actions = @( + @{ + name = "action1" + actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}' + targetUri = "/onvif/device_service?ONVIFProfile=Profile1" + typeRef = "action1TypeRef" + topic = "/contoso/managementGroup1/action1" + actionType = "Call" + timeoutInSeconds = 60 + }, + @{ + name = "action2" + actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}' + targetUri = "/onvif/device_service?ONVIFProfile=Profile2" + typeRef = "action2TypeRef" + topic = "/contoso/managementGroup1/action2" + actionType = "Call" + timeoutInSeconds = 60 + } + ) + } +) + +$datasets = @( + @{ + name = "dataset1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc" + }, + @{ + name = "dataSet2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/Oven;i=5" + typeRef = "dataset1TypeRef" + datasetConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}' + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/test2" + retain = "Keep" + qos = "Qos1" + ttl = 3600 + } + } + ) + dataPoints = @( + @{ + name = "dataset1DataPoint1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3" + dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "dataset1DataPoint1TypeRef" + }, + @{ + name = "dataset1DataPoint2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4" + dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "dataset1DataPoint2TypeRef" + } + ) + } +) + +$streams = @( + @{ + name = "stream1" + streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "stream1TypeRef" + destinations = @( + @{ + target = "Storage" + configuration = @{ + path = "/tmp/stream1" + } + } + ) + }, + @{ + name = "stream2" + streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "stream2TypeRef" + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/testStream2" + retain = "Never" + qos = "Qos0" + ttl = 7200 + } + } + ) + } +) + +New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -ExternalAssetId "my-external-asset-id" -DisplayName "My Asset Display Name" -Manufacturer "Contoso" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -HardwareRevision "1.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" -EventGroup $eventGroups -ManagementGroup $managementGroups -Dataset $datasets -Stream $streams .Example New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -JsonFilePath "C:\path\to\asset.json" .Example @@ -56,16 +203,18 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even DEFAULTSTREAMSDESTINATION : Default destinations for a stream. Target : Target destination. -EVENT : Array of events that are part of the asset. Each event can have per-event configuration. - EventNotifier : The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - Name : The name of the event. - [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration. - DataSource : The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - Name : The name of the data point. - [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [Destination >]: Destinations for an event. +EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration. + Name : The name of the event group. + [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset. + [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level. Target : Target destination. - [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [Event >]: Array of events that are part of the event group. + Name : The name of the event. + [DataSource ]: Reference to a data source for a given event. + [Destination >]: Destinations for an event. + [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [TypeRef ]: URI or type definition ID. + [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. [TypeRef ]: URI or type definition ID. MANAGEMENTGROUP : Array of management groups that are part of the asset. Each management group can have a per-group configuration. @@ -79,6 +228,7 @@ MANAGEMENTGROUP : Array of management groups that are part o [Topic ]: The MQTT topic path on which a client will receive the request for the action. [TypeRef ]: URI or type definition ID. [Configuration ]: Stringified JSON that contains connector-specific configuration for the management group. + [DataSource ]: Reference to a data source for a given management group. [DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group. [DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group. [TypeRef ]: URI or type definition ID. @@ -260,10 +410,10 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[]] - # Array of events that are part of the asset. - # Each event can have per-event configuration. - ${Event}, + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[]] + # Array of event groups that are part of the asset. + # Each event group can have per-event group configuration. + ${EventGroup}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1 index 581c9bfac17d..98baca15159e 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1 @@ -29,20 +29,20 @@ $outboundAssigned = @{ $endpointsInbound = @{ "my-inbound-endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "my-inbound-endpoint2" = @{ Address = "https://my-inbound-endpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username" UsernamePasswordCredentialsPasswordSecretName = "my-password" } } -New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -Manufacturer "Contoso" -Model "model123" -OperatingSystem "Linux" -OperatingSystemVersion "1000" -OutboundAssigned $outboundAssigned -EndpointsInbound $endpointsInbound -Enabled +New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -Manufacturer "Contoso" -Model "model123" -OperatingSystem "Linux" -OperatingSystemVersion "1000" -OutboundAssigned $outboundAssigned -EndpointsInbound $endpointsInbound -Enabled .Example New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -JsonFilePath "C:\path\to\device.json" .Example diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 index c506691383ed..eb3d0c50899a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 @@ -20,7 +20,154 @@ Create a NamespaceDiscoveredAsset .Description Create a NamespaceDiscoveredAsset .Example -New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -Manufacturer "Contoso123" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" +$eventGroups = @( + @{ + name = "eventGroup1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/EventGroup1" + eventGroupConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}' + typeRef = "eventGroup1TypeRef" + events = @( + @{ + name = "event1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt5" + eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}' + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/testEvent1" + retain = "Keep" + qos = "Qos0" + ttl = 7200 + } + } + ) + typeRef = "event1Ref" + } + ) + }, + @{ + name = "eventGroup2" + events = @( + @{ + name = "event2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt8" + eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}' + destinations = @( + @{ + target = "Storage" + configuration = @{ + path = "/tmp/event2" + } + } + ) + typeRef = "event2Ref" + } + ) + } +) + +$managementGroups = @( + @{ + name = "managementGroup1" + managementGroupConfiguration = '{"retryCount":10,"retryBackoffInterval":15}' + typeRef = "managementGroup1TypeRef" + defaultTopic = "/contoso/managementGroup1" + defaultTimeoutInSeconds = 100 + actions = @( + @{ + name = "action1" + actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}' + targetUri = "/onvif/device_service?ONVIFProfile=Profile1" + typeRef = "action1TypeRef" + topic = "/contoso/managementGroup1/action1" + actionType = "Call" + timeoutInSeconds = 60 + }, + @{ + name = "action2" + actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}' + targetUri = "/onvif/device_service?ONVIFProfile=Profile2" + typeRef = "action2TypeRef" + topic = "/contoso/managementGroup1/action2" + actionType = "Call" + timeoutInSeconds = 60 + } + ) + } +) + +$datasets = @( + @{ + name = "dataset1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc" + }, + @{ + name = "dataSet2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/Oven;i=5" + typeRef = "dataset1TypeRef" + datasetConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}' + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/test2" + retain = "Keep" + qos = "Qos1" + ttl = 3600 + } + } + ) + dataPoints = @( + @{ + name = "dataset1DataPoint1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3" + dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "dataset1DataPoint1TypeRef" + }, + @{ + name = "dataset1DataPoint2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4" + dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "dataset1DataPoint2TypeRef" + } + ) + } +) + +$streams = @( + @{ + name = "stream1" + streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "stream1TypeRef" + destinations = @( + @{ + target = "Storage" + configuration = @{ + path = "/tmp/stream1" + } + } + ) + }, + @{ + name = "stream2" + streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "stream2TypeRef" + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/testStream2" + retain = "Never" + qos = "Qos0" + ttl = 7200 + } + } + ) + } +) + +New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -Manufacturer "Contoso123" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" -EventGroup $eventGroups -ManagementGroup $managementGroups -Dataset $datasets -Stream $streams .Example New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -JsonFilePath "C:\path\to\discovered-asset.json" .Example @@ -58,18 +205,19 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even DEFAULTSTREAMSDESTINATION : Default destinations for a stream. Target : Target destination. -EVENT : Array of events that are part of the asset. Each event can have per-event configuration. - EventNotifier : The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - Name : The name of the event. - [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration. - DataSource : The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - Name : The name of the data point. - [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [LastUpdatedOn ]: UTC timestamp indicating when the data point was added or modified. - [Destination >]: Destinations for an event. +EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration. + Name : The name of the event group. + [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset. + [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level. Target : Target destination. - [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified. + [Event >]: Array of events that are part of the event group. + Name : The name of the event. + [DataSource ]: Reference to a data source for a given event. + [Destination >]: Destinations for an event. + [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified. + [TypeRef ]: URI or type definition ID. + [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. [TypeRef ]: URI or type definition ID. MANAGEMENTGROUP : Array of management groups that are part of the asset. Each management group can have a per-group configuration. @@ -83,6 +231,7 @@ MANAGEMENTGROUP : Array of management gro [TimeoutInSecond ]: Response timeout for the action. [Topic ]: The MQTT topic path on which a client will receive the request for the action. [TypeRef ]: URI or type definition ID. + [DataSource ]: Reference to a data source for a given management group. [DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group. [DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group. [LastUpdatedOn ]: Timestamp (in UTC) indicating when the management group was added or modified. @@ -219,6 +368,12 @@ param( # Default destinations for a stream. ${DefaultStreamsDestination}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] + [System.String] + # Human-readable description of the asset. + ${Description}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] [System.String] @@ -237,6 +392,12 @@ param( # Identifier used to detect changes in the asset. ${DiscoveryId}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] + [System.String] + # Human-readable display name. + ${DisplayName}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] [System.String] @@ -246,10 +407,16 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent[]] - # Array of events that are part of the asset. - # Each event can have per-event configuration. - ${Event}, + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup[]] + # Array of event groups that are part of the asset. + # Each event group can have per-event group configuration. + ${EventGroup}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] + [System.String] + # Asset ID provided by the customer. + ${ExternalAssetId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 index a6c625a4323f..4ce129ecbae3 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 @@ -22,24 +22,24 @@ Create a NamespaceDiscoveredDevice .Example $outboundAssigned = @{ "myendpoint2" = @{ - Address = "https://myendpoint2.westeurope-1.edge.azure.net" + Address = "https://myendpoint2.westeurope-1.iothub.azure.net" EndpointType = "Microsoft.Devices/IoTHubs" } } $endpointInbound = @{ "endpoint1" = @{ Address = "https://myendpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" Version = "1.0" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" Version = "2.0" } } -New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -Location "East US" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DiscoveryId "discovery-123" -Version "1.0.0" -Manufacturer "Contoso" -Model "Device-X1" -OperatingSystem "Linux" -OperatingSystemVersion "Ubuntu 20.04" -OutboundAssigned $outboundAssigned -EndpointInbound $endpointInbound +New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -Location "East US" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DiscoveryId "discovery-123" -Version "1.0.0" -Manufacturer "Contoso" -Model "Device-X1" -OperatingSystem "Linux" -OperatingSystemVersion "Ubuntu 20.04" -OutboundAssigned $outboundAssigned -EndpointInbound $endpointInbound .Example New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -JsonFilePath "C:\path\to\device-config.json" .Example diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.ps1 index a9f3db063d3a..03b8d0d8a6d3 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -3864,7 +3864,154 @@ Create a NamespaceAsset .Description Create a NamespaceAsset .Example -New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -ExternalAssetId "my-external-asset-id" -DisplayName "My Asset Display Name" -Manufacturer "Contoso" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -HardwareRevision "1.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" +$eventGroups = @( + @{ + name = "eventGroup1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/EventGroup1" + eventGroupConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}' + typeRef = "eventGroup1TypeRef" + events = @( + @{ + name = "event1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt5" + eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}' + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/testEvent1" + retain = "Keep" + qos = "Qos0" + ttl = 7200 + } + } + ) + typeRef = "event1Ref" + } + ) + }, + @{ + name = "eventGroup2" + events = @( + @{ + name = "event2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt8" + eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}' + destinations = @( + @{ + target = "Storage" + configuration = @{ + path = "/tmp/event2" + } + } + ) + typeRef = "event2Ref" + } + ) + } +) + +$managementGroups = @( + @{ + name = "managementGroup1" + managementGroupConfiguration = '{"retryCount":10,"retryBackoffInterval":15}' + typeRef = "managementGroup1TypeRef" + defaultTopic = "/contoso/managementGroup1" + defaultTimeoutInSeconds = 100 + actions = @( + @{ + name = "action1" + actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}' + targetUri = "/onvif/device_service?ONVIFProfile=Profile1" + typeRef = "action1TypeRef" + topic = "/contoso/managementGroup1/action1" + actionType = "Call" + timeoutInSeconds = 60 + }, + @{ + name = "action2" + actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}' + targetUri = "/onvif/device_service?ONVIFProfile=Profile2" + typeRef = "action2TypeRef" + topic = "/contoso/managementGroup1/action2" + actionType = "Call" + timeoutInSeconds = 60 + } + ) + } +) + +$datasets = @( + @{ + name = "dataset1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc" + }, + @{ + name = "dataSet2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/Oven;i=5" + typeRef = "dataset1TypeRef" + datasetConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}' + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/test2" + retain = "Keep" + qos = "Qos1" + ttl = 3600 + } + } + ) + dataPoints = @( + @{ + name = "dataset1DataPoint1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3" + dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "dataset1DataPoint1TypeRef" + }, + @{ + name = "dataset1DataPoint2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4" + dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "dataset1DataPoint2TypeRef" + } + ) + } +) + +$streams = @( + @{ + name = "stream1" + streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "stream1TypeRef" + destinations = @( + @{ + target = "Storage" + configuration = @{ + path = "/tmp/stream1" + } + } + ) + }, + @{ + name = "stream2" + streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "stream2TypeRef" + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/testStream2" + retain = "Never" + qos = "Qos0" + ttl = 7200 + } + } + ) + } +) + +New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -ExternalAssetId "my-external-asset-id" -DisplayName "My Asset Display Name" -Manufacturer "Contoso" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -HardwareRevision "1.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" -EventGroup $eventGroups -ManagementGroup $managementGroups -Dataset $datasets -Stream $streams .Example New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -JsonFilePath "C:\path\to\asset.json" .Example @@ -3900,16 +4047,18 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even DEFAULTSTREAMSDESTINATION : Default destinations for a stream. Target : Target destination. -EVENT : Array of events that are part of the asset. Each event can have per-event configuration. - EventNotifier : The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - Name : The name of the event. - [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration. - DataSource : The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - Name : The name of the data point. - [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [Destination >]: Destinations for an event. +EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration. + Name : The name of the event group. + [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset. + [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level. Target : Target destination. - [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [Event >]: Array of events that are part of the event group. + Name : The name of the event. + [DataSource ]: Reference to a data source for a given event. + [Destination >]: Destinations for an event. + [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [TypeRef ]: URI or type definition ID. + [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. [TypeRef ]: URI or type definition ID. MANAGEMENTGROUP : Array of management groups that are part of the asset. Each management group can have a per-group configuration. @@ -3923,6 +4072,7 @@ MANAGEMENTGROUP : Array of management groups that are part o [Topic ]: The MQTT topic path on which a client will receive the request for the action. [TypeRef ]: URI or type definition ID. [Configuration ]: Stringified JSON that contains connector-specific configuration for the management group. + [DataSource ]: Reference to a data source for a given management group. [DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group. [DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group. [TypeRef ]: URI or type definition ID. @@ -4104,10 +4254,10 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[]] - # Array of events that are part of the asset. - # Each event can have per-event configuration. - ${Event}, + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[]] + # Array of event groups that are part of the asset. + # Each event group can have per-event group configuration. + ${EventGroup}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] @@ -4367,20 +4517,20 @@ $outboundAssigned = @{ $endpointsInbound = @{ "my-inbound-endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "my-inbound-endpoint2" = @{ Address = "https://my-inbound-endpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username" UsernamePasswordCredentialsPasswordSecretName = "my-password" } } -New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -Manufacturer "Contoso" -Model "model123" -OperatingSystem "Linux" -OperatingSystemVersion "1000" -OutboundAssigned $outboundAssigned -EndpointsInbound $endpointsInbound -Enabled +New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -Manufacturer "Contoso" -Model "model123" -OperatingSystem "Linux" -OperatingSystemVersion "1000" -OutboundAssigned $outboundAssigned -EndpointsInbound $endpointsInbound -Enabled .Example New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -JsonFilePath "C:\path\to\device.json" .Example @@ -4698,7 +4848,154 @@ Create a NamespaceDiscoveredAsset .Description Create a NamespaceDiscoveredAsset .Example -New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -Manufacturer "Contoso123" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" +$eventGroups = @( + @{ + name = "eventGroup1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/EventGroup1" + eventGroupConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}' + typeRef = "eventGroup1TypeRef" + events = @( + @{ + name = "event1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt5" + eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}' + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/testEvent1" + retain = "Keep" + qos = "Qos0" + ttl = 7200 + } + } + ) + typeRef = "event1Ref" + } + ) + }, + @{ + name = "eventGroup2" + events = @( + @{ + name = "event2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt8" + eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}' + destinations = @( + @{ + target = "Storage" + configuration = @{ + path = "/tmp/event2" + } + } + ) + typeRef = "event2Ref" + } + ) + } +) + +$managementGroups = @( + @{ + name = "managementGroup1" + managementGroupConfiguration = '{"retryCount":10,"retryBackoffInterval":15}' + typeRef = "managementGroup1TypeRef" + defaultTopic = "/contoso/managementGroup1" + defaultTimeoutInSeconds = 100 + actions = @( + @{ + name = "action1" + actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}' + targetUri = "/onvif/device_service?ONVIFProfile=Profile1" + typeRef = "action1TypeRef" + topic = "/contoso/managementGroup1/action1" + actionType = "Call" + timeoutInSeconds = 60 + }, + @{ + name = "action2" + actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}' + targetUri = "/onvif/device_service?ONVIFProfile=Profile2" + typeRef = "action2TypeRef" + topic = "/contoso/managementGroup1/action2" + actionType = "Call" + timeoutInSeconds = 60 + } + ) + } +) + +$datasets = @( + @{ + name = "dataset1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc" + }, + @{ + name = "dataSet2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/Oven;i=5" + typeRef = "dataset1TypeRef" + datasetConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}' + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/test2" + retain = "Keep" + qos = "Qos1" + ttl = 3600 + } + } + ) + dataPoints = @( + @{ + name = "dataset1DataPoint1" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3" + dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "dataset1DataPoint1TypeRef" + }, + @{ + name = "dataset1DataPoint2" + dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4" + dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "dataset1DataPoint2TypeRef" + } + ) + } +) + +$streams = @( + @{ + name = "stream1" + streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "stream1TypeRef" + destinations = @( + @{ + target = "Storage" + configuration = @{ + path = "/tmp/stream1" + } + } + ) + }, + @{ + name = "stream2" + streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}' + typeRef = "stream2TypeRef" + destinations = @( + @{ + target = "Mqtt" + configuration = @{ + topic = "/contoso/testStream2" + retain = "Never" + qos = "Qos0" + ttl = 7200 + } + } + ) + } +) + +New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -Manufacturer "Contoso123" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" -EventGroup $eventGroups -ManagementGroup $managementGroups -Dataset $datasets -Stream $streams .Example New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -JsonFilePath "C:\path\to\discovered-asset.json" .Example @@ -4736,18 +5033,19 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even DEFAULTSTREAMSDESTINATION : Default destinations for a stream. Target : Target destination. -EVENT : Array of events that are part of the asset. Each event can have per-event configuration. - EventNotifier : The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - Name : The name of the event. - [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration. - DataSource : The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - Name : The name of the data point. - [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [LastUpdatedOn ]: UTC timestamp indicating when the data point was added or modified. - [Destination >]: Destinations for an event. +EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration. + Name : The name of the event group. + [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset. + [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level. Target : Target destination. - [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified. + [Event >]: Array of events that are part of the event group. + Name : The name of the event. + [DataSource ]: Reference to a data source for a given event. + [Destination >]: Destinations for an event. + [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified. + [TypeRef ]: URI or type definition ID. + [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. [TypeRef ]: URI or type definition ID. MANAGEMENTGROUP : Array of management groups that are part of the asset. Each management group can have a per-group configuration. @@ -4761,6 +5059,7 @@ MANAGEMENTGROUP : Array of management gro [TimeoutInSecond ]: Response timeout for the action. [Topic ]: The MQTT topic path on which a client will receive the request for the action. [TypeRef ]: URI or type definition ID. + [DataSource ]: Reference to a data source for a given management group. [DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group. [DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group. [LastUpdatedOn ]: Timestamp (in UTC) indicating when the management group was added or modified. @@ -4897,6 +5196,12 @@ param( # Default destinations for a stream. ${DefaultStreamsDestination}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] + [System.String] + # Human-readable description of the asset. + ${Description}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] [System.String] @@ -4915,6 +5220,12 @@ param( # Identifier used to detect changes in the asset. ${DiscoveryId}, + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] + [System.String] + # Human-readable display name. + ${DisplayName}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] [System.String] @@ -4924,10 +5235,16 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent[]] - # Array of events that are part of the asset. - # Each event can have per-event configuration. - ${Event}, + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup[]] + # Array of event groups that are part of the asset. + # Each event group can have per-event group configuration. + ${EventGroup}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] + [System.String] + # Asset ID provided by the customer. + ${ExternalAssetId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] @@ -5180,24 +5497,24 @@ Create a NamespaceDiscoveredDevice .Example $outboundAssigned = @{ "myendpoint2" = @{ - Address = "https://myendpoint2.westeurope-1.edge.azure.net" + Address = "https://myendpoint2.westeurope-1.iothub.azure.net" EndpointType = "Microsoft.Devices/IoTHubs" } } $endpointInbound = @{ "endpoint1" = @{ Address = "https://myendpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" Version = "1.0" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" Version = "2.0" } } -New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -Location "East US" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DiscoveryId "discovery-123" -Version "1.0.0" -Manufacturer "Contoso" -Model "Device-X1" -OperatingSystem "Linux" -OperatingSystemVersion "Ubuntu 20.04" -OutboundAssigned $outboundAssigned -EndpointInbound $endpointInbound +New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -Location "East US" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DiscoveryId "discovery-123" -Version "1.0.0" -Manufacturer "Contoso" -Model "Device-X1" -OperatingSystem "Linux" -OperatingSystemVersion "Ubuntu 20.04" -OutboundAssigned $outboundAssigned -EndpointInbound $endpointInbound .Example New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -JsonFilePath "C:\path\to\device-config.json" .Example @@ -8674,6 +8991,12 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -8694,6 +9017,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -8938,6 +9267,12 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -8958,6 +9293,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -9880,16 +10221,18 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even DEFAULTSTREAMSDESTINATION : Default destinations for a stream. Target : Target destination. -EVENT : Array of events that are part of the asset. Each event can have per-event configuration. - EventNotifier : The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - Name : The name of the event. - [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration. - DataSource : The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - Name : The name of the data point. - [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [Destination >]: Destinations for an event. +EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration. + Name : The name of the event group. + [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset. + [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level. Target : Target destination. - [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [Event >]: Array of events that are part of the event group. + Name : The name of the event. + [DataSource ]: Reference to a data source for a given event. + [Destination >]: Destinations for an event. + [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [TypeRef ]: URI or type definition ID. + [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. [TypeRef ]: URI or type definition ID. INPUTOBJECT : Identity Parameter @@ -9920,6 +10263,7 @@ MANAGEMENTGROUP : Array of management groups that are part o [Topic ]: The MQTT topic path on which a client will receive the request for the action. [TypeRef ]: URI or type definition ID. [Configuration ]: Stringified JSON that contains connector-specific configuration for the management group. + [DataSource ]: Reference to a data source for a given management group. [DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group. [DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group. [TypeRef ]: URI or type definition ID. @@ -10130,10 +10474,10 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[]] - # Array of events that are part of the asset. - # Each event can have per-event configuration. - ${Event}, + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[]] + # Array of event groups that are part of the asset. + # Each event group can have per-event group configuration. + ${EventGroup}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] @@ -10403,13 +10747,13 @@ Update a NamespaceDevice $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" @@ -10423,7 +10767,7 @@ $updateJson = '{ "endpointsInbound": { "endpoint1": { "address": "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net", - "endpointType": "Microsoft.IotHub", + "endpointType": "Microsoft.Devices/IotHubs", "authentication": { "method": "Certificate", "x509Credentials": { @@ -10433,7 +10777,7 @@ $updateJson = '{ }, "endpoint2": { "address": "https://my-inbound-endpoint2.westeurope-1.iothub.azure.net", - "endpointType": "Microsoft.IotHub", + "endpointType": "Microsoft.Devices/IotHubs", "authentication": { "method": "UsernamePassword", "usernamePasswordCredentials": { @@ -10457,13 +10801,13 @@ $namespaceIdentity = @{ $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" @@ -10474,13 +10818,13 @@ Update-AzDeviceRegistryNamespaceDevice -NamespaceInputObject $namespaceIdentity $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" @@ -10881,18 +11225,19 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even DEFAULTSTREAMSDESTINATION : Default destinations for a stream. Target : Target destination. -EVENT : Array of events that are part of the asset. Each event can have per-event configuration. - EventNotifier : The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - Name : The name of the event. - [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration. - DataSource : The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - Name : The name of the data point. - [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [LastUpdatedOn ]: UTC timestamp indicating when the data point was added or modified. - [Destination >]: Destinations for an event. +EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration. + Name : The name of the event group. + [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset. + [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level. Target : Target destination. - [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified. + [Event >]: Array of events that are part of the event group. + Name : The name of the event. + [DataSource ]: Reference to a data source for a given event. + [Destination >]: Destinations for an event. + [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified. + [TypeRef ]: URI or type definition ID. + [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. [TypeRef ]: URI or type definition ID. INPUTOBJECT : Identity Parameter @@ -10923,6 +11268,7 @@ MANAGEMENTGROUP : Array of management gro [TimeoutInSecond ]: Response timeout for the action. [Topic ]: The MQTT topic path on which a client will receive the request for the action. [TypeRef ]: URI or type definition ID. + [DataSource ]: Reference to a data source for a given management group. [DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group. [DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group. [LastUpdatedOn ]: Timestamp (in UTC) indicating when the management group was added or modified. @@ -11099,6 +11445,14 @@ param( # Default destinations for a stream. ${DefaultStreamsDestination}, + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] + [System.String] + # Human-readable description of the asset. + ${Description}, + [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] @@ -11123,6 +11477,14 @@ param( # Identifier used to detect changes in the asset. ${DiscoveryId}, + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] + [System.String] + # Human-readable display name. + ${DisplayName}, + [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] @@ -11136,10 +11498,10 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent[]] - # Array of events that are part of the asset. - # Each event can have per-event configuration. - ${Event}, + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup[]] + # Array of event groups that are part of the asset. + # Each event group can have per-event group configuration. + ${EventGroup}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] @@ -11417,13 +11779,13 @@ Update a NamespaceDiscoveredDevice $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" @@ -11437,7 +11799,7 @@ $updateJson = '{ "endpointsInbound": { "endpoint1": { "address": "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net", - "endpointType": "Microsoft.IotHub", + "endpointType": "Microsoft.Devices/IotHubs", "authentication": { "method": "Certificate", "x509Credentials": { @@ -11447,7 +11809,7 @@ $updateJson = '{ }, "endpoint2": { "address": "https://my-inbound-endpoint2.westeurope-1.iothub.azure.net", - "endpointType": "Microsoft.IotHub", + "endpointType": "Microsoft.Devices/IotHubs", "authentication": { "method": "UsernamePassword", "usernamePasswordCredentials": { @@ -11471,13 +11833,13 @@ $namespaceIdentity = @{ $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" @@ -11488,13 +11850,13 @@ Update-AzDeviceRegistryNamespaceDiscoveredDevice -NamespaceInputObject $namespac $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1 index 7ac015e27855..162cbfe779ce 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1 @@ -132,6 +132,12 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -152,6 +158,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] [System.Management.Automation.SwitchParameter] diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1 index 141d453e1bfc..010c68f7ab84 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1 @@ -161,6 +161,12 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -181,6 +187,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')] [System.Management.Automation.SwitchParameter] diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1 index 6e8997cd1a47..19644dc133aa 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1 @@ -72,16 +72,18 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even DEFAULTSTREAMSDESTINATION : Default destinations for a stream. Target : Target destination. -EVENT : Array of events that are part of the asset. Each event can have per-event configuration. - EventNotifier : The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - Name : The name of the event. - [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration. - DataSource : The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - Name : The name of the data point. - [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [Destination >]: Destinations for an event. +EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration. + Name : The name of the event group. + [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset. + [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level. Target : Target destination. - [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [Event >]: Array of events that are part of the event group. + Name : The name of the event. + [DataSource ]: Reference to a data source for a given event. + [Destination >]: Destinations for an event. + [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [TypeRef ]: URI or type definition ID. + [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. [TypeRef ]: URI or type definition ID. INPUTOBJECT : Identity Parameter @@ -112,6 +114,7 @@ MANAGEMENTGROUP : Array of management groups that are part o [Topic ]: The MQTT topic path on which a client will receive the request for the action. [TypeRef ]: URI or type definition ID. [Configuration ]: Stringified JSON that contains connector-specific configuration for the management group. + [DataSource ]: Reference to a data source for a given management group. [DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group. [DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group. [TypeRef ]: URI or type definition ID. @@ -322,10 +325,10 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[]] - # Array of events that are part of the asset. - # Each event can have per-event configuration. - ${Event}, + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[]] + # Array of event groups that are part of the asset. + # Each event group can have per-event group configuration. + ${EventGroup}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1 index cbc5a1875502..19074aa0ee7a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1 @@ -23,13 +23,13 @@ Update a NamespaceDevice $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" @@ -43,7 +43,7 @@ $updateJson = '{ "endpointsInbound": { "endpoint1": { "address": "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net", - "endpointType": "Microsoft.IotHub", + "endpointType": "Microsoft.Devices/IotHubs", "authentication": { "method": "Certificate", "x509Credentials": { @@ -53,7 +53,7 @@ $updateJson = '{ }, "endpoint2": { "address": "https://my-inbound-endpoint2.westeurope-1.iothub.azure.net", - "endpointType": "Microsoft.IotHub", + "endpointType": "Microsoft.Devices/IotHubs", "authentication": { "method": "UsernamePassword", "usernamePasswordCredentials": { @@ -77,13 +77,13 @@ $namespaceIdentity = @{ $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" @@ -94,13 +94,13 @@ Update-AzDeviceRegistryNamespaceDevice -NamespaceInputObject $namespaceIdentity $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 index 5c1a0ab3f7a1..587145b6936a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 @@ -74,18 +74,19 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even DEFAULTSTREAMSDESTINATION : Default destinations for a stream. Target : Target destination. -EVENT : Array of events that are part of the asset. Each event can have per-event configuration. - EventNotifier : The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - Name : The name of the event. - [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration. - DataSource : The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - Name : The name of the data point. - [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [LastUpdatedOn ]: UTC timestamp indicating when the data point was added or modified. - [Destination >]: Destinations for an event. +EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration. + Name : The name of the event group. + [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset. + [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level. Target : Target destination. - [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. - [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified. + [Event >]: Array of events that are part of the event group. + Name : The name of the event. + [DataSource ]: Reference to a data source for a given event. + [Destination >]: Destinations for an event. + [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. + [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified. + [TypeRef ]: URI or type definition ID. + [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize. [TypeRef ]: URI or type definition ID. INPUTOBJECT : Identity Parameter @@ -116,6 +117,7 @@ MANAGEMENTGROUP : Array of management gro [TimeoutInSecond ]: Response timeout for the action. [Topic ]: The MQTT topic path on which a client will receive the request for the action. [TypeRef ]: URI or type definition ID. + [DataSource ]: Reference to a data source for a given management group. [DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group. [DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group. [LastUpdatedOn ]: Timestamp (in UTC) indicating when the management group was added or modified. @@ -292,6 +294,14 @@ param( # Default destinations for a stream. ${DefaultStreamsDestination}, + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] + [System.String] + # Human-readable description of the asset. + ${Description}, + [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] @@ -316,6 +326,14 @@ param( # Identifier used to detect changes in the asset. ${DiscoveryId}, + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] + [System.String] + # Human-readable display name. + ${DisplayName}, + [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] @@ -329,10 +347,10 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent[]] - # Array of events that are part of the asset. - # Each event can have per-event configuration. - ${Event}, + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup[]] + # Array of event groups that are part of the asset. + # Each event group can have per-event group configuration. + ${EventGroup}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 index e18126aa9f27..d743095631c5 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 @@ -23,13 +23,13 @@ Update a NamespaceDiscoveredDevice $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" @@ -43,7 +43,7 @@ $updateJson = '{ "endpointsInbound": { "endpoint1": { "address": "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net", - "endpointType": "Microsoft.IotHub", + "endpointType": "Microsoft.Devices/IotHubs", "authentication": { "method": "Certificate", "x509Credentials": { @@ -53,7 +53,7 @@ $updateJson = '{ }, "endpoint2": { "address": "https://my-inbound-endpoint2.westeurope-1.iothub.azure.net", - "endpointType": "Microsoft.IotHub", + "endpointType": "Microsoft.Devices/IotHubs", "authentication": { "method": "UsernamePassword", "usernamePasswordCredentials": { @@ -77,13 +77,13 @@ $namespaceIdentity = @{ $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" @@ -94,13 +94,13 @@ Update-AzDeviceRegistryNamespaceDiscoveredDevice -NamespaceInputObject $namespac $endpointsInbound = @{ "endpoint1" = @{ Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "Certificate" X509CredentialsCertificateSecretName = "my-certificate" } "endpoint2" = @{ Address = "https://myendpoint2.westeurope-1.iothub.azure.net" - EndpointType = "Microsoft.IotHub" + EndpointType = "Microsoft.Devices/IotHubs" AuthenticationMethod = "UsernamePassword" UsernamePasswordCredentialsUsernameSecretName = "my-username-secret" UsernamePasswordCredentialsPasswordSecretName = "my-password-secret" diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generate-info.json b/generated/DeviceRegistry/DeviceRegistry.Autorest/generate-info.json index 76988ef5d1b3..442121f3f16c 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generate-info.json +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "fbbaa583-42e3-48ab-a0fe-66a90c2d7cc7" + "generate_Id": "cbbc2426-6ad9-42be-8c66-b09cd9cb8cbc" } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/DeviceRegistry.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/DeviceRegistry.cs index 15bb91948b64..2a173f442d58 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/DeviceRegistry.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/DeviceRegistry.cs @@ -30,7 +30,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesCreateOrReplace(string subscriptionId, string resourceGroupName, string assetEndpointProfileName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -77,7 +77,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesCreateOrReplaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -134,7 +134,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesCreateOrReplaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -194,7 +194,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesCreateOrReplaceViaJsonString(string subscriptionId, string resourceGroupName, string assetEndpointProfileName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -240,7 +240,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesCreateOrReplaceViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string assetEndpointProfileName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -287,7 +287,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesCreateOrReplaceWithResult(string subscriptionId, string resourceGroupName, string assetEndpointProfileName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -663,7 +663,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesDelete(string subscriptionId, string resourceGroupName, string assetEndpointProfileName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -705,7 +705,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -937,7 +937,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesGet(string subscriptionId, string resourceGroupName, string assetEndpointProfileName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -978,7 +978,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1029,7 +1029,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1082,7 +1082,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesGetWithResult(string subscriptionId, string resourceGroupName, string assetEndpointProfileName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1261,7 +1261,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1301,7 +1301,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1350,7 +1350,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1400,7 +1400,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1576,7 +1576,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1614,7 +1614,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1660,7 +1660,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1706,7 +1706,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1880,7 +1880,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesUpdate(string subscriptionId, string resourceGroupName, string assetEndpointProfileName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfileUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1927,7 +1927,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfileUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1984,7 +1984,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfileUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2044,7 +2044,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string assetEndpointProfileName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2090,7 +2090,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string assetEndpointProfileName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2137,7 +2137,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetEndpointProfilesUpdateWithResult(string subscriptionId, string resourceGroupName, string assetEndpointProfileName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfileUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2514,7 +2514,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsCreateOrReplace(string subscriptionId, string resourceGroupName, string assetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2561,7 +2561,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsCreateOrReplaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2618,7 +2618,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsCreateOrReplaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2678,7 +2678,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsCreateOrReplaceViaJsonString(string subscriptionId, string resourceGroupName, string assetName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2724,7 +2724,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsCreateOrReplaceViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string assetName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2771,7 +2771,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsCreateOrReplaceWithResult(string subscriptionId, string resourceGroupName, string assetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3143,7 +3143,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsDelete(string subscriptionId, string resourceGroupName, string assetName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3185,7 +3185,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3417,7 +3417,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsGet(string subscriptionId, string resourceGroupName, string assetName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3458,7 +3458,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3509,7 +3509,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3562,7 +3562,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsGetWithResult(string subscriptionId, string resourceGroupName, string assetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3741,7 +3741,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3781,7 +3781,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3830,7 +3830,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3880,7 +3880,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4054,7 +4054,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4092,7 +4092,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4138,7 +4138,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4184,7 +4184,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4354,7 +4354,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsUpdate(string subscriptionId, string resourceGroupName, string assetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4401,7 +4401,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4458,7 +4458,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4518,7 +4518,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string assetName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4564,7 +4564,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string assetName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4611,7 +4611,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task AssetsUpdateWithResult(string subscriptionId, string resourceGroupName, string assetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4983,7 +4983,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task BillingContainersGet(string subscriptionId, string billingContainerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5022,7 +5022,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task BillingContainersGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5070,7 +5070,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task BillingContainersGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5119,7 +5119,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task BillingContainersGetWithResult(string subscriptionId, string billingContainerName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5291,7 +5291,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task BillingContainersListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5329,7 +5329,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task BillingContainersListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5375,7 +5375,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task BillingContainersListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5421,7 +5421,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task BillingContainersListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5596,7 +5596,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsCreateOrReplace(string subscriptionId, string resourceGroupName, string namespaceName, string assetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5645,7 +5645,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsCreateOrReplaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5705,7 +5705,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsCreateOrReplaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5769,7 +5769,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsCreateOrReplaceViaJsonString(string subscriptionId, string resourceGroupName, string namespaceName, string assetName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5818,7 +5818,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsCreateOrReplaceViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string assetName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5868,7 +5868,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsCreateOrReplaceWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string assetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6250,7 +6250,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsDelete(string subscriptionId, string resourceGroupName, string namespaceName, string assetName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6294,7 +6294,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6535,7 +6535,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsGet(string subscriptionId, string resourceGroupName, string namespaceName, string assetName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6578,7 +6578,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6632,7 +6632,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6689,7 +6689,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsGetWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string assetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6876,7 +6876,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsListByResourceGroup(string subscriptionId, string resourceGroupName, string namespaceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6918,7 +6918,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6970,7 +6970,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7024,7 +7024,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, string namespaceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7210,7 +7210,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsUpdate(string subscriptionId, string resourceGroupName, string namespaceName, string assetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7259,7 +7259,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7319,7 +7319,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7383,7 +7383,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string namespaceName, string assetName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7432,7 +7432,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string assetName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7482,7 +7482,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceAssetsUpdateWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string assetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7865,7 +7865,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesCreateOrReplace(string subscriptionId, string resourceGroupName, string namespaceName, string deviceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7914,7 +7914,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesCreateOrReplaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7974,7 +7974,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesCreateOrReplaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8038,7 +8038,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesCreateOrReplaceViaJsonString(string subscriptionId, string resourceGroupName, string namespaceName, string deviceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8087,7 +8087,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesCreateOrReplaceViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string deviceName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8137,7 +8137,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesCreateOrReplaceWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string deviceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8519,7 +8519,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesDelete(string subscriptionId, string resourceGroupName, string namespaceName, string deviceName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8563,7 +8563,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8804,7 +8804,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesGet(string subscriptionId, string resourceGroupName, string namespaceName, string deviceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8847,7 +8847,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8901,7 +8901,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8958,7 +8958,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesGetWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string deviceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9145,7 +9145,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesListByResourceGroup(string subscriptionId, string resourceGroupName, string namespaceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9187,7 +9187,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9239,7 +9239,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9293,7 +9293,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, string namespaceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9481,7 +9481,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesUpdate(string subscriptionId, string resourceGroupName, string namespaceName, string deviceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDeviceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9530,7 +9530,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDeviceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9590,7 +9590,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDeviceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9654,7 +9654,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string namespaceName, string deviceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9703,7 +9703,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string deviceName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9753,7 +9753,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDevicesUpdateWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string deviceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDeviceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10136,7 +10136,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsCreateOrReplace(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredAssetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10185,7 +10185,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsCreateOrReplaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10245,7 +10245,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsCreateOrReplaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10309,7 +10309,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsCreateOrReplaceViaJsonString(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredAssetName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10358,7 +10358,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsCreateOrReplaceViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredAssetName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10408,7 +10408,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsCreateOrReplaceWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredAssetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10792,7 +10792,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsDelete(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredAssetName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10836,7 +10836,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11077,7 +11077,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsGet(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredAssetName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11120,7 +11120,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11174,7 +11174,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11231,7 +11231,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsGetWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredAssetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11420,7 +11420,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsListByResourceGroup(string subscriptionId, string resourceGroupName, string namespaceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11462,7 +11462,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11514,7 +11514,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11568,7 +11568,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, string namespaceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11756,7 +11756,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsUpdate(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredAssetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11805,7 +11805,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11865,7 +11865,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11929,7 +11929,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsUpdateViaJsonString(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredAssetName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11978,7 +11978,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredAssetName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12028,7 +12028,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredAssetsUpdateWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredAssetName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12413,7 +12413,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesCreateOrReplace(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredDeviceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12462,7 +12462,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesCreateOrReplaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12522,7 +12522,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesCreateOrReplaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12586,7 +12586,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesCreateOrReplaceViaJsonString(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredDeviceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12635,7 +12635,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesCreateOrReplaceViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredDeviceName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12685,7 +12685,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesCreateOrReplaceWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredDeviceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13069,7 +13069,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesDelete(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredDeviceName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13113,7 +13113,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13354,7 +13354,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesGet(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredDeviceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13397,7 +13397,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13451,7 +13451,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13508,7 +13508,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesGetWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredDeviceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13697,7 +13697,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesListByResourceGroup(string subscriptionId, string resourceGroupName, string namespaceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13739,7 +13739,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13791,7 +13791,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13845,7 +13845,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, string namespaceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14033,7 +14033,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesUpdate(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredDeviceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDeviceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14082,7 +14082,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDeviceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14142,7 +14142,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDeviceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14206,7 +14206,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredDeviceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14255,7 +14255,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredDeviceName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14305,7 +14305,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespaceDiscoveredDevicesUpdateWithResult(string subscriptionId, string resourceGroupName, string namespaceName, string discoveredDeviceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDeviceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14689,7 +14689,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesCreateOrReplace(string subscriptionId, string resourceGroupName, string namespaceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespace body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14736,7 +14736,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesCreateOrReplaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespace body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14793,7 +14793,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesCreateOrReplaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespace body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14853,7 +14853,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesCreateOrReplaceViaJsonString(string subscriptionId, string resourceGroupName, string namespaceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14899,7 +14899,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesCreateOrReplaceViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string namespaceName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14946,7 +14946,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesCreateOrReplaceWithResult(string subscriptionId, string resourceGroupName, string namespaceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespace body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15320,7 +15320,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesDelete(string subscriptionId, string resourceGroupName, string namespaceName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15362,7 +15362,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15594,7 +15594,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesGet(string subscriptionId, string resourceGroupName, string namespaceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15635,7 +15635,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15686,7 +15686,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15739,7 +15739,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesGetWithResult(string subscriptionId, string resourceGroupName, string namespaceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15918,7 +15918,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15958,7 +15958,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16007,7 +16007,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16057,7 +16057,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16231,7 +16231,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16269,7 +16269,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16315,7 +16315,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16361,7 +16361,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16533,7 +16533,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesMigrate(string subscriptionId, string resourceGroupName, string namespaceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceMigrateRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16581,7 +16581,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesMigrateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceMigrateRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16639,7 +16639,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesMigrateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceMigrateRequest body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16700,7 +16700,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesMigrateViaJsonString(string subscriptionId, string resourceGroupName, string namespaceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16747,7 +16747,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesMigrateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string namespaceName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16795,7 +16795,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesMigrateWithResult(string subscriptionId, string resourceGroupName, string namespaceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceMigrateRequest body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17171,7 +17171,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesUpdate(string subscriptionId, string resourceGroupName, string namespaceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17218,7 +17218,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17275,7 +17275,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17335,7 +17335,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string namespaceName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17381,7 +17381,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string namespaceName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17428,7 +17428,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task NamespacesUpdateWithResult(string subscriptionId, string resourceGroupName, string namespaceName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17801,7 +17801,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task OperationStatusGet(string subscriptionId, string location, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17842,7 +17842,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task OperationStatusGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17893,7 +17893,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task OperationStatusGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17946,7 +17946,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task OperationStatusGetWithResult(string subscriptionId, string location, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18120,7 +18120,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18156,7 +18156,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18199,7 +18199,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task OperationsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18241,7 +18241,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task OperationsListWithResult(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18407,7 +18407,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesCreateOrReplace(string subscriptionId, string resourceGroupName, string schemaRegistryName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistry body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18454,7 +18454,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesCreateOrReplaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistry body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18511,7 +18511,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesCreateOrReplaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistry body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18571,7 +18571,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesCreateOrReplaceViaJsonString(string subscriptionId, string resourceGroupName, string schemaRegistryName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18617,7 +18617,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesCreateOrReplaceViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18664,7 +18664,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesCreateOrReplaceWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistry body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19038,7 +19038,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesDelete(string subscriptionId, string resourceGroupName, string schemaRegistryName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19080,7 +19080,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19312,7 +19312,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesGet(string subscriptionId, string resourceGroupName, string schemaRegistryName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19353,7 +19353,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19404,7 +19404,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19457,7 +19457,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesGetWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19636,7 +19636,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesListByResourceGroup(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19676,7 +19676,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19725,7 +19725,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19775,7 +19775,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19951,7 +19951,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19989,7 +19989,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20035,7 +20035,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20081,7 +20081,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20253,7 +20253,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesUpdate(string subscriptionId, string resourceGroupName, string schemaRegistryName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistryUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20300,7 +20300,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistryUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20357,7 +20357,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistryUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20417,7 +20417,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesUpdateViaJsonString(string subscriptionId, string resourceGroupName, string schemaRegistryName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20463,7 +20463,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20510,7 +20510,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaRegistriesUpdateWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistryUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20888,7 +20888,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsCreateOrReplace(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, string schemaVersionName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20940,7 +20940,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsCreateOrReplaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21003,7 +21003,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsCreateOrReplaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21072,7 +21072,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsCreateOrReplaceViaJsonString(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, string schemaVersionName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21124,7 +21124,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsCreateOrReplaceViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, string schemaVersionName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21177,7 +21177,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsCreateOrReplaceWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, string schemaVersionName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21385,8 +21385,8 @@ public partial class DeviceRegistry /// Schema registry name parameter. /// Schema name parameter. /// Schema version name parameter. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -21394,9 +21394,9 @@ public partial class DeviceRegistry /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchemaVersionsDelete(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, string schemaVersionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchemaVersionsDelete(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, string schemaVersionName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21425,14 +21425,14 @@ public partial class DeviceRegistry await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SchemaVersionsDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); + await this.SchemaVersionsDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); } } /// Delete a SchemaVersion /// - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -21440,9 +21440,9 @@ public partial class DeviceRegistry /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchemaVersionsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchemaVersionsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21485,14 +21485,14 @@ public partial class DeviceRegistry await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SchemaVersionsDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); + await this.SchemaVersionsDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); } } /// Actual wire call for method. /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -21500,17 +21500,110 @@ public partial class DeviceRegistry /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SchemaVersionsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SchemaVersionsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -21599,7 +21692,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsGet(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, string schemaVersionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21644,7 +21737,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21701,7 +21794,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21762,7 +21855,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsGetWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, string schemaVersionName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21957,7 +22050,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsListBySchema(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22001,7 +22094,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsListBySchemaViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22056,7 +22149,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsListBySchemaViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22114,7 +22207,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemaVersionsListBySchemaWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22308,7 +22401,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasCreateOrReplace(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchema body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22358,7 +22451,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasCreateOrReplaceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchema body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22418,7 +22511,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasCreateOrReplaceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchema body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22483,7 +22576,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasCreateOrReplaceViaJsonString(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22532,7 +22625,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasCreateOrReplaceViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22582,7 +22675,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasCreateOrReplaceWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchema body, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22780,8 +22873,8 @@ public partial class DeviceRegistry /// The name of the resource group. The name is case insensitive. /// Schema registry name parameter. /// Schema name parameter. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -22789,9 +22882,9 @@ public partial class DeviceRegistry /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchemasDelete(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchemasDelete(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22818,14 +22911,14 @@ public partial class DeviceRegistry await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SchemasDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); + await this.SchemasDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); } } /// Delete a Schema /// - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -22833,9 +22926,9 @@ public partial class DeviceRegistry /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchemasDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchemasDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22875,14 +22968,14 @@ public partial class DeviceRegistry await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SchemasDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); + await this.SchemasDelete_Call (request, onNoContent,onOk,onDefault,eventListener,sender); } } /// Actual wire call for method. /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -22890,17 +22983,110 @@ public partial class DeviceRegistry /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SchemasDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SchemasDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { global::System.Net.Http.HttpResponseMessage _response = null; try { + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -22983,7 +23169,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasGet(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23026,7 +23212,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23080,7 +23266,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23137,7 +23323,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasGetWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, string schemaName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23324,7 +23510,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasListBySchemaRegistry(string subscriptionId, string resourceGroupName, string schemaRegistryName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23366,7 +23552,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasListBySchemaRegistryViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23418,7 +23604,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasListBySchemaRegistryViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23472,7 +23658,7 @@ public partial class DeviceRegistry /// public async global::System.Threading.Tasks.Task SchemasListBySchemaRegistryWithResult(string subscriptionId, string resourceGroupName, string schemaRegistryName, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.ISendAsync sender) { - var apiVersion = @"2025-07-01-preview"; + var apiVersion = @"2025-10-01"; // Constant Parameters using( NoSynchronizationContext ) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.PowerShell.cs index 219f94df704d..67f20a2352a8 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.PowerShell.cs @@ -115,7 +115,7 @@ internal HostAuthentication(global::System.Collections.IDictionary content) } if (content.Contains("X509Credentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509Credentials) content.GetValueForProperty("X509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials) content.GetValueForProperty("X509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsTypeConverter.ConvertFrom); } if (content.Contains("Method")) { @@ -133,6 +133,14 @@ internal HostAuthentication(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsCertificateSecretName = (string) content.GetValueForProperty("X509CredentialsCertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsCertificateSecretName, global::System.Convert.ToString); } + if (content.Contains("X509CredentialsKeySecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsKeySecretName = (string) content.GetValueForProperty("X509CredentialsKeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsKeySecretName, global::System.Convert.ToString); + } + if (content.Contains("X509CredentialsIntermediateCertificatesSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsIntermediateCertificatesSecretName = (string) content.GetValueForProperty("X509CredentialsIntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsIntermediateCertificatesSecretName, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -156,7 +164,7 @@ internal HostAuthentication(global::System.Management.Automation.PSObject conten } if (content.Contains("X509Credentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509Credentials) content.GetValueForProperty("X509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials) content.GetValueForProperty("X509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsTypeConverter.ConvertFrom); } if (content.Contains("Method")) { @@ -174,6 +182,14 @@ internal HostAuthentication(global::System.Management.Automation.PSObject conten { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsCertificateSecretName = (string) content.GetValueForProperty("X509CredentialsCertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsCertificateSecretName, global::System.Convert.ToString); } + if (content.Contains("X509CredentialsKeySecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsKeySecretName = (string) content.GetValueForProperty("X509CredentialsKeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsKeySecretName, global::System.Convert.ToString); + } + if (content.Contains("X509CredentialsIntermediateCertificatesSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsIntermediateCertificatesSecretName = (string) content.GetValueForProperty("X509CredentialsIntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)this).X509CredentialsIntermediateCertificatesSecretName, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.cs index a46cc97519d8..aa39fe6fdc2b 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.cs @@ -24,7 +24,7 @@ public partial class HostAuthentication : Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentials Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal.UsernamePasswordCredentials { get => (this._usernamePasswordCredentials = this._usernamePasswordCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.UsernamePasswordCredentials()); set { {_usernamePasswordCredentials = value;} } } /// Internal Acessors for X509Credentials - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509Credentials Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal.X509Credentials { get => (this._x509Credentials = this._x509Credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509Credentials()); set { {_x509Credentials = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal.X509Credentials { get => (this._x509Credentials = this._x509Credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentials()); set { {_x509Credentials = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentials _usernamePasswordCredentials; @@ -44,19 +44,31 @@ public partial class HostAuthentication : public string UsernamePasswordCredentialsUsernameSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentialsInternal)UsernamePasswordCredentials).UsernameSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentialsInternal)UsernamePasswordCredentials).UsernameSecretName = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509Credentials _x509Credentials; + private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials _x509Credentials; /// /// Defines the certificate reference when Certificate user authentication mode is selected. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509Credentials X509Credentials { get => (this._x509Credentials = this._x509Credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509Credentials()); set => this._x509Credentials = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials X509Credentials { get => (this._x509Credentials = this._x509Credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentials()); set => this._x509Credentials = value; } /// /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] - public string X509CredentialsCertificateSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsInternal)X509Credentials).CertificateSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsInternal)X509Credentials).CertificateSecretName = value ?? null; } + public string X509CredentialsCertificateSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)X509Credentials).CertificateSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)X509Credentials).CertificateSecretName = value ?? null; } + + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string X509CredentialsIntermediateCertificatesSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)X509Credentials).IntermediateCertificatesSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)X509Credentials).IntermediateCertificatesSecretName = value ?? null; } + + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string X509CredentialsKeySecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)X509Credentials).KeySecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)X509Credentials).KeySecretName = value ?? null; } /// Creates an new instance. public HostAuthentication() @@ -115,6 +127,32 @@ public partial interface IHostAuthentication : SerializedName = @"certificateSecretName", PossibleTypes = new [] { typeof(string) })] string X509CredentialsCertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the combined intermediate certificates in PEM format.", + SerializedName = @"intermediateCertificatesSecretName", + PossibleTypes = new [] { typeof(string) })] + string X509CredentialsIntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the certificate private key in PEM or DER format.", + SerializedName = @"keySecretName", + PossibleTypes = new [] { typeof(string) })] + string X509CredentialsKeySecretName { get; set; } } /// Definition of the client authentication mechanism to the host. @@ -135,11 +173,19 @@ internal partial interface IHostAuthenticationInternal /// /// Defines the certificate reference when Certificate user authentication mode is selected. /// - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509Credentials X509Credentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials X509Credentials { get; set; } /// /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). /// string X509CredentialsCertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + string X509CredentialsIntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + string X509CredentialsKeySecretName { get; set; } } } \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.json.cs index 86fd42c24e0e..9e3a98f0d692 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthentication.json.cs @@ -78,7 +78,7 @@ internal HostAuthentication(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Ru return; } {_usernamePasswordCredentials = If( json?.PropertyT("usernamePasswordCredentials"), out var __jsonUsernamePasswordCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.UsernamePasswordCredentials.FromJson(__jsonUsernamePasswordCredentials) : _usernamePasswordCredentials;} - {_x509Credentials = If( json?.PropertyT("x509Credentials"), out var __jsonX509Credentials) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509Credentials.FromJson(__jsonX509Credentials) : _x509Credentials;} + {_x509Credentials = If( json?.PropertyT("x509Credentials"), out var __jsonX509Credentials) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentials.FromJson(__jsonX509Credentials) : _x509Credentials;} {_method = If( json?.PropertyT("method"), out var __jsonMethod) ? (string)__jsonMethod : (string)_method;} AfterFromJson(json); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.PowerShell.cs index d859ad4c48a9..1c7b20708c03 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.PowerShell.cs @@ -115,7 +115,7 @@ internal HostAuthenticationUpdate(global::System.Collections.IDictionary content } if (content.Contains("X509Credentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdate) content.GetValueForProperty("X509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CredentialsUpdateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate) content.GetValueForProperty("X509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsUpdateTypeConverter.ConvertFrom); } if (content.Contains("Method")) { @@ -133,6 +133,14 @@ internal HostAuthenticationUpdate(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsCertificateSecretName = (string) content.GetValueForProperty("X509CredentialsCertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsCertificateSecretName, global::System.Convert.ToString); } + if (content.Contains("X509CredentialsKeySecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsKeySecretName = (string) content.GetValueForProperty("X509CredentialsKeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsKeySecretName, global::System.Convert.ToString); + } + if (content.Contains("X509CredentialsIntermediateCertificatesSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsIntermediateCertificatesSecretName = (string) content.GetValueForProperty("X509CredentialsIntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsIntermediateCertificatesSecretName, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -156,7 +164,7 @@ internal HostAuthenticationUpdate(global::System.Management.Automation.PSObject } if (content.Contains("X509Credentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdate) content.GetValueForProperty("X509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CredentialsUpdateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate) content.GetValueForProperty("X509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsUpdateTypeConverter.ConvertFrom); } if (content.Contains("Method")) { @@ -174,6 +182,14 @@ internal HostAuthenticationUpdate(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsCertificateSecretName = (string) content.GetValueForProperty("X509CredentialsCertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsCertificateSecretName, global::System.Convert.ToString); } + if (content.Contains("X509CredentialsKeySecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsKeySecretName = (string) content.GetValueForProperty("X509CredentialsKeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsKeySecretName, global::System.Convert.ToString); + } + if (content.Contains("X509CredentialsIntermediateCertificatesSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsIntermediateCertificatesSecretName = (string) content.GetValueForProperty("X509CredentialsIntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)this).X509CredentialsIntermediateCertificatesSecretName, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.cs index 6553ae2f7cce..c2652ddd5436 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.cs @@ -24,7 +24,7 @@ public partial class HostAuthenticationUpdate : Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentialsUpdate Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal.UsernamePasswordCredentials { get => (this._usernamePasswordCredentials = this._usernamePasswordCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.UsernamePasswordCredentialsUpdate()); set { {_usernamePasswordCredentials = value;} } } /// Internal Acessors for X509Credentials - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdate Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal.X509Credentials { get => (this._x509Credentials = this._x509Credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CredentialsUpdate()); set { {_x509Credentials = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal.X509Credentials { get => (this._x509Credentials = this._x509Credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsUpdate()); set { {_x509Credentials = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentialsUpdate _usernamePasswordCredentials; @@ -44,19 +44,31 @@ public partial class HostAuthenticationUpdate : public string UsernamePasswordCredentialsUsernameSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentialsUpdateInternal)UsernamePasswordCredentials).UsernameSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentialsUpdateInternal)UsernamePasswordCredentials).UsernameSecretName = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdate _x509Credentials; + private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate _x509Credentials; /// /// Defines the certificate reference when Certificate user authentication mode is selected. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdate X509Credentials { get => (this._x509Credentials = this._x509Credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CredentialsUpdate()); set => this._x509Credentials = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate X509Credentials { get => (this._x509Credentials = this._x509Credentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsUpdate()); set => this._x509Credentials = value; } /// /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] - public string X509CredentialsCertificateSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdateInternal)X509Credentials).CertificateSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdateInternal)X509Credentials).CertificateSecretName = value ?? null; } + public string X509CredentialsCertificateSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)X509Credentials).CertificateSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)X509Credentials).CertificateSecretName = value ?? null; } + + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string X509CredentialsIntermediateCertificatesSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)X509Credentials).IntermediateCertificatesSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)X509Credentials).IntermediateCertificatesSecretName = value ?? null; } + + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string X509CredentialsKeySecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)X509Credentials).KeySecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)X509Credentials).KeySecretName = value ?? null; } /// Creates an new instance. public HostAuthenticationUpdate() @@ -115,6 +127,32 @@ public partial interface IHostAuthenticationUpdate : SerializedName = @"certificateSecretName", PossibleTypes = new [] { typeof(string) })] string X509CredentialsCertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the combined intermediate certificates in PEM format.", + SerializedName = @"intermediateCertificatesSecretName", + PossibleTypes = new [] { typeof(string) })] + string X509CredentialsIntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the certificate private key in PEM or DER format.", + SerializedName = @"keySecretName", + PossibleTypes = new [] { typeof(string) })] + string X509CredentialsKeySecretName { get; set; } } /// Definition of the client authentication mechanism to the host. @@ -135,11 +173,19 @@ internal partial interface IHostAuthenticationUpdateInternal /// /// Defines the certificate reference when Certificate user authentication mode is selected. /// - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdate X509Credentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate X509Credentials { get; set; } /// /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). /// string X509CredentialsCertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + string X509CredentialsIntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + string X509CredentialsKeySecretName { get; set; } } } \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.json.cs index 988905809f67..5e2215d4cf35 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/HostAuthenticationUpdate.json.cs @@ -78,7 +78,7 @@ internal HostAuthenticationUpdate(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegis return; } {_usernamePasswordCredentials = If( json?.PropertyT("usernamePasswordCredentials"), out var __jsonUsernamePasswordCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.UsernamePasswordCredentialsUpdate.FromJson(__jsonUsernamePasswordCredentials) : _usernamePasswordCredentials;} - {_x509Credentials = If( json?.PropertyT("x509Credentials"), out var __jsonX509Credentials) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CredentialsUpdate.FromJson(__jsonX509Credentials) : _x509Credentials;} + {_x509Credentials = If( json?.PropertyT("x509Credentials"), out var __jsonX509Credentials) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsUpdate.FromJson(__jsonX509Credentials) : _x509Credentials;} {_method = If( json?.PropertyT("method"), out var __jsonMethod) ? (string)__jsonMethod : (string)_method;} AfterFromJson(json); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpoints.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpoints.PowerShell.cs index 905a5d24f833..81dbda8bafa8 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpoints.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpoints.PowerShell.cs @@ -133,10 +133,6 @@ internal InboundEndpoints(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AdditionalConfiguration = (string) content.GetValueForProperty("AdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AdditionalConfiguration, global::System.Convert.ToString); } - if (content.Contains("AuthenticationX509Credentials")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationX509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509Credentials) content.GetValueForProperty("AuthenticationX509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationX509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CredentialsTypeConverter.ConvertFrom); - } if (content.Contains("AuthenticationMethod")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationMethod = (string) content.GetValueForProperty("AuthenticationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationMethod, global::System.Convert.ToString); @@ -149,6 +145,10 @@ internal InboundEndpoints(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationUsernamePasswordCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentials) content.GetValueForProperty("AuthenticationUsernamePasswordCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationUsernamePasswordCredentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.UsernamePasswordCredentialsTypeConverter.ConvertFrom); } + if (content.Contains("AuthenticationX509Credentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationX509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials) content.GetValueForProperty("AuthenticationX509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationX509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsTypeConverter.ConvertFrom); + } if (content.Contains("UsernamePasswordCredentialsUsernameSecretName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).UsernamePasswordCredentialsUsernameSecretName = (string) content.GetValueForProperty("UsernamePasswordCredentialsUsernameSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).UsernamePasswordCredentialsUsernameSecretName, global::System.Convert.ToString); @@ -161,6 +161,14 @@ internal InboundEndpoints(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsCertificateSecretName = (string) content.GetValueForProperty("X509CredentialsCertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsCertificateSecretName, global::System.Convert.ToString); } + if (content.Contains("X509CredentialsKeySecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsKeySecretName = (string) content.GetValueForProperty("X509CredentialsKeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsKeySecretName, global::System.Convert.ToString); + } + if (content.Contains("X509CredentialsIntermediateCertificatesSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsIntermediateCertificatesSecretName = (string) content.GetValueForProperty("X509CredentialsIntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsIntermediateCertificatesSecretName, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -202,10 +210,6 @@ internal InboundEndpoints(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AdditionalConfiguration = (string) content.GetValueForProperty("AdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AdditionalConfiguration, global::System.Convert.ToString); } - if (content.Contains("AuthenticationX509Credentials")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationX509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509Credentials) content.GetValueForProperty("AuthenticationX509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationX509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CredentialsTypeConverter.ConvertFrom); - } if (content.Contains("AuthenticationMethod")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationMethod = (string) content.GetValueForProperty("AuthenticationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationMethod, global::System.Convert.ToString); @@ -218,6 +222,10 @@ internal InboundEndpoints(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationUsernamePasswordCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentials) content.GetValueForProperty("AuthenticationUsernamePasswordCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationUsernamePasswordCredentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.UsernamePasswordCredentialsTypeConverter.ConvertFrom); } + if (content.Contains("AuthenticationX509Credentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationX509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials) content.GetValueForProperty("AuthenticationX509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).AuthenticationX509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsTypeConverter.ConvertFrom); + } if (content.Contains("UsernamePasswordCredentialsUsernameSecretName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).UsernamePasswordCredentialsUsernameSecretName = (string) content.GetValueForProperty("UsernamePasswordCredentialsUsernameSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).UsernamePasswordCredentialsUsernameSecretName, global::System.Convert.ToString); @@ -230,6 +238,14 @@ internal InboundEndpoints(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsCertificateSecretName = (string) content.GetValueForProperty("X509CredentialsCertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsCertificateSecretName, global::System.Convert.ToString); } + if (content.Contains("X509CredentialsKeySecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsKeySecretName = (string) content.GetValueForProperty("X509CredentialsKeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsKeySecretName, global::System.Convert.ToString); + } + if (content.Contains("X509CredentialsIntermediateCertificatesSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsIntermediateCertificatesSecretName = (string) content.GetValueForProperty("X509CredentialsIntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal)this).X509CredentialsIntermediateCertificatesSecretName, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpoints.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpoints.cs index 18c934c08d74..53b4d6113dfc 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpoints.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpoints.cs @@ -57,7 +57,7 @@ public partial class InboundEndpoints : Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentials Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal.AuthenticationUsernamePasswordCredentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).UsernamePasswordCredentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).UsernamePasswordCredentials = value ?? null /* model class */; } /// Internal Acessors for AuthenticationX509Credentials - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509Credentials Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal.AuthenticationX509Credentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).X509Credentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).X509Credentials = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal.AuthenticationX509Credentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).X509Credentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).X509Credentials = value ?? null /* model class */; } /// Internal Acessors for TrustSetting Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ITrustSettings Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsInternal.TrustSetting { get => (this._trustSetting = this._trustSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.TrustSettings()); set { {_trustSetting = value;} } } @@ -97,6 +97,18 @@ public partial class InboundEndpoints : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public string X509CredentialsCertificateSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).X509CredentialsCertificateSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).X509CredentialsCertificateSecretName = value ?? null; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string X509CredentialsIntermediateCertificatesSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).X509CredentialsIntermediateCertificatesSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).X509CredentialsIntermediateCertificatesSecretName = value ?? null; } + + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string X509CredentialsKeySecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).X509CredentialsKeySecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationInternal)Authentication).X509CredentialsKeySecretName = value ?? null; } + /// Creates an new instance. public InboundEndpoints() { @@ -217,6 +229,32 @@ public partial interface IInboundEndpoints : SerializedName = @"certificateSecretName", PossibleTypes = new [] { typeof(string) })] string X509CredentialsCertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the combined intermediate certificates in PEM format.", + SerializedName = @"intermediateCertificatesSecretName", + PossibleTypes = new [] { typeof(string) })] + string X509CredentialsIntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the certificate private key in PEM or DER format.", + SerializedName = @"keySecretName", + PossibleTypes = new [] { typeof(string) })] + string X509CredentialsKeySecretName { get; set; } } /// An endpoint to connect to the device. @@ -244,7 +282,7 @@ internal partial interface IInboundEndpointsInternal /// /// Defines the certificate reference when Certificate user authentication mode is selected. /// - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509Credentials AuthenticationX509Credentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials AuthenticationX509Credentials { get; set; } /// Type of connection endpoint. string EndpointType { get; set; } /// Defines server trust settings for the endpoint. @@ -264,6 +302,14 @@ internal partial interface IInboundEndpointsInternal /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). /// string X509CredentialsCertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + string X509CredentialsIntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + string X509CredentialsKeySecretName { get; set; } } } \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpointsUpdate.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpointsUpdate.PowerShell.cs index 99505e68392c..c4174e57d5e1 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpointsUpdate.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpointsUpdate.PowerShell.cs @@ -147,7 +147,7 @@ internal InboundEndpointsUpdate(global::System.Collections.IDictionary content) } if (content.Contains("AuthenticationX509Credentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).AuthenticationX509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdate) content.GetValueForProperty("AuthenticationX509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).AuthenticationX509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CredentialsUpdateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).AuthenticationX509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate) content.GetValueForProperty("AuthenticationX509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).AuthenticationX509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsUpdateTypeConverter.ConvertFrom); } if (content.Contains("UsernamePasswordCredentialsUsernameSecretName")) { @@ -161,6 +161,14 @@ internal InboundEndpointsUpdate(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsCertificateSecretName = (string) content.GetValueForProperty("X509CredentialsCertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsCertificateSecretName, global::System.Convert.ToString); } + if (content.Contains("X509CredentialsKeySecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsKeySecretName = (string) content.GetValueForProperty("X509CredentialsKeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsKeySecretName, global::System.Convert.ToString); + } + if (content.Contains("X509CredentialsIntermediateCertificatesSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsIntermediateCertificatesSecretName = (string) content.GetValueForProperty("X509CredentialsIntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsIntermediateCertificatesSecretName, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -216,7 +224,7 @@ internal InboundEndpointsUpdate(global::System.Management.Automation.PSObject co } if (content.Contains("AuthenticationX509Credentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).AuthenticationX509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdate) content.GetValueForProperty("AuthenticationX509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).AuthenticationX509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CredentialsUpdateTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).AuthenticationX509Credentials = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate) content.GetValueForProperty("AuthenticationX509Credentials",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).AuthenticationX509Credentials, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsUpdateTypeConverter.ConvertFrom); } if (content.Contains("UsernamePasswordCredentialsUsernameSecretName")) { @@ -230,6 +238,14 @@ internal InboundEndpointsUpdate(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsCertificateSecretName = (string) content.GetValueForProperty("X509CredentialsCertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsCertificateSecretName, global::System.Convert.ToString); } + if (content.Contains("X509CredentialsKeySecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsKeySecretName = (string) content.GetValueForProperty("X509CredentialsKeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsKeySecretName, global::System.Convert.ToString); + } + if (content.Contains("X509CredentialsIntermediateCertificatesSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsIntermediateCertificatesSecretName = (string) content.GetValueForProperty("X509CredentialsIntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal)this).X509CredentialsIntermediateCertificatesSecretName, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpointsUpdate.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpointsUpdate.cs index b09e63b4adb6..2d97fe563b47 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpointsUpdate.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/InboundEndpointsUpdate.cs @@ -57,7 +57,7 @@ public partial class InboundEndpointsUpdate : Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IUsernamePasswordCredentialsUpdate Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal.AuthenticationUsernamePasswordCredentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).UsernamePasswordCredentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).UsernamePasswordCredentials = value ?? null /* model class */; } /// Internal Acessors for AuthenticationX509Credentials - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdate Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal.AuthenticationX509Credentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).X509Credentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).X509Credentials = value ?? null /* model class */; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal.AuthenticationX509Credentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).X509Credentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).X509Credentials = value ?? null /* model class */; } /// Internal Acessors for TrustSetting Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ITrustSettings Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IInboundEndpointsUpdateInternal.TrustSetting { get => (this._trustSetting = this._trustSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.TrustSettings()); set { {_trustSetting = value;} } } @@ -97,6 +97,18 @@ public partial class InboundEndpointsUpdate : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public string X509CredentialsCertificateSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).X509CredentialsCertificateSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).X509CredentialsCertificateSecretName = value ?? null; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string X509CredentialsIntermediateCertificatesSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).X509CredentialsIntermediateCertificatesSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).X509CredentialsIntermediateCertificatesSecretName = value ?? null; } + + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string X509CredentialsKeySecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).X509CredentialsKeySecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IHostAuthenticationUpdateInternal)Authentication).X509CredentialsKeySecretName = value ?? null; } + /// Creates an new instance. public InboundEndpointsUpdate() { @@ -217,6 +229,32 @@ public partial interface IInboundEndpointsUpdate : SerializedName = @"certificateSecretName", PossibleTypes = new [] { typeof(string) })] string X509CredentialsCertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the combined intermediate certificates in PEM format.", + SerializedName = @"intermediateCertificatesSecretName", + PossibleTypes = new [] { typeof(string) })] + string X509CredentialsIntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the certificate private key in PEM or DER format.", + SerializedName = @"keySecretName", + PossibleTypes = new [] { typeof(string) })] + string X509CredentialsKeySecretName { get; set; } } /// An endpoint to connect to the device. @@ -244,7 +282,7 @@ internal partial interface IInboundEndpointsUpdateInternal /// /// Defines the certificate reference when Certificate user authentication mode is selected. /// - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CredentialsUpdate AuthenticationX509Credentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate AuthenticationX509Credentials { get; set; } /// Type of connection endpoint. string EndpointType { get; set; } /// Defines server trust settings for the endpoint. @@ -264,6 +302,14 @@ internal partial interface IInboundEndpointsUpdateInternal /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). /// string X509CredentialsCertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + string X509CredentialsIntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + string X509CredentialsKeySecretName { get; set; } } } \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.PowerShell.cs index 429dc89e677f..e222156862e3 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.PowerShell.cs @@ -113,6 +113,10 @@ internal ManagementGroup(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).Name, global::System.Convert.ToString); } + if (content.Contains("DataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).DataSource, global::System.Convert.ToString); + } if (content.Contains("Configuration")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).Configuration, global::System.Convert.ToString); @@ -154,6 +158,10 @@ internal ManagementGroup(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).Name, global::System.Convert.ToString); } + if (content.Contains("DataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).DataSource, global::System.Convert.ToString); + } if (content.Contains("Configuration")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).Configuration = (string) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroupInternal)this).Configuration, global::System.Convert.ToString); diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.cs index b29942d05b94..cbb21827d0e5 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.cs @@ -31,6 +31,13 @@ public partial class ManagementGroup : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public string Configuration { get => this._configuration; set => this._configuration = value; } + /// Backing field for property. + private string _dataSource; + + /// Reference to a data source for a given management group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string DataSource { get => this._dataSource; set => this._dataSource = value; } + /// Backing field for property. private int? _defaultTimeoutInSecond; @@ -97,6 +104,17 @@ public partial interface IManagementGroup : SerializedName = @"managementGroupConfiguration", PossibleTypes = new [] { typeof(string) })] string Configuration { get; set; } + /// Reference to a data source for a given management group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Reference to a data source for a given management group.", + SerializedName = @"dataSource", + PossibleTypes = new [] { typeof(string) })] + string DataSource { get; set; } /// Default response timeout for all actions that are part of the management group. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -157,6 +175,8 @@ internal partial interface IManagementGroupInternal /// Stringified JSON that contains connector-specific configuration for the management group. /// string Configuration { get; set; } + /// Reference to a data source for a given management group. + string DataSource { get; set; } /// Default response timeout for all actions that are part of the management group. int? DefaultTimeoutInSecond { get; set; } /// diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.json.cs index 4404419523f8..d9cdc3ec8723 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/ManagementGroup.json.cs @@ -78,6 +78,7 @@ internal ManagementGroup(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runti return; } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_dataSource = If( json?.PropertyT("dataSource"), out var __jsonDataSource) ? (string)__jsonDataSource : (string)_dataSource;} {_configuration = If( json?.PropertyT("managementGroupConfiguration"), out var __jsonManagementGroupConfiguration) ? (string)__jsonManagementGroupConfiguration : (string)_configuration;} {_typeRef = If( json?.PropertyT("typeRef"), out var __jsonTypeRef) ? (string)__jsonTypeRef : (string)_typeRef;} {_defaultTopic = If( json?.PropertyT("defaultTopic"), out var __jsonDefaultTopic) ? (string)__jsonDefaultTopic : (string)_defaultTopic;} @@ -106,6 +107,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T return container; } AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._dataSource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._dataSource.ToString()) : null, "dataSource" ,container.Add ); AddIf( null != (((object)this._configuration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._configuration.ToString()) : null, "managementGroupConfiguration" ,container.Add ); AddIf( null != (((object)this._typeRef)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._typeRef.ToString()) : null, "typeRef" ,container.Add ); AddIf( null != (((object)this._defaultTopic)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._defaultTopic.ToString()) : null, "defaultTopic" ,container.Add ); diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAsset.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAsset.PowerShell.cs index 81f6698f5dea..1aefc007e553 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAsset.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAsset.PowerShell.cs @@ -289,9 +289,9 @@ internal NamespaceAsset(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { @@ -317,9 +317,9 @@ internal NamespaceAsset(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusDataset = (System.Collections.Generic.List) content.GetValueForProperty("StatusDataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusDataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("StatusEvent")) + if (content.Contains("StatusEventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusEvent = (System.Collections.Generic.List) content.GetValueForProperty("StatusEvent",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusEvent, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusEventGroup = (System.Collections.Generic.List) content.GetValueForProperty("StatusEventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusEventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("StatusStream")) { @@ -550,9 +550,9 @@ internal NamespaceAsset(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { @@ -578,9 +578,9 @@ internal NamespaceAsset(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusDataset = (System.Collections.Generic.List) content.GetValueForProperty("StatusDataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusDataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("StatusEvent")) + if (content.Contains("StatusEventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusEvent = (System.Collections.Generic.List) content.GetValueForProperty("StatusEvent",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusEvent, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusEventGroup = (System.Collections.Generic.List) content.GetValueForProperty("StatusEventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal)this).StatusEventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("StatusStream")) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAsset.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAsset.cs index d940d0461f76..ab6627de5be7 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAsset.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAsset.cs @@ -128,10 +128,10 @@ public partial class NamespaceAsset : public bool? Enabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).Enabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).Enabled = value ?? default(bool); } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] - public System.Collections.Generic.List Event { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).Event = value ?? null /* arrayOf */; } + public System.Collections.Generic.List EventGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).EventGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).EventGroup = value ?? null /* arrayOf */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedLocation _extendedLocation; @@ -232,8 +232,8 @@ public partial class NamespaceAsset : /// Internal Acessors for StatusDataset System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal.StatusDataset { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).StatusDataset; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).StatusDataset = value ?? null /* arrayOf */; } - /// Internal Acessors for StatusEvent - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal.StatusEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).StatusEvent; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).StatusEvent = value ?? null /* arrayOf */; } + /// Internal Acessors for StatusEventGroup + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal.StatusEventGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).StatusEventGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).StatusEventGroup = value ?? null /* arrayOf */; } /// Internal Acessors for StatusManagementGroup System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetInternal.StatusManagementGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).StatusManagementGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).StatusManagementGroup = value ?? null /* arrayOf */; } @@ -316,9 +316,9 @@ public partial class NamespaceAsset : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public System.Collections.Generic.List StatusDataset { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).StatusDataset; } - /// Array of event statuses that describe the status of each event. + /// Array of event group statuses that describe the status of each event group. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] - public System.Collections.Generic.List StatusEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).StatusEvent; } + public System.Collections.Generic.List StatusEventGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)Property).StatusEventGroup; } /// /// Array of management group statuses that describe the status of each management group. @@ -663,7 +663,7 @@ public partial interface INamespaceAsset : PossibleTypes = new [] { typeof(bool) })] bool? Enabled { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -671,10 +671,10 @@ public partial interface INamespaceAsset : Read = true, Create = true, Update = true, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) })] - System.Collections.Generic.List Event { get; set; } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup) })] + System.Collections.Generic.List EventGroup { get; set; } /// The extended location name. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -845,17 +845,17 @@ public partial interface INamespaceAsset : SerializedName = @"datasets", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusDataset) })] System.Collections.Generic.List StatusDataset { get; } - /// Array of event statuses that describe the status of each event. + /// Array of event group statuses that describe the status of each event group. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Array of event statuses that describe the status of each event.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEvent) })] - System.Collections.Generic.List StatusEvent { get; } + Description = @"Array of event group statuses that describe the status of each event group.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup) })] + System.Collections.Generic.List StatusEventGroup { get; } /// /// Array of management group statuses that describe the status of each management group. /// @@ -994,9 +994,9 @@ internal partial interface INamespaceAssetInternal : /// Enabled/disabled status of the asset. bool? Enabled { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// - System.Collections.Generic.List Event { get; set; } + System.Collections.Generic.List EventGroup { get; set; } /// The extended location. Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedLocation ExtendedLocation { get; set; } /// The extended location name. @@ -1042,8 +1042,8 @@ internal partial interface INamespaceAssetInternal : Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStatusConfig StatusConfig { get; set; } /// Array of dataset statuses that describe the status of each dataset. System.Collections.Generic.List StatusDataset { get; set; } - /// Array of event statuses that describe the status of each event. - System.Collections.Generic.List StatusEvent { get; set; } + /// Array of event group statuses that describe the status of each event group. + System.Collections.Generic.List StatusEventGroup { get; set; } /// /// Array of management group statuses that describe the status of each management group. /// diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.PowerShell.cs index 3e80ea06344a..592a6292c942 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.PowerShell.cs @@ -221,9 +221,9 @@ internal NamespaceAssetProperties(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { @@ -253,9 +253,9 @@ internal NamespaceAssetProperties(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusDataset = (System.Collections.Generic.List) content.GetValueForProperty("StatusDataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusDataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("StatusEvent")) + if (content.Contains("StatusEventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusEvent = (System.Collections.Generic.List) content.GetValueForProperty("StatusEvent",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusEvent, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusEventGroup = (System.Collections.Generic.List) content.GetValueForProperty("StatusEventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusEventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("StatusStream")) { @@ -418,9 +418,9 @@ internal NamespaceAssetProperties(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { @@ -450,9 +450,9 @@ internal NamespaceAssetProperties(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusDataset = (System.Collections.Generic.List) content.GetValueForProperty("StatusDataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusDataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("StatusEvent")) + if (content.Contains("StatusEventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusEvent = (System.Collections.Generic.List) content.GetValueForProperty("StatusEvent",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusEvent, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusEventGroup = (System.Collections.Generic.List) content.GetValueForProperty("StatusEventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal)this).StatusEventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("StatusStream")) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.cs index cde1c2c40c6f..b46445d1f468 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.cs @@ -175,14 +175,14 @@ public partial class NamespaceAssetProperties : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public bool? Enabled { get => this._enabled; set => this._enabled = value; } - /// Backing field for property. - private System.Collections.Generic.List _event; + /// Backing field for property. + private System.Collections.Generic.List _eventGroup; /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public System.Collections.Generic.List Event { get => this._event; set => this._event = value; } + public System.Collections.Generic.List EventGroup { get => this._eventGroup; set => this._eventGroup = value; } /// Backing field for property. private string _externalAssetId; @@ -270,8 +270,8 @@ public partial class NamespaceAssetProperties : /// Internal Acessors for StatusDataset System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal.StatusDataset { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)Status).Dataset; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)Status).Dataset = value ?? null /* arrayOf */; } - /// Internal Acessors for StatusEvent - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal.StatusEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)Status).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)Status).Event = value ?? null /* arrayOf */; } + /// Internal Acessors for StatusEventGroup + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal.StatusEventGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)Status).EventGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)Status).EventGroup = value ?? null /* arrayOf */; } /// Internal Acessors for StatusManagementGroup System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetPropertiesInternal.StatusManagementGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)Status).ManagementGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)Status).ManagementGroup = value ?? null /* arrayOf */; } @@ -333,9 +333,9 @@ public partial class NamespaceAssetProperties : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public System.Collections.Generic.List StatusDataset { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)Status).Dataset; } - /// Array of event statuses that describe the status of each event. + /// Array of event group statuses that describe the status of each event group. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] - public System.Collections.Generic.List StatusEvent { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)Status).Event; } + public System.Collections.Generic.List StatusEventGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)Status).EventGroup; } /// /// Array of management group statuses that describe the status of each management group. @@ -636,7 +636,7 @@ public partial interface INamespaceAssetProperties : PossibleTypes = new [] { typeof(bool) })] bool? Enabled { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -644,10 +644,10 @@ public partial interface INamespaceAssetProperties : Read = true, Create = true, Update = true, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) })] - System.Collections.Generic.List Event { get; set; } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup) })] + System.Collections.Generic.List EventGroup { get; set; } /// Asset ID provided by the customer. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -796,17 +796,17 @@ public partial interface INamespaceAssetProperties : SerializedName = @"datasets", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusDataset) })] System.Collections.Generic.List StatusDataset { get; } - /// Array of event statuses that describe the status of each event. + /// Array of event group statuses that describe the status of each event group. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Array of event statuses that describe the status of each event.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEvent) })] - System.Collections.Generic.List StatusEvent { get; } + Description = @"Array of event group statuses that describe the status of each event group.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup) })] + System.Collections.Generic.List StatusEventGroup { get; } /// /// Array of management group statuses that describe the status of each management group. /// @@ -945,9 +945,9 @@ internal partial interface INamespaceAssetPropertiesInternal /// Enabled/disabled status of the asset. bool? Enabled { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// - System.Collections.Generic.List Event { get; set; } + System.Collections.Generic.List EventGroup { get; set; } /// Asset ID provided by the customer. string ExternalAssetId { get; set; } /// Asset hardware revision number. @@ -985,8 +985,8 @@ internal partial interface INamespaceAssetPropertiesInternal Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStatusConfig StatusConfig { get; set; } /// Array of dataset statuses that describe the status of each dataset. System.Collections.Generic.List StatusDataset { get; set; } - /// Array of event statuses that describe the status of each event. - System.Collections.Generic.List StatusEvent { get; set; } + /// Array of event group statuses that describe the status of each event group. + System.Collections.Generic.List StatusEventGroup { get; set; } /// /// Array of management group statuses that describe the status of each management group. /// diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.json.cs index 7e89f58c13f8..9f67439672c2 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetProperties.json.cs @@ -105,7 +105,7 @@ internal NamespaceAssetProperties(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegis {_defaultEventsDestination = If( json?.PropertyT("defaultEventsDestinations"), out var __jsonDefaultEventsDestinations) ? If( __jsonDefaultEventsDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __g) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IEventDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestination.FromJson(__f) )) ))() : null : _defaultEventsDestination;} {_defaultStreamsDestination = If( json?.PropertyT("defaultStreamsDestinations"), out var __jsonDefaultStreamsDestinations) ? If( __jsonDefaultStreamsDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __b) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.StreamDestination.FromJson(__a) )) ))() : null : _defaultStreamsDestination;} {_dataset = If( json?.PropertyT("datasets"), out var __jsonDatasets) ? If( __jsonDatasets as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDataset) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDataset.FromJson(___v) )) ))() : null : _dataset;} - {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___r) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___r, (___q)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEvent.FromJson(___q) )) ))() : null : _event;} + {_eventGroup = If( json?.PropertyT("eventGroups"), out var __jsonEventGroups) ? If( __jsonEventGroups as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___r) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___r, (___q)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroup.FromJson(___q) )) ))() : null : _eventGroup;} {_stream = If( json?.PropertyT("streams"), out var __jsonStreams) ? If( __jsonStreams as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___m) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___m, (___l)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceStream) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceStream.FromJson(___l) )) ))() : null : _stream;} {_managementGroup = If( json?.PropertyT("managementGroups"), out var __jsonManagementGroups) ? If( __jsonManagementGroups as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___h) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___h, (___g)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroup) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ManagementGroup.FromJson(___g) )) ))() : null : _managementGroup;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} @@ -228,14 +228,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T } container.Add("datasets",___x); } - if (null != this._event) + if (null != this._eventGroup) { var ___s = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); - foreach( var ___t in this._event ) + foreach( var ___t in this._eventGroup ) { AddIf(___t?.ToJson(null, serializationMode) ,___s.Add); } - container.Add("events",___s); + container.Add("eventGroups",___s); } if (null != this._stream) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.PowerShell.cs index 83b5f1d2d754..da63f5ea37e4 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.PowerShell.cs @@ -117,9 +117,9 @@ internal NamespaceAssetStatus(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { @@ -178,9 +178,9 @@ internal NamespaceAssetStatus(global::System.Management.Automation.PSObject cont { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.cs index d65b51ad7dff..92ee5ba693c6 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.cs @@ -50,12 +50,12 @@ public partial class NamespaceAssetStatus : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public System.Collections.Generic.List Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStatusConfigInternal)Config).Detail; } - /// Backing field for property. - private System.Collections.Generic.List _event; + /// Backing field for property. + private System.Collections.Generic.List _eventGroup; - /// Array of event statuses that describe the status of each event. + /// Array of event group statuses that describe the status of each event group. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public System.Collections.Generic.List Event { get => this._event; } + public System.Collections.Generic.List EventGroup { get => this._eventGroup; } /// Backing field for property. private System.Collections.Generic.List _managementGroup; @@ -93,8 +93,8 @@ public partial class NamespaceAssetStatus : /// Internal Acessors for Detail System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStatusConfigInternal)Config).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStatusConfigInternal)Config).Detail = value ?? null /* arrayOf */; } - /// Internal Acessors for Event - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal.Event { get => this._event; set { {_event = value;} } } + /// Internal Acessors for EventGroup + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal.EventGroup { get => this._eventGroup; set { {_eventGroup = value;} } } /// Internal Acessors for ManagementGroup System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusInternal.ManagementGroup { get => this._managementGroup; set { {_managementGroup = value;} } } @@ -184,17 +184,17 @@ public partial interface INamespaceAssetStatus : SerializedName = @"details", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IErrorDetails) })] System.Collections.Generic.List Detail { get; } - /// Array of event statuses that describe the status of each event. + /// Array of event group statuses that describe the status of each event group. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Array of event statuses that describe the status of each event.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEvent) })] - System.Collections.Generic.List Event { get; } + Description = @"Array of event group statuses that describe the status of each event group.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup) })] + System.Collections.Generic.List EventGroup { get; } /// /// Array of management group statuses that describe the status of each management group. /// @@ -259,8 +259,8 @@ internal partial interface INamespaceAssetStatusInternal System.Collections.Generic.List Dataset { get; set; } /// Array of error details that describe the status of each error. System.Collections.Generic.List Detail { get; set; } - /// Array of event statuses that describe the status of each event. - System.Collections.Generic.List Event { get; set; } + /// Array of event group statuses that describe the status of each event group. + System.Collections.Generic.List EventGroup { get; set; } /// /// Array of management group statuses that describe the status of each management group. /// diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.json.cs index 8a7229fb0515..22d7e0c2e4d7 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatus.json.cs @@ -79,7 +79,7 @@ internal NamespaceAssetStatus(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry. } {_config = If( json?.PropertyT("config"), out var __jsonConfig) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.StatusConfig.FromJson(__jsonConfig) : _config;} {_dataset = If( json?.PropertyT("datasets"), out var __jsonDatasets) ? If( __jsonDatasets as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusDataset) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusDataset.FromJson(__u) )) ))() : null : _dataset;} - {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEvent) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEvent.FromJson(__p) )) ))() : null : _event;} + {_eventGroup = If( json?.PropertyT("eventGroups"), out var __jsonEventGroups) ? If( __jsonEventGroups as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventGroup.FromJson(__p) )) ))() : null : _eventGroup;} {_stream = If( json?.PropertyT("streams"), out var __jsonStreams) ? If( __jsonStreams as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusStream) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusStream.FromJson(__k) )) ))() : null : _stream;} {_managementGroup = If( json?.PropertyT("managementGroups"), out var __jsonManagementGroups) ? If( __jsonManagementGroups as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __g) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusManagementGroup) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusManagementGroup.FromJson(__f) )) ))() : null : _managementGroup;} AfterFromJson(json); @@ -122,14 +122,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead)) { - if (null != this._event) + if (null != this._eventGroup) { var __r = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); - foreach( var __s in this._event ) + foreach( var __s in this._eventGroup ) { AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); } - container.Add("events",__r); + container.Add("eventGroups",__r); } } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead)) diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.PowerShell.cs similarity index 66% rename from generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.PowerShell.cs rename to generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.PowerShell.cs index 9e25025f34fb..5ae1fa710ab0 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models { using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell; - /// Defines the event data point properties. - [System.ComponentModel.TypeConverter(typeof(NamespaceEventDataPointTypeConverter))] - public partial class NamespaceEventDataPoint + /// Defines the asset status event group properties. + [System.ComponentModel.TypeConverter(typeof(NamespaceAssetStatusEventGroupTypeConverter))] + public partial class NamespaceAssetStatusEventGroup { /// @@ -63,44 +63,44 @@ public partial class NamespaceEventDataPoint partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new NamespaceEventDataPoint(content); + return new NamespaceAssetStatusEventGroup(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new NamespaceEventDataPoint(content); + return new NamespaceAssetStatusEventGroup(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal NamespaceEventDataPoint(global::System.Collections.IDictionary content) + internal NamespaceAssetStatusEventGroup(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -111,25 +111,21 @@ internal NamespaceEventDataPoint(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroupInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroupInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("DataSource")) + if (content.Contains("Event")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).DataSource, global::System.Convert.ToString); - } - if (content.Contains("DataPointConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).DataPointConfiguration = (string) content.GetValueForProperty("DataPointConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).DataPointConfiguration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroupInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroupInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal NamespaceEventDataPoint(global::System.Management.Automation.PSObject content) + internal NamespaceAssetStatusEventGroup(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -140,15 +136,11 @@ internal NamespaceEventDataPoint(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("DataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).DataSource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroupInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroupInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("DataPointConfiguration")) + if (content.Contains("Event")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).DataPointConfiguration = (string) content.GetValueForProperty("DataPointConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal)this).DataPointConfiguration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroupInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroupInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } @@ -170,9 +162,9 @@ public override string ToString() return ToJsonString(); } } - /// Defines the event data point properties. - [System.ComponentModel.TypeConverter(typeof(NamespaceEventDataPointTypeConverter))] - public partial interface INamespaceEventDataPoint + /// Defines the asset status event group properties. + [System.ComponentModel.TypeConverter(typeof(NamespaceAssetStatusEventGroupTypeConverter))] + public partial interface INamespaceAssetStatusEventGroup { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.TypeConverter.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.TypeConverter.cs new file mode 100644 index 000000000000..4954b1241617 --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.TypeConverter.cs @@ -0,0 +1,148 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class NamespaceAssetStatusEventGroupTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return NamespaceAssetStatusEventGroup.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return NamespaceAssetStatusEventGroup.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return NamespaceAssetStatusEventGroup.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.cs new file mode 100644 index 000000000000..112a80fb427f --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.cs @@ -0,0 +1,95 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; + + /// Defines the asset status event group properties. + public partial class NamespaceAssetStatusEventGroup : + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup, + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroupInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _event; + + /// + /// Array of event statuses that describe the status of each event in the event group. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public System.Collections.Generic.List Event { get => this._event; } + + /// Internal Acessors for Event + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroupInternal.Event { get => this._event; set { {_event = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroupInternal.Name { get => this._name; set { {_name = value;} } } + + /// Backing field for property. + private string _name; + + /// + /// The name of the event group. Must be unique within the status.eventGroups array. This name is used to correlate between + /// the spec and status event group information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Creates an new instance. + public NamespaceAssetStatusEventGroup() + { + + } + } + /// Defines the asset status event group properties. + public partial interface INamespaceAssetStatusEventGroup : + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable + { + /// + /// Array of event statuses that describe the status of each event in the event group. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Array of event statuses that describe the status of each event in the event group.", + SerializedName = @"events", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEvent) })] + System.Collections.Generic.List Event { get; } + /// + /// The name of the event group. Must be unique within the status.eventGroups array. This name is used to correlate between + /// the spec and status event group information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The name of the event group. Must be unique within the status.eventGroups array. This name is used to correlate between the spec and status event group information.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + + } + /// Defines the asset status event group properties. + internal partial interface INamespaceAssetStatusEventGroupInternal + + { + /// + /// Array of event statuses that describe the status of each event in the event group. + /// + System.Collections.Generic.List Event { get; set; } + /// + /// The name of the event group. Must be unique within the status.eventGroups array. This name is used to correlate between + /// the spec and status event group information. + /// + string Name { get; set; } + + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.json.cs similarity index 68% rename from generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.json.cs rename to generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.json.cs index 8b8c703f5038..6814a3bd686d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; - /// Defines the event data point properties. - public partial class NamespaceEventDataPoint + /// Defines the asset status event group properties. + public partial class NamespaceAssetStatusEventGroup { /// @@ -54,22 +54,22 @@ public partial class NamespaceEventDataPoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEventGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new NamespaceEventDataPoint(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new NamespaceAssetStatusEventGroup(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from. - internal NamespaceEventDataPoint(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json) + internal NamespaceAssetStatusEventGroup(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -78,19 +78,18 @@ internal NamespaceEventDataPoint(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegist return; } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_dataSource = If( json?.PropertyT("dataSource"), out var __jsonDataSource) ? (string)__jsonDataSource : (string)_dataSource;} - {_dataPointConfiguration = If( json?.PropertyT("dataPointConfiguration"), out var __jsonDataPointConfiguration) ? (string)__jsonDataPointConfiguration : (string)_dataPointConfiguration;} + {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetStatusEvent) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEvent.FromJson(__u) )) ))() : null : _event;} AfterFromJson(json); } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode) { @@ -102,9 +101,22 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T { return container; } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._dataSource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._dataSource.ToString()) : null, "dataSource" ,container.Add ); - AddIf( null != (((object)this._dataPointConfiguration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._dataPointConfiguration.ToString()) : null, "dataPointConfiguration" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead)) + { + if (null != this._event) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); + foreach( var __x in this._event ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("events",__w); + } + } AfterToJson(ref container); return container; } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdate.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdate.PowerShell.cs index b690b56c8a64..4f6a71ff80ce 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdate.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdate.PowerShell.cs @@ -201,9 +201,9 @@ internal NamespaceAssetUpdate(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { @@ -322,9 +322,9 @@ internal NamespaceAssetUpdate(global::System.Management.Automation.PSObject cont { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdateInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdate.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdate.cs index 9802c363869e..a0617bd5f534 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdate.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdate.cs @@ -84,10 +84,10 @@ public partial class NamespaceAssetUpdate : public bool? Enabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)Property).Enabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)Property).Enabled = value ?? default(bool); } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] - public System.Collections.Generic.List Event { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)Property).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)Property).Event = value ?? null /* arrayOf */; } + public System.Collections.Generic.List EventGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)Property).EventGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)Property).EventGroup = value ?? null /* arrayOf */; } /// Asset hardware revision number. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] @@ -325,7 +325,7 @@ public partial interface INamespaceAssetUpdate : PossibleTypes = new [] { typeof(bool) })] bool? Enabled { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -333,10 +333,10 @@ public partial interface INamespaceAssetUpdate : Read = true, Create = true, Update = true, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) })] - System.Collections.Generic.List Event { get; set; } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup) })] + System.Collections.Generic.List EventGroup { get; set; } /// Asset hardware revision number. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -500,9 +500,9 @@ internal partial interface INamespaceAssetUpdateInternal /// Enabled/disabled status of the asset. bool? Enabled { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// - System.Collections.Generic.List Event { get; set; } + System.Collections.Generic.List EventGroup { get; set; } /// Asset hardware revision number. string HardwareRevision { get; set; } /// diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.PowerShell.cs index e599ebb7b084..b722b52d9055 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.PowerShell.cs @@ -193,9 +193,9 @@ internal NamespaceAssetUpdateProperties(global::System.Collections.IDictionary c { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { @@ -306,9 +306,9 @@ internal NamespaceAssetUpdateProperties(global::System.Management.Automation.PSO { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAssetUpdatePropertiesInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.cs index 9658822a4985..a682b5091e5b 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.cs @@ -125,14 +125,14 @@ public partial class NamespaceAssetUpdateProperties : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public bool? Enabled { get => this._enabled; set => this._enabled = value; } - /// Backing field for property. - private System.Collections.Generic.List _event; + /// Backing field for property. + private System.Collections.Generic.List _eventGroup; /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public System.Collections.Generic.List Event { get => this._event; set => this._event = value; } + public System.Collections.Generic.List EventGroup { get => this._eventGroup; set => this._eventGroup = value; } /// Backing field for property. private string _hardwareRevision; @@ -380,7 +380,7 @@ public partial interface INamespaceAssetUpdateProperties : PossibleTypes = new [] { typeof(bool) })] bool? Enabled { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -388,10 +388,10 @@ public partial interface INamespaceAssetUpdateProperties : Read = true, Create = true, Update = true, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) })] - System.Collections.Generic.List Event { get; set; } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup) })] + System.Collections.Generic.List EventGroup { get; set; } /// Asset hardware revision number. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -544,9 +544,9 @@ internal partial interface INamespaceAssetUpdatePropertiesInternal /// Enabled/disabled status of the asset. bool? Enabled { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// - System.Collections.Generic.List Event { get; set; } + System.Collections.Generic.List EventGroup { get; set; } /// Asset hardware revision number. string HardwareRevision { get; set; } /// diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.json.cs index c6aa0694fd84..fe7677dca129 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetUpdateProperties.json.cs @@ -98,7 +98,7 @@ internal NamespaceAssetUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.Devic {_defaultEventsDestination = If( json?.PropertyT("defaultEventsDestinations"), out var __jsonDefaultEventsDestinations) ? If( __jsonDefaultEventsDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IEventDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestination.FromJson(__k) )) ))() : null : _defaultEventsDestination;} {_defaultStreamsDestination = If( json?.PropertyT("defaultStreamsDestinations"), out var __jsonDefaultStreamsDestinations) ? If( __jsonDefaultStreamsDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __g) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.StreamDestination.FromJson(__f) )) ))() : null : _defaultStreamsDestination;} {_dataset = If( json?.PropertyT("datasets"), out var __jsonDatasets) ? If( __jsonDatasets as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __b) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDataset) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDataset.FromJson(__a) )) ))() : null : _dataset;} - {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEvent.FromJson(___v) )) ))() : null : _event;} + {_eventGroup = If( json?.PropertyT("eventGroups"), out var __jsonEventGroups) ? If( __jsonEventGroups as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroup.FromJson(___v) )) ))() : null : _eventGroup;} {_stream = If( json?.PropertyT("streams"), out var __jsonStreams) ? If( __jsonStreams as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___r) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___r, (___q)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceStream) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceStream.FromJson(___q) )) ))() : null : _stream;} {_managementGroup = If( json?.PropertyT("managementGroups"), out var __jsonManagementGroups) ? If( __jsonManagementGroups as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___m) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___m, (___l)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IManagementGroup) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ManagementGroup.FromJson(___l) )) ))() : null : _managementGroup;} AfterFromJson(json); @@ -184,14 +184,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T } container.Add("datasets",__c); } - if (null != this._event) + if (null != this._eventGroup) { var ___x = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); - foreach( var ___y in this._event ) + foreach( var ___y in this._eventGroup ) { AddIf(___y?.ToJson(null, serializationMode) ,___x.Add); } - container.Add("events",___x); + container.Add("eventGroups",___x); } if (null != this._stream) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAsset.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAsset.PowerShell.cs index 6783ee82dc31..d161adf8d04e 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAsset.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAsset.PowerShell.cs @@ -181,14 +181,26 @@ internal NamespaceDiscoveredAsset(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).ExtendedLocationName = (string) content.GetValueForProperty("ExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).ExtendedLocationName, global::System.Convert.ToString); } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).DisplayName, global::System.Convert.ToString); + } if (content.Contains("AssetTypeRef")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).AssetTypeRef = (System.Collections.Generic.List) content.GetValueForProperty("AssetTypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).AssetTypeRef, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Description, global::System.Convert.ToString); + } if (content.Contains("DiscoveryId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).DiscoveryId = (string) content.GetValueForProperty("DiscoveryId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).DiscoveryId, global::System.Convert.ToString); } + if (content.Contains("ExternalAssetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).ExternalAssetId = (string) content.GetValueForProperty("ExternalAssetId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).ExternalAssetId, global::System.Convert.ToString); + } if (content.Contains("Version")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Version = (long?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Version, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); @@ -261,9 +273,9 @@ internal NamespaceDiscoveredAsset(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { @@ -370,14 +382,26 @@ internal NamespaceDiscoveredAsset(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).ExtendedLocationName = (string) content.GetValueForProperty("ExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).ExtendedLocationName, global::System.Convert.ToString); } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).DisplayName, global::System.Convert.ToString); + } if (content.Contains("AssetTypeRef")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).AssetTypeRef = (System.Collections.Generic.List) content.GetValueForProperty("AssetTypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).AssetTypeRef, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Description, global::System.Convert.ToString); + } if (content.Contains("DiscoveryId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).DiscoveryId = (string) content.GetValueForProperty("DiscoveryId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).DiscoveryId, global::System.Convert.ToString); } + if (content.Contains("ExternalAssetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).ExternalAssetId = (string) content.GetValueForProperty("ExternalAssetId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).ExternalAssetId, global::System.Convert.ToString); + } if (content.Contains("Version")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Version = (long?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Version, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); @@ -450,9 +474,9 @@ internal NamespaceDiscoveredAsset(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAsset.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAsset.cs index 9c9bc7154ffe..25a591c2fa1a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAsset.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAsset.cs @@ -73,6 +73,10 @@ public partial class NamespaceDiscoveredAsset : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public System.Collections.Generic.List DefaultStreamsDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).DefaultStreamsDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).DefaultStreamsDestination = value ?? null /* arrayOf */; } + /// Human-readable description of the asset. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).Description = value ?? null; } + /// Name of the device resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public string DeviceRefDeviceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).DeviceRefDeviceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).DeviceRefDeviceName = value ?? null; } @@ -85,15 +89,19 @@ public partial class NamespaceDiscoveredAsset : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public string DiscoveryId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).DiscoveryId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).DiscoveryId = value ?? null; } + /// Human-readable display name. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).DisplayName = value ?? null; } + /// Asset documentation reference. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public string DocumentationUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).DocumentationUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).DocumentationUri = value ?? null; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] - public System.Collections.Generic.List Event { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).Event = value ?? null /* arrayOf */; } + public System.Collections.Generic.List EventGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).EventGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).EventGroup = value ?? null /* arrayOf */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedLocation _extendedLocation; @@ -110,6 +118,10 @@ public partial class NamespaceDiscoveredAsset : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public string ExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedLocationInternal)ExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedLocationInternal)ExtendedLocation).Type = value ?? null; } + /// Asset ID provided by the customer. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string ExternalAssetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).ExternalAssetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).ExternalAssetId = value ?? null; } + /// Asset hardware revision number. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public string HardwareRevision { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).HardwareRevision; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)Property).HardwareRevision = value ?? null; } @@ -412,6 +424,17 @@ public partial interface INamespaceDiscoveredAsset : SerializedName = @"defaultStreamsDestinations", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) })] System.Collections.Generic.List DefaultStreamsDestination { get; set; } + /// Human-readable description of the asset. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Human-readable description of the asset.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } /// Name of the device resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -445,6 +468,17 @@ public partial interface INamespaceDiscoveredAsset : SerializedName = @"discoveryId", PossibleTypes = new [] { typeof(string) })] string DiscoveryId { get; set; } + /// Human-readable display name. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Human-readable display name.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } /// Asset documentation reference. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -457,7 +491,7 @@ public partial interface INamespaceDiscoveredAsset : PossibleTypes = new [] { typeof(string) })] string DocumentationUri { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -465,10 +499,10 @@ public partial interface INamespaceDiscoveredAsset : Read = true, Create = true, Update = true, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) })] - System.Collections.Generic.List Event { get; set; } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup) })] + System.Collections.Generic.List EventGroup { get; set; } /// The extended location name. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -491,6 +525,17 @@ public partial interface INamespaceDiscoveredAsset : SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string ExtendedLocationType { get; set; } + /// Asset ID provided by the customer. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Asset ID provided by the customer.", + SerializedName = @"externalAssetId", + PossibleTypes = new [] { typeof(string) })] + string ExternalAssetId { get; set; } /// Asset hardware revision number. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -657,6 +702,8 @@ internal partial interface INamespaceDiscoveredAssetInternal : string DefaultStreamsConfiguration { get; set; } /// Default destinations for a stream. System.Collections.Generic.List DefaultStreamsDestination { get; set; } + /// Human-readable description of the asset. + string Description { get; set; } /// /// Reference to the device that provides data for this asset. Must provide device name & endpoint on the device to use. /// @@ -667,18 +714,22 @@ internal partial interface INamespaceDiscoveredAssetInternal : string DeviceRefEndpointName { get; set; } /// Identifier used to detect changes in the asset. string DiscoveryId { get; set; } + /// Human-readable display name. + string DisplayName { get; set; } /// Asset documentation reference. string DocumentationUri { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// - System.Collections.Generic.List Event { get; set; } + System.Collections.Generic.List EventGroup { get; set; } /// The extended location. Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IExtendedLocation ExtendedLocation { get; set; } /// The extended location name. string ExtendedLocationName { get; set; } /// The extended location type. string ExtendedLocationType { get; set; } + /// Asset ID provided by the customer. + string ExternalAssetId { get; set; } /// Asset hardware revision number. string HardwareRevision { get; set; } /// diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.PowerShell.cs index 6115ca483e50..b004277e3571 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.PowerShell.cs @@ -117,14 +117,26 @@ internal NamespaceDiscoveredAssetProperties(global::System.Collections.IDictiona { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DeviceRef = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRef) content.GetValueForProperty("DeviceRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DeviceRef, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.DeviceRefTypeConverter.ConvertFrom); } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } if (content.Contains("AssetTypeRef")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).AssetTypeRef = (System.Collections.Generic.List) content.GetValueForProperty("AssetTypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).AssetTypeRef, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Description, global::System.Convert.ToString); + } if (content.Contains("DiscoveryId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DiscoveryId = (string) content.GetValueForProperty("DiscoveryId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DiscoveryId, global::System.Convert.ToString); } + if (content.Contains("ExternalAssetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).ExternalAssetId = (string) content.GetValueForProperty("ExternalAssetId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).ExternalAssetId, global::System.Convert.ToString); + } if (content.Contains("Version")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Version = (long) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Version, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); @@ -197,9 +209,9 @@ internal NamespaceDiscoveredAssetProperties(global::System.Collections.IDictiona { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { @@ -242,14 +254,26 @@ internal NamespaceDiscoveredAssetProperties(global::System.Management.Automation { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DeviceRef = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRef) content.GetValueForProperty("DeviceRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DeviceRef, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.DeviceRefTypeConverter.ConvertFrom); } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } if (content.Contains("AssetTypeRef")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).AssetTypeRef = (System.Collections.Generic.List) content.GetValueForProperty("AssetTypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).AssetTypeRef, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Description, global::System.Convert.ToString); + } if (content.Contains("DiscoveryId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DiscoveryId = (string) content.GetValueForProperty("DiscoveryId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).DiscoveryId, global::System.Convert.ToString); } + if (content.Contains("ExternalAssetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).ExternalAssetId = (string) content.GetValueForProperty("ExternalAssetId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).ExternalAssetId, global::System.Convert.ToString); + } if (content.Contains("Version")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Version = (long) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Version, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); @@ -322,9 +346,9 @@ internal NamespaceDiscoveredAssetProperties(global::System.Management.Automation { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetPropertiesInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.cs index a6b0fdb1250b..e725720b3ffb 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.cs @@ -97,6 +97,13 @@ public partial class NamespaceDiscoveredAssetProperties : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public System.Collections.Generic.List DefaultStreamsDestination { get => this._defaultStreamsDestination; set => this._defaultStreamsDestination = value; } + /// Backing field for property. + private string _description; + + /// Human-readable description of the asset. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string Description { get => this._description; set => this._description = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRef _deviceRef; @@ -121,6 +128,13 @@ public partial class NamespaceDiscoveredAssetProperties : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public string DiscoveryId { get => this._discoveryId; set => this._discoveryId = value; } + /// Backing field for property. + private string _displayName; + + /// Human-readable display name. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + /// Backing field for property. private string _documentationUri; @@ -128,14 +142,21 @@ public partial class NamespaceDiscoveredAssetProperties : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public string DocumentationUri { get => this._documentationUri; set => this._documentationUri = value; } - /// Backing field for property. - private System.Collections.Generic.List _event; + /// Backing field for property. + private System.Collections.Generic.List _eventGroup; /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public System.Collections.Generic.List Event { get => this._event; set => this._event = value; } + public System.Collections.Generic.List EventGroup { get => this._eventGroup; set => this._eventGroup = value; } + + /// Backing field for property. + private string _externalAssetId; + + /// Asset ID provided by the customer. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string ExternalAssetId { get => this._externalAssetId; set => this._externalAssetId = value; } /// Backing field for property. private string _hardwareRevision; @@ -358,6 +379,17 @@ public partial interface INamespaceDiscoveredAssetProperties : SerializedName = @"defaultStreamsDestinations", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) })] System.Collections.Generic.List DefaultStreamsDestination { get; set; } + /// Human-readable description of the asset. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Human-readable description of the asset.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } /// Name of the device resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = true, @@ -391,6 +423,17 @@ public partial interface INamespaceDiscoveredAssetProperties : SerializedName = @"discoveryId", PossibleTypes = new [] { typeof(string) })] string DiscoveryId { get; set; } + /// Human-readable display name. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Human-readable display name.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } /// Asset documentation reference. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -403,7 +446,7 @@ public partial interface INamespaceDiscoveredAssetProperties : PossibleTypes = new [] { typeof(string) })] string DocumentationUri { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -411,10 +454,21 @@ public partial interface INamespaceDiscoveredAssetProperties : Read = true, Create = true, Update = true, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) })] - System.Collections.Generic.List Event { get; set; } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup) })] + System.Collections.Generic.List EventGroup { get; set; } + /// Asset ID provided by the customer. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Asset ID provided by the customer.", + SerializedName = @"externalAssetId", + PossibleTypes = new [] { typeof(string) })] + string ExternalAssetId { get; set; } /// Asset hardware revision number. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -581,6 +635,8 @@ internal partial interface INamespaceDiscoveredAssetPropertiesInternal string DefaultStreamsConfiguration { get; set; } /// Default destinations for a stream. System.Collections.Generic.List DefaultStreamsDestination { get; set; } + /// Human-readable description of the asset. + string Description { get; set; } /// /// Reference to the device that provides data for this asset. Must provide device name & endpoint on the device to use. /// @@ -591,12 +647,16 @@ internal partial interface INamespaceDiscoveredAssetPropertiesInternal string DeviceRefEndpointName { get; set; } /// Identifier used to detect changes in the asset. string DiscoveryId { get; set; } + /// Human-readable display name. + string DisplayName { get; set; } /// Asset documentation reference. string DocumentationUri { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// - System.Collections.Generic.List Event { get; set; } + System.Collections.Generic.List EventGroup { get; set; } + /// Asset ID provided by the customer. + string ExternalAssetId { get; set; } /// Asset hardware revision number. string HardwareRevision { get; set; } /// diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.json.cs index bfb3836a8608..eeb00fbd18db 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetProperties.json.cs @@ -78,8 +78,11 @@ internal NamespaceDiscoveredAssetProperties(Microsoft.Azure.PowerShell.Cmdlets.D return; } {_deviceRef = If( json?.PropertyT("deviceRef"), out var __jsonDeviceRef) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.DeviceRef.FromJson(__jsonDeviceRef) : _deviceRef;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)_displayName;} {_assetTypeRef = If( json?.PropertyT("assetTypeRefs"), out var __jsonAssetTypeRefs) ? If( __jsonAssetTypeRefs as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _assetTypeRef;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;} {_discoveryId = If( json?.PropertyT("discoveryId"), out var __jsonDiscoveryId) ? (string)__jsonDiscoveryId : (string)_discoveryId;} + {_externalAssetId = If( json?.PropertyT("externalAssetId"), out var __jsonExternalAssetId) ? (string)__jsonExternalAssetId : (string)_externalAssetId;} {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (long)__jsonVersion : _version;} {_manufacturer = If( json?.PropertyT("manufacturer"), out var __jsonManufacturer) ? (string)__jsonManufacturer : (string)_manufacturer;} {_manufacturerUri = If( json?.PropertyT("manufacturerUri"), out var __jsonManufacturerUri) ? (string)__jsonManufacturerUri : (string)_manufacturerUri;} @@ -98,7 +101,7 @@ internal NamespaceDiscoveredAssetProperties(Microsoft.Azure.PowerShell.Cmdlets.D {_defaultEventsDestination = If( json?.PropertyT("defaultEventsDestinations"), out var __jsonDefaultEventsDestinations) ? If( __jsonDefaultEventsDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IEventDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestination.FromJson(__k) )) ))() : null : _defaultEventsDestination;} {_defaultStreamsDestination = If( json?.PropertyT("defaultStreamsDestinations"), out var __jsonDefaultStreamsDestinations) ? If( __jsonDefaultStreamsDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __g) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.StreamDestination.FromJson(__f) )) ))() : null : _defaultStreamsDestination;} {_dataset = If( json?.PropertyT("datasets"), out var __jsonDatasets) ? If( __jsonDatasets as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __b) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDataset) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredDataset.FromJson(__a) )) ))() : null : _dataset;} - {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEvent.FromJson(___v) )) ))() : null : _event;} + {_eventGroup = If( json?.PropertyT("eventGroups"), out var __jsonEventGroups) ? If( __jsonEventGroups as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroup.FromJson(___v) )) ))() : null : _eventGroup;} {_stream = If( json?.PropertyT("streams"), out var __jsonStreams) ? If( __jsonStreams as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___r) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___r, (___q)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredStream) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredStream.FromJson(___q) )) ))() : null : _stream;} {_managementGroup = If( json?.PropertyT("managementGroups"), out var __jsonManagementGroups) ? If( __jsonManagementGroups as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___m) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___m, (___l)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroup) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredManagementGroup.FromJson(___l) )) ))() : null : _managementGroup;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} @@ -126,6 +129,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T return container; } AddIf( null != this._deviceRef ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) this._deviceRef.ToJson(null,serializationMode) : null, "deviceRef" ,container.Add ); + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); if (null != this._assetTypeRef) { var __w = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); @@ -135,7 +139,12 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T } container.Add("assetTypeRefs",__w); } + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); AddIf( null != (((object)this._discoveryId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._discoveryId.ToString()) : null, "discoveryId" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != (((object)this._externalAssetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._externalAssetId.ToString()) : null, "externalAssetId" ,container.Add ); + } AddIf( (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNumber(this._version), "version" ,container.Add ); AddIf( null != (((object)this._manufacturer)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._manufacturer.ToString()) : null, "manufacturer" ,container.Add ); AddIf( null != (((object)this._manufacturerUri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._manufacturerUri.ToString()) : null, "manufacturerUri" ,container.Add ); @@ -186,14 +195,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T } container.Add("datasets",__c); } - if (null != this._event) + if (null != this._eventGroup) { var ___x = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); - foreach( var ___y in this._event ) + foreach( var ___y in this._eventGroup ) { AddIf(___y?.ToJson(null, serializationMode) ,___x.Add); } - container.Add("events",___x); + container.Add("eventGroups",___x); } if (null != this._stream) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdate.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdate.PowerShell.cs index 11b503c6870f..e24389943d87 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdate.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdate.PowerShell.cs @@ -121,10 +121,18 @@ internal NamespaceDiscoveredAssetUpdate(global::System.Collections.IDictionary c { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DeviceRef = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRefUpdate) content.GetValueForProperty("DeviceRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DeviceRef, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.DeviceRefUpdateTypeConverter.ConvertFrom); } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } if (content.Contains("AssetTypeRef")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).AssetTypeRef = (System.Collections.Generic.List) content.GetValueForProperty("AssetTypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).AssetTypeRef, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Description, global::System.Convert.ToString); + } if (content.Contains("DiscoveryId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DiscoveryId = (string) content.GetValueForProperty("DiscoveryId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DiscoveryId, global::System.Convert.ToString); @@ -201,9 +209,9 @@ internal NamespaceDiscoveredAssetUpdate(global::System.Collections.IDictionary c { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { @@ -250,10 +258,18 @@ internal NamespaceDiscoveredAssetUpdate(global::System.Management.Automation.PSO { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DeviceRef = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRefUpdate) content.GetValueForProperty("DeviceRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DeviceRef, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.DeviceRefUpdateTypeConverter.ConvertFrom); } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } if (content.Contains("AssetTypeRef")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).AssetTypeRef = (System.Collections.Generic.List) content.GetValueForProperty("AssetTypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).AssetTypeRef, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Description, global::System.Convert.ToString); + } if (content.Contains("DiscoveryId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DiscoveryId = (string) content.GetValueForProperty("DiscoveryId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).DiscoveryId, global::System.Convert.ToString); @@ -330,9 +346,9 @@ internal NamespaceDiscoveredAssetUpdate(global::System.Management.Automation.PSO { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdateInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdate.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdate.cs index 67394598dbbf..c5d4731d3b97 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdate.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdate.cs @@ -67,6 +67,10 @@ public partial class NamespaceDiscoveredAssetUpdate : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public System.Collections.Generic.List DefaultStreamsDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).DefaultStreamsDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).DefaultStreamsDestination = value ?? null /* arrayOf */; } + /// Human-readable description of the asset. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).Description = value ?? null; } + /// Name of the device resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public string DeviceRefDeviceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).DeviceRefDeviceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).DeviceRefDeviceName = value ?? null; } @@ -79,15 +83,19 @@ public partial class NamespaceDiscoveredAssetUpdate : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public string DiscoveryId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).DiscoveryId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).DiscoveryId = value ?? null; } + /// Human-readable display name. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).DisplayName = value ?? null; } + /// Asset documentation reference. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] public string DocumentationUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).DocumentationUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).DocumentationUri = value ?? null; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] - public System.Collections.Generic.List Event { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).Event; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).Event = value ?? null /* arrayOf */; } + public System.Collections.Generic.List EventGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).EventGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)Property).EventGroup = value ?? null /* arrayOf */; } /// Asset hardware revision number. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Inlined)] @@ -287,6 +295,17 @@ public partial interface INamespaceDiscoveredAssetUpdate : SerializedName = @"defaultStreamsDestinations", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) })] System.Collections.Generic.List DefaultStreamsDestination { get; set; } + /// Human-readable description of the asset. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Human-readable description of the asset.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } /// Name of the device resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -320,6 +339,17 @@ public partial interface INamespaceDiscoveredAssetUpdate : SerializedName = @"discoveryId", PossibleTypes = new [] { typeof(string) })] string DiscoveryId { get; set; } + /// Human-readable display name. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Human-readable display name.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } /// Asset documentation reference. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -332,7 +362,7 @@ public partial interface INamespaceDiscoveredAssetUpdate : PossibleTypes = new [] { typeof(string) })] string DocumentationUri { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -340,10 +370,10 @@ public partial interface INamespaceDiscoveredAssetUpdate : Read = true, Create = true, Update = true, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) })] - System.Collections.Generic.List Event { get; set; } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup) })] + System.Collections.Generic.List EventGroup { get; set; } /// Asset hardware revision number. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -509,6 +539,8 @@ internal partial interface INamespaceDiscoveredAssetUpdateInternal string DefaultStreamsConfiguration { get; set; } /// Default destinations for a stream. System.Collections.Generic.List DefaultStreamsDestination { get; set; } + /// Human-readable description of the asset. + string Description { get; set; } /// /// Reference to the device that provides data for this asset. Must provide device name & endpoint on the device to use. /// @@ -519,12 +551,14 @@ internal partial interface INamespaceDiscoveredAssetUpdateInternal string DeviceRefEndpointName { get; set; } /// Identifier used to detect changes in the asset. string DiscoveryId { get; set; } + /// Human-readable display name. + string DisplayName { get; set; } /// Asset documentation reference. string DocumentationUri { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// - System.Collections.Generic.List Event { get; set; } + System.Collections.Generic.List EventGroup { get; set; } /// Asset hardware revision number. string HardwareRevision { get; set; } /// diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.PowerShell.cs index c08e003a174e..7cc2a687b5bb 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.PowerShell.cs @@ -118,10 +118,18 @@ internal NamespaceDiscoveredAssetUpdateProperties(global::System.Collections.IDi { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DeviceRef = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRefUpdate) content.GetValueForProperty("DeviceRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DeviceRef, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.DeviceRefUpdateTypeConverter.ConvertFrom); } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } if (content.Contains("AssetTypeRef")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).AssetTypeRef = (System.Collections.Generic.List) content.GetValueForProperty("AssetTypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).AssetTypeRef, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } if (content.Contains("DiscoveryId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DiscoveryId = (string) content.GetValueForProperty("DiscoveryId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DiscoveryId, global::System.Convert.ToString); @@ -198,9 +206,9 @@ internal NamespaceDiscoveredAssetUpdateProperties(global::System.Collections.IDi { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { @@ -239,10 +247,18 @@ internal NamespaceDiscoveredAssetUpdateProperties(global::System.Management.Auto { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DeviceRef = (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRefUpdate) content.GetValueForProperty("DeviceRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DeviceRef, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.DeviceRefUpdateTypeConverter.ConvertFrom); } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } if (content.Contains("AssetTypeRef")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).AssetTypeRef = (System.Collections.Generic.List) content.GetValueForProperty("AssetTypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).AssetTypeRef, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } if (content.Contains("DiscoveryId")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DiscoveryId = (string) content.GetValueForProperty("DiscoveryId",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).DiscoveryId, global::System.Convert.ToString); @@ -319,9 +335,9 @@ internal NamespaceDiscoveredAssetUpdateProperties(global::System.Management.Auto { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Dataset = (System.Collections.Generic.List) content.GetValueForProperty("Dataset",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Dataset, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredDatasetTypeConverter.ConvertFrom)); } - if (content.Contains("Event")) + if (content.Contains("EventGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).EventGroup = (System.Collections.Generic.List) content.GetValueForProperty("EventGroup",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAssetUpdatePropertiesInternal)this).EventGroup, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroupTypeConverter.ConvertFrom)); } if (content.Contains("Stream")) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.cs index bf84725b0bd7..dffb1a973fb9 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.cs @@ -97,6 +97,13 @@ public partial class NamespaceDiscoveredAssetUpdateProperties : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public System.Collections.Generic.List DefaultStreamsDestination { get => this._defaultStreamsDestination; set => this._defaultStreamsDestination = value; } + /// Backing field for property. + private string _description; + + /// Human-readable description of the asset. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string Description { get => this._description; set => this._description = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IDeviceRefUpdate _deviceRef; @@ -121,6 +128,13 @@ public partial class NamespaceDiscoveredAssetUpdateProperties : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public string DiscoveryId { get => this._discoveryId; set => this._discoveryId = value; } + /// Backing field for property. + private string _displayName; + + /// Human-readable display name. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + /// Backing field for property. private string _documentationUri; @@ -128,14 +142,14 @@ public partial class NamespaceDiscoveredAssetUpdateProperties : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public string DocumentationUri { get => this._documentationUri; set => this._documentationUri = value; } - /// Backing field for property. - private System.Collections.Generic.List _event; + /// Backing field for property. + private System.Collections.Generic.List _eventGroup; /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public System.Collections.Generic.List Event { get => this._event; set => this._event = value; } + public System.Collections.Generic.List EventGroup { get => this._eventGroup; set => this._eventGroup = value; } /// Backing field for property. private string _hardwareRevision; @@ -350,6 +364,17 @@ public partial interface INamespaceDiscoveredAssetUpdateProperties : SerializedName = @"defaultStreamsDestinations", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) })] System.Collections.Generic.List DefaultStreamsDestination { get; set; } + /// Human-readable description of the asset. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Human-readable description of the asset.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } /// Name of the device resource [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -383,6 +408,17 @@ public partial interface INamespaceDiscoveredAssetUpdateProperties : SerializedName = @"discoveryId", PossibleTypes = new [] { typeof(string) })] string DiscoveryId { get; set; } + /// Human-readable display name. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Human-readable display name.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } /// Asset documentation reference. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -395,7 +431,7 @@ public partial interface INamespaceDiscoveredAssetUpdateProperties : PossibleTypes = new [] { typeof(string) })] string DocumentationUri { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -403,10 +439,10 @@ public partial interface INamespaceDiscoveredAssetUpdateProperties : Read = true, Create = true, Update = true, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) })] - System.Collections.Generic.List Event { get; set; } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup) })] + System.Collections.Generic.List EventGroup { get; set; } /// Asset hardware revision number. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -561,6 +597,8 @@ internal partial interface INamespaceDiscoveredAssetUpdatePropertiesInternal string DefaultStreamsConfiguration { get; set; } /// Default destinations for a stream. System.Collections.Generic.List DefaultStreamsDestination { get; set; } + /// Human-readable description of the asset. + string Description { get; set; } /// /// Reference to the device that provides data for this asset. Must provide device name & endpoint on the device to use. /// @@ -571,12 +609,14 @@ internal partial interface INamespaceDiscoveredAssetUpdatePropertiesInternal string DeviceRefEndpointName { get; set; } /// Identifier used to detect changes in the asset. string DiscoveryId { get; set; } + /// Human-readable display name. + string DisplayName { get; set; } /// Asset documentation reference. string DocumentationUri { get; set; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// - System.Collections.Generic.List Event { get; set; } + System.Collections.Generic.List EventGroup { get; set; } /// Asset hardware revision number. string HardwareRevision { get; set; } /// diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.json.cs index 0984460c45fc..16c0f52f4e86 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredAssetUpdateProperties.json.cs @@ -78,7 +78,9 @@ internal NamespaceDiscoveredAssetUpdateProperties(Microsoft.Azure.PowerShell.Cmd return; } {_deviceRef = If( json?.PropertyT("deviceRef"), out var __jsonDeviceRef) ? Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.DeviceRefUpdate.FromJson(__jsonDeviceRef) : _deviceRef;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)_displayName;} {_assetTypeRef = If( json?.PropertyT("assetTypeRefs"), out var __jsonAssetTypeRefs) ? If( __jsonAssetTypeRefs as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _assetTypeRef;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;} {_discoveryId = If( json?.PropertyT("discoveryId"), out var __jsonDiscoveryId) ? (string)__jsonDiscoveryId : (string)_discoveryId;} {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (long?)__jsonVersion : _version;} {_manufacturer = If( json?.PropertyT("manufacturer"), out var __jsonManufacturer) ? (string)__jsonManufacturer : (string)_manufacturer;} @@ -98,7 +100,7 @@ internal NamespaceDiscoveredAssetUpdateProperties(Microsoft.Azure.PowerShell.Cmd {_defaultEventsDestination = If( json?.PropertyT("defaultEventsDestinations"), out var __jsonDefaultEventsDestinations) ? If( __jsonDefaultEventsDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IEventDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestination.FromJson(__k) )) ))() : null : _defaultEventsDestination;} {_defaultStreamsDestination = If( json?.PropertyT("defaultStreamsDestinations"), out var __jsonDefaultStreamsDestinations) ? If( __jsonDefaultStreamsDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __g) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.StreamDestination.FromJson(__f) )) ))() : null : _defaultStreamsDestination;} {_dataset = If( json?.PropertyT("datasets"), out var __jsonDatasets) ? If( __jsonDatasets as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __b) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDataset) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredDataset.FromJson(__a) )) ))() : null : _dataset;} - {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEvent.FromJson(___v) )) ))() : null : _event;} + {_eventGroup = If( json?.PropertyT("eventGroups"), out var __jsonEventGroups) ? If( __jsonEventGroups as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroup.FromJson(___v) )) ))() : null : _eventGroup;} {_stream = If( json?.PropertyT("streams"), out var __jsonStreams) ? If( __jsonStreams as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___r) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___r, (___q)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredStream) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredStream.FromJson(___q) )) ))() : null : _stream;} {_managementGroup = If( json?.PropertyT("managementGroups"), out var __jsonManagementGroups) ? If( __jsonManagementGroups as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var ___m) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(___m, (___l)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroup) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredManagementGroup.FromJson(___l) )) ))() : null : _managementGroup;} AfterFromJson(json); @@ -126,6 +128,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T return container; } AddIf( null != this._deviceRef ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) this._deviceRef.ToJson(null,serializationMode) : null, "deviceRef" ,container.Add ); + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); if (null != this._assetTypeRef) { var __w = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); @@ -135,6 +138,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T } container.Add("assetTypeRefs",__w); } + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); AddIf( null != (((object)this._discoveryId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._discoveryId.ToString()) : null, "discoveryId" ,container.Add ); AddIf( null != this._version ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNumber((long)this._version) : null, "version" ,container.Add ); AddIf( null != (((object)this._manufacturer)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._manufacturer.ToString()) : null, "manufacturer" ,container.Add ); @@ -186,14 +190,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T } container.Add("datasets",__c); } - if (null != this._event) + if (null != this._eventGroup) { var ___x = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); - foreach( var ___y in this._event ) + foreach( var ___y in this._eventGroup ) { AddIf(___y?.ToJson(null, serializationMode) ,___x.Add); } - container.Add("events",___x); + container.Add("eventGroups",___x); } if (null != this._stream) { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.PowerShell.cs index 3a15a80607d8..aaec9735e6dd 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.PowerShell.cs @@ -113,9 +113,9 @@ internal NamespaceDiscoveredEvent(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("EventNotifier")) + if (content.Contains("DataSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).EventNotifier = (string) content.GetValueForProperty("EventNotifier",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).EventNotifier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).DataSource, global::System.Convert.ToString); } if (content.Contains("EventConfiguration")) { @@ -129,10 +129,6 @@ internal NamespaceDiscoveredEvent(global::System.Collections.IDictionary content { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).TypeRef = (string) content.GetValueForProperty("TypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).TypeRef, global::System.Convert.ToString); } - if (content.Contains("DataPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).DataPoint = (System.Collections.Generic.List) content.GetValueForProperty("DataPoint",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).DataPoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventDataPointTypeConverter.ConvertFrom)); - } if (content.Contains("LastUpdatedOn")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).LastUpdatedOn = (global::System.DateTime?) content.GetValueForProperty("LastUpdatedOn",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).LastUpdatedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); @@ -158,9 +154,9 @@ internal NamespaceDiscoveredEvent(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("EventNotifier")) + if (content.Contains("DataSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).EventNotifier = (string) content.GetValueForProperty("EventNotifier",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).EventNotifier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).DataSource, global::System.Convert.ToString); } if (content.Contains("EventConfiguration")) { @@ -174,10 +170,6 @@ internal NamespaceDiscoveredEvent(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).TypeRef = (string) content.GetValueForProperty("TypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).TypeRef, global::System.Convert.ToString); } - if (content.Contains("DataPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).DataPoint = (System.Collections.Generic.List) content.GetValueForProperty("DataPoint",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).DataPoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventDataPointTypeConverter.ConvertFrom)); - } if (content.Contains("LastUpdatedOn")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).LastUpdatedOn = (global::System.DateTime?) content.GetValueForProperty("LastUpdatedOn",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal)this).LastUpdatedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.cs index 4e4745b5f317..3b984a2195b0 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.cs @@ -13,14 +13,12 @@ public partial class NamespaceDiscoveredEvent : Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventInternal { - /// Backing field for property. - private System.Collections.Generic.List _dataPoint; + /// Backing field for property. + private string _dataSource; - /// - /// Array of data points that are part of the event. Each data point can have a per-data point configuration. - /// + /// Reference to a data source for a given event. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public System.Collections.Generic.List DataPoint { get => this._dataPoint; set => this._dataPoint = value; } + public string DataSource { get => this._dataSource; set => this._dataSource = value; } /// Backing field for property. private System.Collections.Generic.List _destination; @@ -39,15 +37,6 @@ public partial class NamespaceDiscoveredEvent : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public string EventConfiguration { get => this._eventConfiguration; set => this._eventConfiguration = value; } - /// Backing field for property. - private string _eventNotifier; - - /// - /// The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public string EventNotifier { get => this._eventNotifier; set => this._eventNotifier = value; } - /// Backing field for property. private global::System.DateTime? _lastUpdatedOn; @@ -79,19 +68,17 @@ public NamespaceDiscoveredEvent() public partial interface INamespaceDiscoveredEvent : Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable { - /// - /// Array of data points that are part of the event. Each data point can have a per-data point configuration. - /// + /// Reference to a data source for a given event. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Array of data points that are part of the event. Each data point can have a per-data point configuration.", - SerializedName = @"dataPoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPoint) })] - System.Collections.Generic.List DataPoint { get; set; } + Description = @"Reference to a data source for a given event.", + SerializedName = @"dataSource", + PossibleTypes = new [] { typeof(string) })] + string DataSource { get; set; } /// Destinations for an event. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -117,19 +104,6 @@ public partial interface INamespaceDiscoveredEvent : SerializedName = @"eventConfiguration", PossibleTypes = new [] { typeof(string) })] string EventConfiguration { get; set; } - /// - /// The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.", - SerializedName = @"eventNotifier", - PossibleTypes = new [] { typeof(string) })] - string EventNotifier { get; set; } /// UTC timestamp indicating when the event was added or modified. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -169,10 +143,8 @@ public partial interface INamespaceDiscoveredEvent : internal partial interface INamespaceDiscoveredEventInternal { - /// - /// Array of data points that are part of the event. Each data point can have a per-data point configuration. - /// - System.Collections.Generic.List DataPoint { get; set; } + /// Reference to a data source for a given event. + string DataSource { get; set; } /// Destinations for an event. System.Collections.Generic.List Destination { get; set; } /// @@ -180,10 +152,6 @@ internal partial interface INamespaceDiscoveredEventInternal /// like, publishingInterval, samplingInterval, and queueSize. /// string EventConfiguration { get; set; } - /// - /// The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - /// - string EventNotifier { get; set; } /// UTC timestamp indicating when the event was added or modified. global::System.DateTime? LastUpdatedOn { get; set; } /// The name of the event. diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.json.cs index 8e49cd87db3f..2967ea026eac 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEvent.json.cs @@ -78,11 +78,10 @@ internal NamespaceDiscoveredEvent(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegis return; } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_eventNotifier = If( json?.PropertyT("eventNotifier"), out var __jsonEventNotifier) ? (string)__jsonEventNotifier : (string)_eventNotifier;} + {_dataSource = If( json?.PropertyT("dataSource"), out var __jsonDataSource) ? (string)__jsonDataSource : (string)_dataSource;} {_eventConfiguration = If( json?.PropertyT("eventConfiguration"), out var __jsonEventConfiguration) ? (string)__jsonEventConfiguration : (string)_eventConfiguration;} {_destination = If( json?.PropertyT("destinations"), out var __jsonDestinations) ? If( __jsonDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IEventDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestination.FromJson(__u) )) ))() : null : _destination;} {_typeRef = If( json?.PropertyT("typeRef"), out var __jsonTypeRef) ? (string)__jsonTypeRef : (string)_typeRef;} - {_dataPoint = If( json?.PropertyT("dataPoints"), out var __jsonDataPoints) ? If( __jsonDataPoints as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPoint) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventDataPoint.FromJson(__p) )) ))() : null : _dataPoint;} {_lastUpdatedOn = If( json?.PropertyT("lastUpdatedOn"), out var __jsonLastUpdatedOn) ? global::System.DateTime.TryParse((string)__jsonLastUpdatedOn, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastUpdatedOnValue) ? __jsonLastUpdatedOnValue : _lastUpdatedOn : _lastUpdatedOn;} AfterFromJson(json); } @@ -107,7 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T return container; } AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._eventNotifier)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._eventNotifier.ToString()) : null, "eventNotifier" ,container.Add ); + AddIf( null != (((object)this._dataSource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._dataSource.ToString()) : null, "dataSource" ,container.Add ); AddIf( null != (((object)this._eventConfiguration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._eventConfiguration.ToString()) : null, "eventConfiguration" ,container.Add ); if (null != this._destination) { @@ -119,15 +118,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T container.Add("destinations",__w); } AddIf( null != (((object)this._typeRef)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._typeRef.ToString()) : null, "typeRef" ,container.Add ); - if (null != this._dataPoint) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); - foreach( var __s in this._dataPoint ) - { - AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); - } - container.Add("dataPoints",__r); - } AddIf( null != this._lastUpdatedOn ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._lastUpdatedOn?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastUpdatedOn" ,container.Add ); AfterToJson(ref container); return container; diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.cs deleted file mode 100644 index 54501c907e1e..000000000000 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.cs +++ /dev/null @@ -1,129 +0,0 @@ -// 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) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; - - /// Defines the discovered event data point properties. - public partial class NamespaceDiscoveredEventDataPoint : - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPoint, - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal - { - - /// Backing field for property. - private string _dataPointConfiguration; - - /// - /// Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration - /// like, publishingInterval, samplingInterval, and queueSize. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public string DataPointConfiguration { get => this._dataPointConfiguration; set => this._dataPointConfiguration = value; } - - /// Backing field for property. - private string _dataSource; - - /// - /// The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public string DataSource { get => this._dataSource; set => this._dataSource = value; } - - /// Backing field for property. - private global::System.DateTime? _lastUpdatedOn; - - /// UTC timestamp indicating when the data point was added or modified. - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public global::System.DateTime? LastUpdatedOn { get => this._lastUpdatedOn; set => this._lastUpdatedOn = value; } - - /// Backing field for property. - private string _name; - - /// The name of the data point. - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Creates an new instance. - public NamespaceDiscoveredEventDataPoint() - { - - } - } - /// Defines the discovered event data point properties. - public partial interface INamespaceDiscoveredEventDataPoint : - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable - { - /// - /// Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration - /// like, publishingInterval, samplingInterval, and queueSize. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.", - SerializedName = @"dataPointConfiguration", - PossibleTypes = new [] { typeof(string) })] - string DataPointConfiguration { get; set; } - /// - /// The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.", - SerializedName = @"dataSource", - PossibleTypes = new [] { typeof(string) })] - string DataSource { get; set; } - /// UTC timestamp indicating when the data point was added or modified. - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"UTC timestamp indicating when the data point was added or modified.", - SerializedName = @"lastUpdatedOn", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastUpdatedOn { get; set; } - /// The name of the data point. - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the data point.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - - } - /// Defines the discovered event data point properties. - internal partial interface INamespaceDiscoveredEventDataPointInternal - - { - /// - /// Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration - /// like, publishingInterval, samplingInterval, and queueSize. - /// - string DataPointConfiguration { get; set; } - /// - /// The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - /// - string DataSource { get; set; } - /// UTC timestamp indicating when the data point was added or modified. - global::System.DateTime? LastUpdatedOn { get; set; } - /// The name of the data point. - string Name { get; set; } - - } -} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.PowerShell.cs new file mode 100644 index 000000000000..65f51cbcabd8 --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.PowerShell.cs @@ -0,0 +1,204 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell; + + /// Defines the discovered event group properties. + [System.ComponentModel.TypeConverter(typeof(NamespaceDiscoveredEventGroupTypeConverter))] + public partial class NamespaceDiscoveredEventGroup + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NamespaceDiscoveredEventGroup(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NamespaceDiscoveredEventGroup(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NamespaceDiscoveredEventGroup(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("DataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).DataSource, global::System.Convert.ToString); + } + if (content.Contains("EventGroupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).EventGroupConfiguration = (string) content.GetValueForProperty("EventGroupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).EventGroupConfiguration, global::System.Convert.ToString); + } + if (content.Contains("DefaultDestination")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).DefaultDestination = (System.Collections.Generic.List) content.GetValueForProperty("DefaultDestination",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).DefaultDestination, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestinationTypeConverter.ConvertFrom)); + } + if (content.Contains("TypeRef")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).TypeRef = (string) content.GetValueForProperty("TypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).TypeRef, global::System.Convert.ToString); + } + if (content.Contains("Event")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal NamespaceDiscoveredEventGroup(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("DataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).DataSource, global::System.Convert.ToString); + } + if (content.Contains("EventGroupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).EventGroupConfiguration = (string) content.GetValueForProperty("EventGroupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).EventGroupConfiguration, global::System.Convert.ToString); + } + if (content.Contains("DefaultDestination")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).DefaultDestination = (System.Collections.Generic.List) content.GetValueForProperty("DefaultDestination",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).DefaultDestination, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestinationTypeConverter.ConvertFrom)); + } + if (content.Contains("TypeRef")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).TypeRef = (string) content.GetValueForProperty("TypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).TypeRef, global::System.Convert.ToString); + } + if (content.Contains("Event")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines the discovered event group properties. + [System.ComponentModel.TypeConverter(typeof(NamespaceDiscoveredEventGroupTypeConverter))] + public partial interface INamespaceDiscoveredEventGroup + + { + + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.TypeConverter.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.TypeConverter.cs similarity index 83% rename from generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.TypeConverter.cs rename to generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.TypeConverter.cs index cdb61e99c88a..fc9c5203d37a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.TypeConverter.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class NamespaceDiscoveredEventDataPointTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class NamespaceDiscoveredEventGroupTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class NamespaceDiscoveredEventDataPointTypeConverter : global::Sy public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,32 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup).IsAssignableFrom(type)) { return sourceValue; } try { - return NamespaceDiscoveredEventDataPoint.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return NamespaceDiscoveredEventGroup.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -128,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespac } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return NamespaceDiscoveredEventDataPoint.DeserializeFromPSObject(sourceValue); + return NamespaceDiscoveredEventGroup.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return NamespaceDiscoveredEventDataPoint.DeserializeFromDictionary(sourceValue); + return NamespaceDiscoveredEventGroup.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.cs new file mode 100644 index 000000000000..f31920201ca7 --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.cs @@ -0,0 +1,178 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; + + /// Defines the discovered event group properties. + public partial class NamespaceDiscoveredEventGroup : + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup, + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroupInternal + { + + /// Backing field for property. + private string _dataSource; + + /// + /// The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on + /// the asset. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string DataSource { get => this._dataSource; set => this._dataSource = value; } + + /// Backing field for property. + private System.Collections.Generic.List _defaultDestination; + + /// + /// Destinations for events. Default destinations when destinations is not defined at the event level. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public System.Collections.Generic.List DefaultDestination { get => this._defaultDestination; set => this._defaultDestination = value; } + + /// Backing field for property. + private System.Collections.Generic.List _event; + + /// Array of events that are part of the event group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public System.Collections.Generic.List Event { get => this._event; set => this._event = value; } + + /// Backing field for property. + private string _eventGroupConfiguration; + + /// + /// Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration + /// like, publishingInterval, samplingInterval, and queueSize. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string EventGroupConfiguration { get => this._eventGroupConfiguration; set => this._eventGroupConfiguration = value; } + + /// Backing field for property. + private string _name; + + /// The name of the event group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _typeRef; + + /// URI or type definition ID. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string TypeRef { get => this._typeRef; set => this._typeRef = value; } + + /// Creates an new instance. + public NamespaceDiscoveredEventGroup() + { + + } + } + /// Defines the discovered event group properties. + public partial interface INamespaceDiscoveredEventGroup : + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable + { + /// + /// The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on + /// the asset. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset.", + SerializedName = @"dataSource", + PossibleTypes = new [] { typeof(string) })] + string DataSource { get; set; } + /// + /// Destinations for events. Default destinations when destinations is not defined at the event level. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Destinations for events. Default destinations when destinations is not defined at the event level.", + SerializedName = @"defaultDestinations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IEventDestination) })] + System.Collections.Generic.List DefaultDestination { get; set; } + /// Array of events that are part of the event group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Array of events that are part of the event group.", + SerializedName = @"events", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) })] + System.Collections.Generic.List Event { get; set; } + /// + /// Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration + /// like, publishingInterval, samplingInterval, and queueSize. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.", + SerializedName = @"eventGroupConfiguration", + PossibleTypes = new [] { typeof(string) })] + string EventGroupConfiguration { get; set; } + /// The name of the event group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the event group.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// URI or type definition ID. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"URI or type definition ID.", + SerializedName = @"typeRef", + PossibleTypes = new [] { typeof(string) })] + string TypeRef { get; set; } + + } + /// Defines the discovered event group properties. + internal partial interface INamespaceDiscoveredEventGroupInternal + + { + /// + /// The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on + /// the asset. + /// + string DataSource { get; set; } + /// + /// Destinations for events. Default destinations when destinations is not defined at the event level. + /// + System.Collections.Generic.List DefaultDestination { get; set; } + /// Array of events that are part of the event group. + System.Collections.Generic.List Event { get; set; } + /// + /// Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration + /// like, publishingInterval, samplingInterval, and queueSize. + /// + string EventGroupConfiguration { get; set; } + /// The name of the event group. + string Name { get; set; } + /// URI or type definition ID. + string TypeRef { get; set; } + + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.json.cs similarity index 62% rename from generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.json.cs rename to generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.json.cs index 7fb86702e59b..f664f0df15d0 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models { using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; - /// Defines the discovered event data point properties. - public partial class NamespaceDiscoveredEventDataPoint + /// Defines the discovered event group properties. + public partial class NamespaceDiscoveredEventGroup { /// @@ -54,22 +54,22 @@ public partial class NamespaceDiscoveredEventDataPoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new NamespaceDiscoveredEventDataPoint(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new NamespaceDiscoveredEventGroup(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from. - internal NamespaceDiscoveredEventDataPoint(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json) + internal NamespaceDiscoveredEventGroup(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -79,19 +79,21 @@ internal NamespaceDiscoveredEventDataPoint(Microsoft.Azure.PowerShell.Cmdlets.De } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} {_dataSource = If( json?.PropertyT("dataSource"), out var __jsonDataSource) ? (string)__jsonDataSource : (string)_dataSource;} - {_dataPointConfiguration = If( json?.PropertyT("dataPointConfiguration"), out var __jsonDataPointConfiguration) ? (string)__jsonDataPointConfiguration : (string)_dataPointConfiguration;} - {_lastUpdatedOn = If( json?.PropertyT("lastUpdatedOn"), out var __jsonLastUpdatedOn) ? global::System.DateTime.TryParse((string)__jsonLastUpdatedOn, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastUpdatedOnValue) ? __jsonLastUpdatedOnValue : _lastUpdatedOn : _lastUpdatedOn;} + {_eventGroupConfiguration = If( json?.PropertyT("eventGroupConfiguration"), out var __jsonEventGroupConfiguration) ? (string)__jsonEventGroupConfiguration : (string)_eventGroupConfiguration;} + {_defaultDestination = If( json?.PropertyT("defaultDestinations"), out var __jsonDefaultDestinations) ? If( __jsonDefaultDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IEventDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestination.FromJson(__u) )) ))() : null : _defaultDestination;} + {_typeRef = If( json?.PropertyT("typeRef"), out var __jsonTypeRef) ? (string)__jsonTypeRef : (string)_typeRef;} + {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEvent.FromJson(__p) )) ))() : null : _event;} AfterFromJson(json); } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode) { @@ -105,8 +107,26 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T } AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); AddIf( null != (((object)this._dataSource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._dataSource.ToString()) : null, "dataSource" ,container.Add ); - AddIf( null != (((object)this._dataPointConfiguration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._dataPointConfiguration.ToString()) : null, "dataPointConfiguration" ,container.Add ); - AddIf( null != this._lastUpdatedOn ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._lastUpdatedOn?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastUpdatedOn" ,container.Add ); + AddIf( null != (((object)this._eventGroupConfiguration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._eventGroupConfiguration.ToString()) : null, "eventGroupConfiguration" ,container.Add ); + if (null != this._defaultDestination) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); + foreach( var __x in this._defaultDestination ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("defaultDestinations",__w); + } + AddIf( null != (((object)this._typeRef)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._typeRef.ToString()) : null, "typeRef" ,container.Add ); + if (null != this._event) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); + foreach( var __s in this._event ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("events",__r); + } AfterToJson(ref container); return container; } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.PowerShell.cs index 3c122bd918c7..a7b2cde59560 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.PowerShell.cs @@ -125,6 +125,10 @@ internal NamespaceDiscoveredManagementGroup(global::System.Collections.IDictiona { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).TypeRef = (string) content.GetValueForProperty("TypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).TypeRef, global::System.Convert.ToString); } + if (content.Contains("DataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).DataSource, global::System.Convert.ToString); + } if (content.Contains("DefaultTopic")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).DefaultTopic = (string) content.GetValueForProperty("DefaultTopic",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).DefaultTopic, global::System.Convert.ToString); @@ -170,6 +174,10 @@ internal NamespaceDiscoveredManagementGroup(global::System.Management.Automation { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).TypeRef = (string) content.GetValueForProperty("TypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).TypeRef, global::System.Convert.ToString); } + if (content.Contains("DataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).DataSource, global::System.Convert.ToString); + } if (content.Contains("DefaultTopic")) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).DefaultTopic = (string) content.GetValueForProperty("DefaultTopic",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementGroupInternal)this).DefaultTopic, global::System.Convert.ToString); diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.cs index 279867624e62..a6b7bd765cea 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.cs @@ -22,6 +22,13 @@ public partial class NamespaceDiscoveredManagementGroup : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public System.Collections.Generic.List Action { get => this._action; set => this._action = value; } + /// Backing field for property. + private string _dataSource; + + /// Reference to a data source for a given management group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string DataSource { get => this._dataSource; set => this._dataSource = value; } + /// Backing field for property. private int? _defaultTimeoutInSecond; @@ -91,6 +98,17 @@ public partial interface INamespaceDiscoveredManagementGroup : SerializedName = @"actions", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementAction) })] System.Collections.Generic.List Action { get; set; } + /// Reference to a data source for a given management group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Reference to a data source for a given management group.", + SerializedName = @"dataSource", + PossibleTypes = new [] { typeof(string) })] + string DataSource { get; set; } /// Default response timeout for all actions that are part of the management group. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -171,6 +189,8 @@ internal partial interface INamespaceDiscoveredManagementGroupInternal /// Array of actions that are part of the management group. Each action can have an individual configuration. /// System.Collections.Generic.List Action { get; set; } + /// Reference to a data source for a given management group. + string DataSource { get; set; } /// Default response timeout for all actions that are part of the management group. int? DefaultTimeoutInSecond { get; set; } /// diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.json.cs index 2e2200b9a4af..f06a3b4360a7 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredManagementGroup.json.cs @@ -80,6 +80,7 @@ internal NamespaceDiscoveredManagementGroup(Microsoft.Azure.PowerShell.Cmdlets.D {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} {_managementGroupConfiguration = If( json?.PropertyT("managementGroupConfiguration"), out var __jsonManagementGroupConfiguration) ? (string)__jsonManagementGroupConfiguration : (string)_managementGroupConfiguration;} {_typeRef = If( json?.PropertyT("typeRef"), out var __jsonTypeRef) ? (string)__jsonTypeRef : (string)_typeRef;} + {_dataSource = If( json?.PropertyT("dataSource"), out var __jsonDataSource) ? (string)__jsonDataSource : (string)_dataSource;} {_defaultTopic = If( json?.PropertyT("defaultTopic"), out var __jsonDefaultTopic) ? (string)__jsonDefaultTopic : (string)_defaultTopic;} {_defaultTimeoutInSecond = If( json?.PropertyT("defaultTimeoutInSeconds"), out var __jsonDefaultTimeoutInSeconds) ? (int?)__jsonDefaultTimeoutInSeconds : _defaultTimeoutInSecond;} {_action = If( json?.PropertyT("actions"), out var __jsonActions) ? If( __jsonActions as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredManagementAction) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredManagementAction.FromJson(__u) )) ))() : null : _action;} @@ -110,6 +111,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); AddIf( null != (((object)this._managementGroupConfiguration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._managementGroupConfiguration.ToString()) : null, "managementGroupConfiguration" ,container.Add ); AddIf( null != (((object)this._typeRef)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._typeRef.ToString()) : null, "typeRef" ,container.Add ); + AddIf( null != (((object)this._dataSource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._dataSource.ToString()) : null, "dataSource" ,container.Add ); AddIf( null != (((object)this._defaultTopic)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._defaultTopic.ToString()) : null, "defaultTopic" ,container.Add ); AddIf( null != this._defaultTimeoutInSecond ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNumber((int)this._defaultTimeoutInSecond) : null, "defaultTimeoutInSeconds" ,container.Add ); if (null != this._action) diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.PowerShell.cs index cfb29f8236cb..1a36b12729b3 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.PowerShell.cs @@ -113,9 +113,9 @@ internal NamespaceEvent(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("EventNotifier")) + if (content.Contains("DataSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).EventNotifier = (string) content.GetValueForProperty("EventNotifier",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).EventNotifier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).DataSource, global::System.Convert.ToString); } if (content.Contains("EventConfiguration")) { @@ -129,10 +129,6 @@ internal NamespaceEvent(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).TypeRef = (string) content.GetValueForProperty("TypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).TypeRef, global::System.Convert.ToString); } - if (content.Contains("DataPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).DataPoint = (System.Collections.Generic.List) content.GetValueForProperty("DataPoint",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).DataPoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventDataPointTypeConverter.ConvertFrom)); - } AfterDeserializeDictionary(content); } @@ -154,9 +150,9 @@ internal NamespaceEvent(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("EventNotifier")) + if (content.Contains("DataSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).EventNotifier = (string) content.GetValueForProperty("EventNotifier",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).EventNotifier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).DataSource, global::System.Convert.ToString); } if (content.Contains("EventConfiguration")) { @@ -170,10 +166,6 @@ internal NamespaceEvent(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).TypeRef = (string) content.GetValueForProperty("TypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).TypeRef, global::System.Convert.ToString); } - if (content.Contains("DataPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).DataPoint = (System.Collections.Generic.List) content.GetValueForProperty("DataPoint",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal)this).DataPoint, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventDataPointTypeConverter.ConvertFrom)); - } AfterDeserializePSObject(content); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.cs index 59d0f896363c..c2fbb508d971 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.cs @@ -13,14 +13,12 @@ public partial class NamespaceEvent : Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventInternal { - /// Backing field for property. - private System.Collections.Generic.List _dataPoint; + /// Backing field for property. + private string _dataSource; - /// - /// Array of data points that are part of the event. Each data point can have a per-data point configuration. - /// + /// Reference to a data source for a given event. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public System.Collections.Generic.List DataPoint { get => this._dataPoint; set => this._dataPoint = value; } + public string DataSource { get => this._dataSource; set => this._dataSource = value; } /// Backing field for property. private System.Collections.Generic.List _destination; @@ -39,15 +37,6 @@ public partial class NamespaceEvent : [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] public string EventConfiguration { get => this._eventConfiguration; set => this._eventConfiguration = value; } - /// Backing field for property. - private string _eventNotifier; - - /// - /// The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public string EventNotifier { get => this._eventNotifier; set => this._eventNotifier = value; } - /// Backing field for property. private string _name; @@ -72,19 +61,17 @@ public NamespaceEvent() public partial interface INamespaceEvent : Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable { - /// - /// Array of data points that are part of the event. Each data point can have a per-data point configuration. - /// + /// Reference to a data source for a given event. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Array of data points that are part of the event. Each data point can have a per-data point configuration.", - SerializedName = @"dataPoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPoint) })] - System.Collections.Generic.List DataPoint { get; set; } + Description = @"Reference to a data source for a given event.", + SerializedName = @"dataSource", + PossibleTypes = new [] { typeof(string) })] + string DataSource { get; set; } /// Destinations for an event. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, @@ -110,19 +97,6 @@ public partial interface INamespaceEvent : SerializedName = @"eventConfiguration", PossibleTypes = new [] { typeof(string) })] string EventConfiguration { get; set; } - /// - /// The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.", - SerializedName = @"eventNotifier", - PossibleTypes = new [] { typeof(string) })] - string EventNotifier { get; set; } /// The name of the event. [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = true, @@ -151,10 +125,8 @@ public partial interface INamespaceEvent : internal partial interface INamespaceEventInternal { - /// - /// Array of data points that are part of the event. Each data point can have a per-data point configuration. - /// - System.Collections.Generic.List DataPoint { get; set; } + /// Reference to a data source for a given event. + string DataSource { get; set; } /// Destinations for an event. System.Collections.Generic.List Destination { get; set; } /// @@ -162,10 +134,6 @@ internal partial interface INamespaceEventInternal /// like, publishingInterval, samplingInterval, and queueSize. /// string EventConfiguration { get; set; } - /// - /// The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset. - /// - string EventNotifier { get; set; } /// The name of the event. string Name { get; set; } /// URI or type definition ID. diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.json.cs index 07000434ea8f..d171aff4bfaf 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.json.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEvent.json.cs @@ -78,11 +78,10 @@ internal NamespaceEvent(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtim return; } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_eventNotifier = If( json?.PropertyT("eventNotifier"), out var __jsonEventNotifier) ? (string)__jsonEventNotifier : (string)_eventNotifier;} + {_dataSource = If( json?.PropertyT("dataSource"), out var __jsonDataSource) ? (string)__jsonDataSource : (string)_dataSource;} {_eventConfiguration = If( json?.PropertyT("eventConfiguration"), out var __jsonEventConfiguration) ? (string)__jsonEventConfiguration : (string)_eventConfiguration;} {_destination = If( json?.PropertyT("destinations"), out var __jsonDestinations) ? If( __jsonDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IEventDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestination.FromJson(__u) )) ))() : null : _destination;} {_typeRef = If( json?.PropertyT("typeRef"), out var __jsonTypeRef) ? (string)__jsonTypeRef : (string)_typeRef;} - {_dataPoint = If( json?.PropertyT("dataPoints"), out var __jsonDataPoints) ? If( __jsonDataPoints as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPoint) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventDataPoint.FromJson(__p) )) ))() : null : _dataPoint;} AfterFromJson(json); } @@ -106,7 +105,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T return container; } AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._eventNotifier)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._eventNotifier.ToString()) : null, "eventNotifier" ,container.Add ); + AddIf( null != (((object)this._dataSource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._dataSource.ToString()) : null, "dataSource" ,container.Add ); AddIf( null != (((object)this._eventConfiguration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._eventConfiguration.ToString()) : null, "eventConfiguration" ,container.Add ); if (null != this._destination) { @@ -118,15 +117,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode T container.Add("destinations",__w); } AddIf( null != (((object)this._typeRef)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._typeRef.ToString()) : null, "typeRef" ,container.Add ); - if (null != this._dataPoint) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); - foreach( var __s in this._dataPoint ) - { - AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); - } - container.Add("dataPoints",__r); - } AfterToJson(ref container); return container; } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.cs deleted file mode 100644 index 47c9d5f15eb5..000000000000 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.cs +++ /dev/null @@ -1,109 +0,0 @@ -// 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) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; - - /// Defines the event data point properties. - public partial class NamespaceEventDataPoint : - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPoint, - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPointInternal - { - - /// Backing field for property. - private string _dataPointConfiguration; - - /// - /// Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration - /// like, publishingInterval, samplingInterval, and queueSize. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public string DataPointConfiguration { get => this._dataPointConfiguration; set => this._dataPointConfiguration = value; } - - /// Backing field for property. - private string _dataSource; - - /// - /// The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public string DataSource { get => this._dataSource; set => this._dataSource = value; } - - /// Backing field for property. - private string _name; - - /// The name of the data point. - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Creates an new instance. - public NamespaceEventDataPoint() - { - - } - } - /// Defines the event data point properties. - public partial interface INamespaceEventDataPoint : - Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable - { - /// - /// Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration - /// like, publishingInterval, samplingInterval, and queueSize. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.", - SerializedName = @"dataPointConfiguration", - PossibleTypes = new [] { typeof(string) })] - string DataPointConfiguration { get; set; } - /// - /// The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.", - SerializedName = @"dataSource", - PossibleTypes = new [] { typeof(string) })] - string DataSource { get; set; } - /// The name of the data point. - [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( - Required = true, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the data point.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - - } - /// Defines the event data point properties. - internal partial interface INamespaceEventDataPointInternal - - { - /// - /// Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration - /// like, publishingInterval, samplingInterval, and queueSize. - /// - string DataPointConfiguration { get; set; } - /// - /// The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset. - /// - string DataSource { get; set; } - /// The name of the data point. - string Name { get; set; } - - } -} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.PowerShell.cs new file mode 100644 index 000000000000..811487658338 --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.PowerShell.cs @@ -0,0 +1,204 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell; + + /// Defines the event group properties. + [System.ComponentModel.TypeConverter(typeof(NamespaceEventGroupTypeConverter))] + public partial class NamespaceEventGroup + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NamespaceEventGroup(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NamespaceEventGroup(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NamespaceEventGroup(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("DataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).DataSource, global::System.Convert.ToString); + } + if (content.Contains("EventGroupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).EventGroupConfiguration = (string) content.GetValueForProperty("EventGroupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).EventGroupConfiguration, global::System.Convert.ToString); + } + if (content.Contains("DefaultDestination")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).DefaultDestination = (System.Collections.Generic.List) content.GetValueForProperty("DefaultDestination",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).DefaultDestination, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestinationTypeConverter.ConvertFrom)); + } + if (content.Contains("TypeRef")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).TypeRef = (string) content.GetValueForProperty("TypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).TypeRef, global::System.Convert.ToString); + } + if (content.Contains("Event")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal NamespaceEventGroup(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("DataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).DataSource, global::System.Convert.ToString); + } + if (content.Contains("EventGroupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).EventGroupConfiguration = (string) content.GetValueForProperty("EventGroupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).EventGroupConfiguration, global::System.Convert.ToString); + } + if (content.Contains("DefaultDestination")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).DefaultDestination = (System.Collections.Generic.List) content.GetValueForProperty("DefaultDestination",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).DefaultDestination, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestinationTypeConverter.ConvertFrom)); + } + if (content.Contains("TypeRef")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).TypeRef = (string) content.GetValueForProperty("TypeRef",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).TypeRef, global::System.Convert.ToString); + } + if (content.Contains("Event")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).Event = (System.Collections.Generic.List) content.GetValueForProperty("Event",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal)this).Event, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Defines the event group properties. + [System.ComponentModel.TypeConverter(typeof(NamespaceEventGroupTypeConverter))] + public partial interface INamespaceEventGroup + + { + + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.TypeConverter.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.TypeConverter.cs similarity index 85% rename from generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.TypeConverter.cs rename to generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.TypeConverter.cs index 2331806be662..3adb19ba8a2d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.TypeConverter.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class NamespaceEventDataPointTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class NamespaceEventGroupTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class NamespaceEventDataPointTypeConverter : global::System.Manag public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventDataPoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup).IsAssignableFrom(type)) { return sourceValue; } try { - return NamespaceEventDataPoint.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return NamespaceEventGroup.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespac } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return NamespaceEventDataPoint.DeserializeFromPSObject(sourceValue); + return NamespaceEventGroup.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return NamespaceEventDataPoint.DeserializeFromDictionary(sourceValue); + return NamespaceEventGroup.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.cs new file mode 100644 index 000000000000..4ea79b21b58d --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.cs @@ -0,0 +1,178 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; + + /// Defines the event group properties. + public partial class NamespaceEventGroup : + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup, + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroupInternal + { + + /// Backing field for property. + private string _dataSource; + + /// + /// The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on + /// the asset. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string DataSource { get => this._dataSource; set => this._dataSource = value; } + + /// Backing field for property. + private System.Collections.Generic.List _defaultDestination; + + /// + /// Destinations for events. Default destinations when destinations is not defined at the event level. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public System.Collections.Generic.List DefaultDestination { get => this._defaultDestination; set => this._defaultDestination = value; } + + /// Backing field for property. + private System.Collections.Generic.List _event; + + /// Array of events that are part of the event group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public System.Collections.Generic.List Event { get => this._event; set => this._event = value; } + + /// Backing field for property. + private string _eventGroupConfiguration; + + /// + /// Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration + /// like, publishingInterval, samplingInterval, and queueSize. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string EventGroupConfiguration { get => this._eventGroupConfiguration; set => this._eventGroupConfiguration = value; } + + /// Backing field for property. + private string _name; + + /// The name of the event group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _typeRef; + + /// URI or type definition ID. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string TypeRef { get => this._typeRef; set => this._typeRef = value; } + + /// Creates an new instance. + public NamespaceEventGroup() + { + + } + } + /// Defines the event group properties. + public partial interface INamespaceEventGroup : + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable + { + /// + /// The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on + /// the asset. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset.", + SerializedName = @"dataSource", + PossibleTypes = new [] { typeof(string) })] + string DataSource { get; set; } + /// + /// Destinations for events. Default destinations when destinations is not defined at the event level. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Destinations for events. Default destinations when destinations is not defined at the event level.", + SerializedName = @"defaultDestinations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IEventDestination) })] + System.Collections.Generic.List DefaultDestination { get; set; } + /// Array of events that are part of the event group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Array of events that are part of the event group.", + SerializedName = @"events", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) })] + System.Collections.Generic.List Event { get; set; } + /// + /// Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration + /// like, publishingInterval, samplingInterval, and queueSize. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.", + SerializedName = @"eventGroupConfiguration", + PossibleTypes = new [] { typeof(string) })] + string EventGroupConfiguration { get; set; } + /// The name of the event group. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the event group.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// URI or type definition ID. + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"URI or type definition ID.", + SerializedName = @"typeRef", + PossibleTypes = new [] { typeof(string) })] + string TypeRef { get; set; } + + } + /// Defines the event group properties. + internal partial interface INamespaceEventGroupInternal + + { + /// + /// The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on + /// the asset. + /// + string DataSource { get; set; } + /// + /// Destinations for events. Default destinations when destinations is not defined at the event level. + /// + System.Collections.Generic.List DefaultDestination { get; set; } + /// Array of events that are part of the event group. + System.Collections.Generic.List Event { get; set; } + /// + /// Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration + /// like, publishingInterval, samplingInterval, and queueSize. + /// + string EventGroupConfiguration { get; set; } + /// The name of the event group. + string Name { get; set; } + /// URI or type definition ID. + string TypeRef { get; set; } + + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.json.cs new file mode 100644 index 000000000000..0b774c64a999 --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.json.cs @@ -0,0 +1,134 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; + + /// Defines the event group properties. + public partial class NamespaceEventGroup + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new NamespaceEventGroup(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from. + internal NamespaceEventGroup(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_dataSource = If( json?.PropertyT("dataSource"), out var __jsonDataSource) ? (string)__jsonDataSource : (string)_dataSource;} + {_eventGroupConfiguration = If( json?.PropertyT("eventGroupConfiguration"), out var __jsonEventGroupConfiguration) ? (string)__jsonEventGroupConfiguration : (string)_eventGroupConfiguration;} + {_defaultDestination = If( json?.PropertyT("defaultDestinations"), out var __jsonDefaultDestinations) ? If( __jsonDefaultDestinations as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IEventDestination) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.EventDestination.FromJson(__u) )) ))() : null : _defaultDestination;} + {_typeRef = If( json?.PropertyT("typeRef"), out var __jsonTypeRef) ? (string)__jsonTypeRef : (string)_typeRef;} + {_event = If( json?.PropertyT("events"), out var __jsonEvents) ? If( __jsonEvents as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEvent.FromJson(__p) )) ))() : null : _event;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._dataSource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._dataSource.ToString()) : null, "dataSource" ,container.Add ); + AddIf( null != (((object)this._eventGroupConfiguration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._eventGroupConfiguration.ToString()) : null, "eventGroupConfiguration" ,container.Add ); + if (null != this._defaultDestination) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); + foreach( var __x in this._defaultDestination ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("defaultDestinations",__w); + } + AddIf( null != (((object)this._typeRef)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._typeRef.ToString()) : null, "typeRef" ,container.Add ); + if (null != this._event) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.XNodeArray(); + foreach( var __s in this._event ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("events",__r); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.PowerShell.cs new file mode 100644 index 000000000000..1efba9f04820 --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.PowerShell.cs @@ -0,0 +1,180 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell; + + /// The x509 certificate for authentication mode Certificate. + [System.ComponentModel.TypeConverter(typeof(X509CertificateCredentialsTypeConverter))] + public partial class X509CertificateCredentials + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new X509CertificateCredentials(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new X509CertificateCredentials(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal X509CertificateCredentials(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CertificateSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).CertificateSecretName = (string) content.GetValueForProperty("CertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).CertificateSecretName, global::System.Convert.ToString); + } + if (content.Contains("KeySecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).KeySecretName = (string) content.GetValueForProperty("KeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).KeySecretName, global::System.Convert.ToString); + } + if (content.Contains("IntermediateCertificatesSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).IntermediateCertificatesSecretName = (string) content.GetValueForProperty("IntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).IntermediateCertificatesSecretName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal X509CertificateCredentials(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CertificateSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).CertificateSecretName = (string) content.GetValueForProperty("CertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).CertificateSecretName, global::System.Convert.ToString); + } + if (content.Contains("KeySecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).KeySecretName = (string) content.GetValueForProperty("KeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).KeySecretName, global::System.Convert.ToString); + } + if (content.Contains("IntermediateCertificatesSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).IntermediateCertificatesSecretName = (string) content.GetValueForProperty("IntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal)this).IntermediateCertificatesSecretName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The x509 certificate for authentication mode Certificate. + [System.ComponentModel.TypeConverter(typeof(X509CertificateCredentialsTypeConverter))] + public partial interface IX509CertificateCredentials + + { + + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.TypeConverter.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.TypeConverter.cs new file mode 100644 index 000000000000..7ea1586d298f --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class X509CertificateCredentialsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return X509CertificateCredentials.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return X509CertificateCredentials.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return X509CertificateCredentials.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.cs new file mode 100644 index 000000000000..646f1bbe811c --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.cs @@ -0,0 +1,112 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; + + /// The x509 certificate for authentication mode Certificate. + public partial class X509CertificateCredentials : + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials, + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsInternal + { + + /// Backing field for property. + private string _certificateSecretName; + + /// + /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string CertificateSecretName { get => this._certificateSecretName; set => this._certificateSecretName = value; } + + /// Backing field for property. + private string _intermediateCertificatesSecretName; + + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string IntermediateCertificatesSecretName { get => this._intermediateCertificatesSecretName; set => this._intermediateCertificatesSecretName = value; } + + /// Backing field for property. + private string _keySecretName; + + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string KeySecretName { get => this._keySecretName; set => this._keySecretName = value; } + + /// Creates an new instance. + public X509CertificateCredentials() + { + + } + } + /// The x509 certificate for authentication mode Certificate. + public partial interface IX509CertificateCredentials : + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable + { + /// + /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx).", + SerializedName = @"certificateSecretName", + PossibleTypes = new [] { typeof(string) })] + string CertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the combined intermediate certificates in PEM format.", + SerializedName = @"intermediateCertificatesSecretName", + PossibleTypes = new [] { typeof(string) })] + string IntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the certificate private key in PEM or DER format.", + SerializedName = @"keySecretName", + PossibleTypes = new [] { typeof(string) })] + string KeySecretName { get; set; } + + } + /// The x509 certificate for authentication mode Certificate. + internal partial interface IX509CertificateCredentialsInternal + + { + /// + /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). + /// + string CertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + string IntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + string KeySecretName { get; set; } + + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.json.cs new file mode 100644 index 000000000000..9f39c00de7c7 --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.json.cs @@ -0,0 +1,112 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; + + /// The x509 certificate for authentication mode Certificate. + public partial class X509CertificateCredentials + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new X509CertificateCredentials(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._certificateSecretName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._certificateSecretName.ToString()) : null, "certificateSecretName" ,container.Add ); + AddIf( null != (((object)this._keySecretName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._keySecretName.ToString()) : null, "keySecretName" ,container.Add ); + AddIf( null != (((object)this._intermediateCertificatesSecretName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._intermediateCertificatesSecretName.ToString()) : null, "intermediateCertificatesSecretName" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from. + internal X509CertificateCredentials(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_certificateSecretName = If( json?.PropertyT("certificateSecretName"), out var __jsonCertificateSecretName) ? (string)__jsonCertificateSecretName : (string)_certificateSecretName;} + {_keySecretName = If( json?.PropertyT("keySecretName"), out var __jsonKeySecretName) ? (string)__jsonKeySecretName : (string)_keySecretName;} + {_intermediateCertificatesSecretName = If( json?.PropertyT("intermediateCertificatesSecretName"), out var __jsonIntermediateCertificatesSecretName) ? (string)__jsonIntermediateCertificatesSecretName : (string)_intermediateCertificatesSecretName;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.PowerShell.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.PowerShell.cs similarity index 59% rename from generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.PowerShell.cs rename to generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.PowerShell.cs index da3c2cf7dded..6f72a85fd0bc 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.PowerShell.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models { using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell; - /// Defines the discovered event data point properties. - [System.ComponentModel.TypeConverter(typeof(NamespaceDiscoveredEventDataPointTypeConverter))] - public partial class NamespaceDiscoveredEventDataPoint + /// The x509 certificate for authentication mode Certificate. + [System.ComponentModel.TypeConverter(typeof(X509CertificateCredentialsUpdateTypeConverter))] + public partial class X509CertificateCredentialsUpdate { /// @@ -63,48 +63,63 @@ public partial class NamespaceDiscoveredEventDataPoint partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new NamespaceDiscoveredEventDataPoint(content); + return new X509CertificateCredentialsUpdate(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new NamespaceDiscoveredEventDataPoint(content); + return new X509CertificateCredentialsUpdate(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal NamespaceDiscoveredEventDataPoint(global::System.Collections.IDictionary content) + internal X509CertificateCredentialsUpdate(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -113,31 +128,27 @@ internal NamespaceDiscoveredEventDataPoint(global::System.Collections.IDictionar return; } // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("DataSource")) + if (content.Contains("CertificateSecretName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).DataSource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).CertificateSecretName = (string) content.GetValueForProperty("CertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).CertificateSecretName, global::System.Convert.ToString); } - if (content.Contains("DataPointConfiguration")) + if (content.Contains("KeySecretName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).DataPointConfiguration = (string) content.GetValueForProperty("DataPointConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).DataPointConfiguration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).KeySecretName = (string) content.GetValueForProperty("KeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).KeySecretName, global::System.Convert.ToString); } - if (content.Contains("LastUpdatedOn")) + if (content.Contains("IntermediateCertificatesSecretName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).LastUpdatedOn = (global::System.DateTime?) content.GetValueForProperty("LastUpdatedOn",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).LastUpdatedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).IntermediateCertificatesSecretName = (string) content.GetValueForProperty("IntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).IntermediateCertificatesSecretName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal NamespaceDiscoveredEventDataPoint(global::System.Management.Automation.PSObject content) + internal X509CertificateCredentialsUpdate(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -146,45 +157,24 @@ internal NamespaceDiscoveredEventDataPoint(global::System.Management.Automation. return; } // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("DataSource")) + if (content.Contains("CertificateSecretName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).DataSource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).CertificateSecretName = (string) content.GetValueForProperty("CertificateSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).CertificateSecretName, global::System.Convert.ToString); } - if (content.Contains("DataPointConfiguration")) + if (content.Contains("KeySecretName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).DataPointConfiguration = (string) content.GetValueForProperty("DataPointConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).DataPointConfiguration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).KeySecretName = (string) content.GetValueForProperty("KeySecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).KeySecretName, global::System.Convert.ToString); } - if (content.Contains("LastUpdatedOn")) + if (content.Contains("IntermediateCertificatesSecretName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).LastUpdatedOn = (global::System.DateTime?) content.GetValueForProperty("LastUpdatedOn",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventDataPointInternal)this).LastUpdatedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).IntermediateCertificatesSecretName = (string) content.GetValueForProperty("IntermediateCertificatesSecretName",((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal)this).IntermediateCertificatesSecretName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } } - /// Defines the discovered event data point properties. - [System.ComponentModel.TypeConverter(typeof(NamespaceDiscoveredEventDataPointTypeConverter))] - public partial interface INamespaceDiscoveredEventDataPoint + /// The x509 certificate for authentication mode Certificate. + [System.ComponentModel.TypeConverter(typeof(X509CertificateCredentialsUpdateTypeConverter))] + public partial interface IX509CertificateCredentialsUpdate { diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.TypeConverter.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.TypeConverter.cs new file mode 100644 index 000000000000..6f5d6c1ad999 --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.TypeConverter.cs @@ -0,0 +1,148 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class X509CertificateCredentialsUpdateTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return X509CertificateCredentialsUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return X509CertificateCredentialsUpdate.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return X509CertificateCredentialsUpdate.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.cs new file mode 100644 index 000000000000..ef935079e2b9 --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.cs @@ -0,0 +1,112 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; + + /// The x509 certificate for authentication mode Certificate. + public partial class X509CertificateCredentialsUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdateInternal + { + + /// Backing field for property. + private string _certificateSecretName; + + /// + /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string CertificateSecretName { get => this._certificateSecretName; set => this._certificateSecretName = value; } + + /// Backing field for property. + private string _intermediateCertificatesSecretName; + + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string IntermediateCertificatesSecretName { get => this._intermediateCertificatesSecretName; set => this._intermediateCertificatesSecretName = value; } + + /// Backing field for property. + private string _keySecretName; + + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Origin(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.PropertyOrigin.Owned)] + public string KeySecretName { get => this._keySecretName; set => this._keySecretName = value; } + + /// Creates an new instance. + public X509CertificateCredentialsUpdate() + { + + } + } + /// The x509 certificate for authentication mode Certificate. + public partial interface IX509CertificateCredentialsUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IJsonSerializable + { + /// + /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx).", + SerializedName = @"certificateSecretName", + PossibleTypes = new [] { typeof(string) })] + string CertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the combined intermediate certificates in PEM format.", + SerializedName = @"intermediateCertificatesSecretName", + PossibleTypes = new [] { typeof(string) })] + string IntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the secret containing the certificate private key in PEM or DER format.", + SerializedName = @"keySecretName", + PossibleTypes = new [] { typeof(string) })] + string KeySecretName { get; set; } + + } + /// The x509 certificate for authentication mode Certificate. + internal partial interface IX509CertificateCredentialsUpdateInternal + + { + /// + /// The name of the secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx). + /// + string CertificateSecretName { get; set; } + /// + /// The name of the secret containing the combined intermediate certificates in PEM format. + /// + string IntermediateCertificatesSecretName { get; set; } + /// + /// The name of the secret containing the certificate private key in PEM or DER format. + /// + string KeySecretName { get; set; } + + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.json.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.json.cs new file mode 100644 index 000000000000..36647e7ce682 --- /dev/null +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.json.cs @@ -0,0 +1,112 @@ +// 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) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Extensions; + + /// The x509 certificate for authentication mode Certificate. + public partial class X509CertificateCredentialsUpdate + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IX509CertificateCredentialsUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json ? new X509CertificateCredentialsUpdate(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._certificateSecretName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._certificateSecretName.ToString()) : null, "certificateSecretName" ,container.Add ); + AddIf( null != (((object)this._keySecretName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._keySecretName.ToString()) : null, "keySecretName" ,container.Add ); + AddIf( null != (((object)this._intermediateCertificatesSecretName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonString(this._intermediateCertificatesSecretName.ToString()) : null, "intermediateCertificatesSecretName" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject instance to deserialize from. + internal X509CertificateCredentialsUpdate(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_certificateSecretName = If( json?.PropertyT("certificateSecretName"), out var __jsonCertificateSecretName) ? (string)__jsonCertificateSecretName : (string)_certificateSecretName;} + {_keySecretName = If( json?.PropertyT("keySecretName"), out var __jsonKeySecretName) ? (string)__jsonKeySecretName : (string)_keySecretName;} + {_intermediateCertificatesSecretName = If( json?.PropertyT("intermediateCertificatesSecretName"), out var __jsonIntermediateCertificatesSecretName) ? (string)__jsonIntermediateCertificatesSecretName : (string)_intermediateCertificatesSecretName;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_Get.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_Get.cs index f75487369f27..d07c2802380d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_Get.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a AssetEndpointProfile")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryAssetEndpointProfile_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_GetViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_GetViaIdentity.cs index a6f6c82a2369..0b13357031f5 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_GetViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a AssetEndpointProfile")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryAssetEndpointProfile_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_List.cs index 60cd62779484..d3250448a3e9 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List AssetEndpointProfile resources by subscription ID")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryAssetEndpointProfile_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_List1.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_List1.cs index 8e538519dafe..8ac84bd0af72 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_List1.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAssetEndpointProfile_List1.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List AssetEndpointProfile resources by resource group")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryAssetEndpointProfile_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_Get.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_Get.cs index 0f237d2c3d26..de59151f426a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_Get.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a Asset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryAsset_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_GetViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_GetViaIdentity.cs index 65422c25bc81..a5551779496c 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_GetViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a Asset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryAsset_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_List.cs index 097415d31943..0d3a484cba2d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List Asset resources by subscription ID")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/assets", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/assets", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryAsset_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_List1.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_List1.cs index 779de680cb86..764a5405b7e7 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_List1.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryAsset_List1.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List Asset resources by resource group")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryAsset_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_Get.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_Get.cs index 02301dd0ea2d..ecdbf89b007b 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_Get.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IBillingContainer))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a BillingContainer")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/billingContainers/{billingContainerName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/billingContainers/{billingContainerName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryBillingContainer_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_GetViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_GetViaIdentity.cs index 0d691493f727..0e3a5734fb63 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_GetViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IBillingContainer))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a BillingContainer")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/billingContainers/{billingContainerName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/billingContainers/{billingContainerName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryBillingContainer_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_List.cs index ef64f4ab89c3..f42b862c7e28 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryBillingContainer_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IBillingContainer))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List BillingContainer resources by subscription ID")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/billingContainers", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/billingContainers", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryBillingContainer_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_Get.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_Get.cs index 1615b2837eee..ae1105331a13 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_Get.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceAsset_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_GetViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_GetViaIdentity.cs index dd2bfd0b2c96..a7714760da27 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_GetViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceAsset_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_GetViaIdentityNamespace.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_GetViaIdentityNamespace.cs index f482a2a99354..ce7a0d54a0cc 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_GetViaIdentityNamespace.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_GetViaIdentityNamespace.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceAsset_GetViaIdentityNamespace : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_List.cs index cccdfef4af21..a5b4846202f0 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceAsset_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List NamespaceAsset resources by Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceAsset_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_Get.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_Get.cs index 770c38de7dec..d1e5e4ae7a4c 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_Get.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDevice_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_GetViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_GetViaIdentity.cs index 02ae460acc18..7813e8f46494 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_GetViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDevice_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_GetViaIdentityNamespace.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_GetViaIdentityNamespace.cs index a2f1ceaeaafe..d13f8d594523 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_GetViaIdentityNamespace.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_GetViaIdentityNamespace.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDevice_GetViaIdentityNamespace : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_List.cs index 5dc863769e15..0ca8c334bfbc 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDevice_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List NamespaceDevice resources by Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDevice_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_Get.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_Get.cs index 57b5d9f16fd0..ad4a1f52e6fb 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_Get.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDiscoveredAsset_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_GetViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_GetViaIdentity.cs index 9353267e7f58..99e597ee508a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_GetViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDiscoveredAsset_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_GetViaIdentityNamespace.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_GetViaIdentityNamespace.cs index ed1402f41604..8c5b757b5a85 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_GetViaIdentityNamespace.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_GetViaIdentityNamespace.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDiscoveredAsset_GetViaIdentityNamespace : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_List.cs index f48dc0648836..41753cb8979a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredAsset_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List NamespaceDiscoveredAsset resources by Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDiscoveredAsset_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_Get.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_Get.cs index 107f12952fd5..8d9ca738f6a0 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_Get.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDiscoveredDevice_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_GetViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_GetViaIdentity.cs index 7c6d5b521a6f..74b3b09f6e75 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_GetViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDiscoveredDevice_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_GetViaIdentityNamespace.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_GetViaIdentityNamespace.cs index a623fdee5441..4dcce3837d87 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_GetViaIdentityNamespace.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_GetViaIdentityNamespace.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDiscoveredDevice_GetViaIdentityNamespace : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_List.cs index 42f6c701680c..8f19321b27aa 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespaceDiscoveredDevice_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List NamespaceDiscoveredDevice resources by Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespaceDiscoveredDevice_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_Get.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_Get.cs index 0ed4a761b00d..87fefb4e2681 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_Get.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespace_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_GetViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_GetViaIdentity.cs index 06e302455997..7288eaea3fe2 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_GetViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespace_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_List.cs index 7a745eb05a36..60c3eb3ed73c 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List Namespace resources by subscription ID")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/namespaces", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/namespaces", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespace_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_List1.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_List1.cs index 21975f88c04e..5cecb4359add 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_List1.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryNamespace_List1.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List Namespace resources by resource group")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryNamespace_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryOperation_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryOperation_List.cs index 019c2e8f1c8c..ea68270da9a1 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryOperation_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistryOperation_List.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List the operations for the provider")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/providers/Microsoft.DeviceRegistry/operations", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/providers/Microsoft.DeviceRegistry/operations", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistryOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_Get.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_Get.cs index 07c5935ee513..ec2c820807b8 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_Get.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistry))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a SchemaRegistry")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchemaRegistry_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_GetViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_GetViaIdentity.cs index f9836f20337c..b9fdc73a3841 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_GetViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistry))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a SchemaRegistry")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchemaRegistry_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_List.cs index e284befc926e..25ae5b41aefd 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistry))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List SchemaRegistry resources by subscription ID")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/schemaRegistries", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/schemaRegistries", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchemaRegistry_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_List1.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_List1.cs index 8667ac673a58..f89084a0c703 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_List1.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaRegistry_List1.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistry))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List SchemaRegistry resources by resource group")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchemaRegistry_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_Get.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_Get.cs index 65682180371c..3c9f2b8684b6 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_Get.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a SchemaVersion")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchemaVersion_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentity.cs index 2a5b3313dca3..4c3126e65e25 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a SchemaVersion")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchemaVersion_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentitySchema.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentitySchema.cs index 9af82ed6d5d0..c95240c9d8ac 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentitySchema.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentitySchema.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a SchemaVersion")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchemaVersion_GetViaIdentitySchema : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentitySchemaRegistry.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentitySchemaRegistry.cs index 7b8af7d7677b..ef1c697e2ef5 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentitySchemaRegistry.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_GetViaIdentitySchemaRegistry.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a SchemaVersion")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchemaVersion_GetViaIdentitySchemaRegistry : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_List.cs index 4ef60f07cef4..e037a54e2465 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchemaVersion_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List SchemaVersion resources by Schema")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchemaVersion_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_Get.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_Get.cs index ef3b94dfd6e6..1a0a01a4a5fd 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_Get.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchema))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a Schema")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchema_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_GetViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_GetViaIdentity.cs index 238d03c883f5..40a0eb5dd109 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_GetViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchema))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a Schema")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchema_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_GetViaIdentitySchemaRegistry.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_GetViaIdentitySchemaRegistry.cs index 0f45acdca492..2c18b8a0746e 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_GetViaIdentitySchemaRegistry.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_GetViaIdentitySchemaRegistry.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchema))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Get a Schema")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchema_GetViaIdentitySchemaRegistry : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_List.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_List.cs index 05dcc9016ec5..d94752bd8be5 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_List.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/GetAzDeviceRegistrySchema_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchema))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"List Schema resources by SchemaRegistry")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas", ApiVersion = "2025-10-01")] public partial class GetAzDeviceRegistrySchema_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_Migrate.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_Migrate.cs index 5c5dc8fb7e24..cc2d10b8c6cf 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_Migrate.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_Migrate.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceMigrateResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Migrate the resources into Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-10-01")] public partial class MoveAzDeviceRegistryNamespace_Migrate : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateExpanded.cs index 95a279e95a65..1df50cfc8e41 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceMigrateResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Migrate the resources into Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-10-01")] public partial class MoveAzDeviceRegistryNamespace_MigrateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaIdentity.cs index 6b5ee1c46f72..714bb481d0e5 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceMigrateResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Migrate the resources into Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-10-01")] public partial class MoveAzDeviceRegistryNamespace_MigrateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaIdentityExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaIdentityExpanded.cs index 2138e3ec5980..1f50d87aada6 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaIdentityExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceMigrateResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Migrate the resources into Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-10-01")] public partial class MoveAzDeviceRegistryNamespace_MigrateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaJsonFilePath.cs index a326f67736b0..1978dcfd4b87 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceMigrateResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Migrate the resources into Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class MoveAzDeviceRegistryNamespace_MigrateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaJsonString.cs index 3ef624fda743..423b04cce158 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/MoveAzDeviceRegistryNamespace_MigrateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceMigrateResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Migrate the resources into Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/migrate", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class MoveAzDeviceRegistryNamespace_MigrateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateExpanded.cs index ddb2fefb4ccd..91c467f88dd1 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a AssetEndpointProfile")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-10-01")] public partial class NewAzDeviceRegistryAssetEndpointProfile_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateViaJsonFilePath.cs index 78a6e27a8ffd..834181847895 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a AssetEndpointProfile")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryAssetEndpointProfile_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateViaJsonString.cs index 6a2e8c2f3162..0fb393bedd0a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAssetEndpointProfile_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a AssetEndpointProfile")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryAssetEndpointProfile_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateExpanded.cs index bb4256054f28..9ad1e02803d2 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a Asset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class NewAzDeviceRegistryAsset_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateViaJsonFilePath.cs index 92b1945614de..d09bd89396c0 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a Asset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryAsset_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateViaJsonString.cs index 2684b90935b3..5b0ac134cfb4 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryAsset_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a Asset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryAsset_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateExpanded.cs index c375ce64216f..c1ca6c74e737 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class NewAzDeviceRegistryNamespaceAsset_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -295,18 +295,18 @@ public partial class NewAzDeviceRegistryNamespaceAsset_CreateExpanded : global:: public global::System.Management.Automation.SwitchParameter Enabled { get => _resourceBody.Enabled ?? default(global::System.Management.Automation.SwitchParameter); set => _resourceBody.Enabled = value; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of events that are part of the asset. Each event can have per-event configuration.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of event groups that are part of the asset. Each event group can have per-event group configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) })] - public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[] Event { get => _resourceBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup) })] + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[] EventGroup { get => _resourceBody.EventGroup?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.EventGroup = (value != null ? new System.Collections.Generic.List(value) : null); } /// The extended location name. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The extended location name.")] diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateViaJsonFilePath.cs index ef547a11294f..ee1a6cf245fd 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryNamespaceAsset_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateViaJsonString.cs index 935670742999..b45a6e04d163 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceAsset_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryNamespaceAsset_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateExpanded.cs index ac12261e642e..a541a880c1ca 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] public partial class NewAzDeviceRegistryNamespaceDevice_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateViaJsonFilePath.cs index a9ec21d56646..2dd3c3402157 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryNamespaceDevice_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateViaJsonString.cs index 1f7a6938be95..c026a67c223c 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDevice_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryNamespaceDevice_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateExpanded.cs index f35ab647155c..2cebd3717579 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] public partial class NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -199,6 +199,17 @@ public partial class NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateExpanded PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) })] public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination[] DefaultStreamsDestination { get => _resourceBody.DefaultStreamsDestination?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.DefaultStreamsDestination = (value != null ? new System.Collections.Generic.List(value) : null); } + /// Human-readable description of the asset. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Human-readable description of the asset.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Human-readable description of the asset.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + public string Description { get => _resourceBody.Description ?? null; set => _resourceBody.Description = value; } + /// Name of the device resource [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the device resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] @@ -246,6 +257,17 @@ public partial class NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateExpanded PossibleTypes = new [] { typeof(string) })] public string DiscoveryId { get => _resourceBody.DiscoveryId ?? null; set => _resourceBody.DiscoveryId = value; } + /// Human-readable display name. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Human-readable display name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Human-readable display name.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _resourceBody.DisplayName ?? null; set => _resourceBody.DisplayName = value; } + /// Asset documentation reference. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Asset documentation reference.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] @@ -258,18 +280,18 @@ public partial class NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateExpanded public string DocumentationUri { get => _resourceBody.DocumentationUri ?? null; set => _resourceBody.DocumentationUri = value; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of events that are part of the asset. Each event can have per-event configuration.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of event groups that are part of the asset. Each event group can have per-event group configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) })] - public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent[] Event { get => _resourceBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup) })] + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup[] EventGroup { get => _resourceBody.EventGroup?.ToArray() ?? null /* fixedArrayOf */; set => _resourceBody.EventGroup = (value != null ? new System.Collections.Generic.List(value) : null); } /// The extended location name. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The extended location name.")] @@ -296,6 +318,17 @@ public partial class NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateExpanded /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// Asset ID provided by the customer. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Asset ID provided by the customer.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Asset ID provided by the customer.", + SerializedName = @"externalAssetId", + PossibleTypes = new [] { typeof(string) })] + public string ExternalAssetId { get => _resourceBody.ExternalAssetId ?? null; set => _resourceBody.ExternalAssetId = value; } + /// Asset hardware revision number. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Asset hardware revision number.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateViaJsonFilePath.cs index e5271f22d0fc..ceb496a10b7d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateViaJsonString.cs index bb7661c0c8fc..1ce882e00884 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryNamespaceDiscoveredAsset_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateExpanded.cs index ea546674dfa1..ae2de4a66f5a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] public partial class NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateViaJsonFilePath.cs index 2c818ced0a8d..fdc7ea512a47 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateViaJsonString.cs index d263b609f288..119b15f4c8f9 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryNamespaceDiscoveredDevice_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateExpanded.cs index dd9c306265fd..2e50b7851092 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-10-01")] public partial class NewAzDeviceRegistryNamespace_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateViaJsonFilePath.cs index 5d508e2a29b1..0902b7f178dd 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryNamespace_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateViaJsonString.cs index 7fca013dd486..061215c08f6d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistryNamespace_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistryNamespace_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateExpanded.cs index 3022006e074a..4d5176b1efb5 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistry))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a SchemaRegistry")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-10-01")] public partial class NewAzDeviceRegistrySchemaRegistry_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateViaJsonFilePath.cs index 282fe258b2a6..6255bf57d3e5 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistry))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a SchemaRegistry")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistrySchemaRegistry_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateViaJsonString.cs index 6dda6d4ad2e0..01c1ab201272 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaRegistry_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaRegistry))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a SchemaRegistry")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistrySchemaRegistry_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateExpanded.cs index 058a6e08c11e..83106e9c8637 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a SchemaVersion")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-10-01")] public partial class NewAzDeviceRegistrySchemaVersion_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateViaJsonFilePath.cs index db55d3ad0de1..7266396d9e25 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a SchemaVersion")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistrySchemaVersion_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateViaJsonString.cs index bdf2075f41c2..fa457f1c10cf 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchemaVersion_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchemaVersion))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a SchemaVersion")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistrySchemaVersion_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateExpanded.cs index 1df18607c2cc..3249ef9831ee 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchema))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a Schema")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-10-01")] public partial class NewAzDeviceRegistrySchema_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateViaJsonFilePath.cs index 449285290849..5a346d3d659b 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchema))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a Schema")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistrySchema_CreateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateViaJsonString.cs index a3f2e0da27e0..df03a4d5c85a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/NewAzDeviceRegistrySchema_CreateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.ISchema))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"create a Schema")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class NewAzDeviceRegistrySchema_CreateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAssetEndpointProfile_Delete.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAssetEndpointProfile_Delete.cs index 9c05b3707611..bba84a930bb9 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAssetEndpointProfile_Delete.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAssetEndpointProfile_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a AssetEndpointProfile")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryAssetEndpointProfile_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -563,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -587,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAssetEndpointProfile_DeleteViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAssetEndpointProfile_DeleteViaIdentity.cs index 677156b46c39..3180024a4b9d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAssetEndpointProfile_DeleteViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAssetEndpointProfile_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a AssetEndpointProfile")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryAssetEndpointProfile_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -542,7 +542,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -566,7 +566,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAsset_Delete.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAsset_Delete.cs index 0a519320d79a..e647fc1bcc59 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAsset_Delete.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAsset_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a Asset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryAsset_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -563,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -587,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAsset_DeleteViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAsset_DeleteViaIdentity.cs index 4533f62426a1..4ba53b255d8e 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAsset_DeleteViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryAsset_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a Asset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryAsset_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -540,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -564,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_Delete.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_Delete.cs index b89ee9b03ea3..e2a55959b4f6 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_Delete.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceAsset_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -577,7 +577,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +601,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_DeleteViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_DeleteViaIdentity.cs index 3cf33f98e915..6026b2700668 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_DeleteViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceAsset_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -544,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -568,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_DeleteViaIdentityNamespace.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_DeleteViaIdentityNamespace.cs index 55245afa9bec..862dc84d125e 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_DeleteViaIdentityNamespace.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceAsset_DeleteViaIdentityNamespace.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceAsset_DeleteViaIdentityNamespace : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -559,7 +559,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +583,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_Delete.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_Delete.cs index 7585553471b8..a61e571330e6 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_Delete.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceDevice_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -577,7 +577,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +601,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_DeleteViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_DeleteViaIdentity.cs index 02e963a41704..67f0650efbf8 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_DeleteViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceDevice_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -544,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -568,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_DeleteViaIdentityNamespace.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_DeleteViaIdentityNamespace.cs index 9b0497e8d216..bf9576d08f3d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_DeleteViaIdentityNamespace.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDevice_DeleteViaIdentityNamespace.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceDevice_DeleteViaIdentityNamespace : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -559,7 +559,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +583,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_Delete.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_Delete.cs index fa009a278b9f..db293c5380ee 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_Delete.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceDiscoveredAsset_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -577,7 +577,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +601,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_DeleteViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_DeleteViaIdentity.cs index 2fb9166f9b39..e28239e4ec68 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_DeleteViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceDiscoveredAsset_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -547,7 +547,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -571,7 +571,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_DeleteViaIdentityNamespace.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_DeleteViaIdentityNamespace.cs index 7968fe0fd006..fd6fd0f745f6 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_DeleteViaIdentityNamespace.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredAsset_DeleteViaIdentityNamespace.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceDiscoveredAsset_DeleteViaIdentityNamespace : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -559,7 +559,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +583,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_Delete.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_Delete.cs index 56a02b544b6e..e50ea655a93a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_Delete.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceDiscoveredDevice_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -577,7 +577,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -601,7 +601,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_DeleteViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_DeleteViaIdentity.cs index 0bfeae10c7e6..d2f541158dac 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_DeleteViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceDiscoveredDevice_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -547,7 +547,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -571,7 +571,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_DeleteViaIdentityNamespace.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_DeleteViaIdentityNamespace.cs index a0803030a67c..c4df2abb7e30 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_DeleteViaIdentityNamespace.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespaceDiscoveredDevice_DeleteViaIdentityNamespace.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespaceDiscoveredDevice_DeleteViaIdentityNamespace : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -559,7 +559,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -583,7 +583,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespace_Delete.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespace_Delete.cs index f156ef8dcf67..2746ccfbacce 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespace_Delete.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespace_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespace_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -563,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -587,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespace_DeleteViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespace_DeleteViaIdentity.cs index 02be8fd50b91..0ba744274309 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespace_DeleteViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistryNamespace_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a Namespace")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistryNamespace_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -540,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -564,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaRegistry_Delete.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaRegistry_Delete.cs index 458ff6a0c34d..e63f70f9c359 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaRegistry_Delete.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaRegistry_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a SchemaRegistry")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistrySchemaRegistry_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -563,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -587,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaRegistry_DeleteViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaRegistry_DeleteViaIdentity.cs index 3a4038afc2e0..0aa2cd313381 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaRegistry_DeleteViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaRegistry_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a SchemaRegistry")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistrySchemaRegistry_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -540,7 +540,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -564,7 +564,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_Delete.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_Delete.cs index 0665ebefee1b..5add1d8f69e2 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_Delete.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a SchemaVersion")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistrySchemaVersion_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -40,14 +40,10 @@ public partial class RemoveAzDeviceRegistrySchemaVersion_Delete : global::System /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -111,6 +107,14 @@ public partial class RemoveAzDeviceRegistrySchemaVersion_Delete : global::System [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. /// @@ -250,14 +254,34 @@ protected override void BeginProcessing() ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDeviceRegistrySchemaVersion_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets.RemoveAzDeviceRegistrySchemaVersion_Delete Clone() + { + var clone = new RemoveAzDeviceRegistrySchemaVersion_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.SchemaRegistryName = this.SchemaRegistryName; + clone.SchemaName = this.SchemaName; + clone.Name = this.Name; + return clone; + } + /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -308,8 +332,8 @@ protected override void EndProcessing() } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information: { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); return ; } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug: @@ -347,6 +371,40 @@ protected override void EndProcessing() }); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } } await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) @@ -367,9 +425,21 @@ protected override void ProcessRecord() // work if (ShouldProcess($"Call remote 'SchemaVersionsDelete' operation")) { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + } } } } @@ -417,7 +487,7 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.SchemaVersionsDelete(SubscriptionId, ResourceGroupName, SchemaRegistryName, SchemaName, Name, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemaVersionsDelete(SubscriptionId, ResourceGroupName, SchemaRegistryName, SchemaName, Name, onNoContent, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException urexception) @@ -523,7 +593,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -547,7 +617,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentity.cs index 1393a9b83de2..3bcdeb034788 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a SchemaVersion")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -40,14 +40,10 @@ public partial class RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentity : glo /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -104,6 +100,14 @@ public partial class RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentity : glo /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. /// @@ -182,14 +186,29 @@ protected override void BeginProcessing() ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets.RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -240,8 +259,8 @@ protected override void EndProcessing() } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information: { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); return ; } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug: @@ -279,6 +298,40 @@ protected override void EndProcessing() }); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } } await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) @@ -299,9 +352,21 @@ protected override void ProcessRecord() // work if (ShouldProcess($"Call remote 'SchemaVersionsDelete' operation")) { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + } } } } @@ -351,7 +416,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.SchemaVersionsDeleteViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemaVersionsDeleteViaIdentity(InputObject.Id, onNoContent, onOk, onDefault, this, Pipeline); } else { @@ -376,7 +441,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SchemaVersionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.SchemaVersionsDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.SchemaRegistryName ?? null, InputObject.SchemaName ?? null, InputObject.SchemaVersionName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemaVersionsDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.SchemaRegistryName ?? null, InputObject.SchemaName ?? null, InputObject.SchemaVersionName ?? null, onNoContent, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -483,7 +548,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -507,7 +572,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema.cs index 3743de00ab35..e030d79cf316 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a SchemaVersion")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -40,14 +40,10 @@ public partial class RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -111,6 +107,14 @@ public partial class RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. /// @@ -197,14 +201,32 @@ protected override void BeginProcessing() ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema + /// + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets.RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema Clone() + { + var clone = new RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Name = this.Name; + return clone; + } + /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -255,8 +277,8 @@ protected override void EndProcessing() } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information: { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); return ; } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug: @@ -294,6 +316,40 @@ protected override void EndProcessing() }); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } } await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) @@ -314,9 +370,21 @@ protected override void ProcessRecord() // work if (ShouldProcess($"Call remote 'SchemaVersionsDelete' operation")) { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + } } } } @@ -367,7 +435,7 @@ protected override void ProcessRecord() if (SchemaInputObject?.Id != null) { this.SchemaInputObject.Id += $"/schemaVersions/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; - await this.Client.SchemaVersionsDeleteViaIdentity(SchemaInputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemaVersionsDeleteViaIdentity(SchemaInputObject.Id, onNoContent, onOk, onDefault, this, Pipeline); } else { @@ -388,7 +456,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("SchemaInputObject has null value for SchemaInputObject.SchemaName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, SchemaInputObject) ); } - await this.Client.SchemaVersionsDelete(SchemaInputObject.SubscriptionId ?? null, SchemaInputObject.ResourceGroupName ?? null, SchemaInputObject.SchemaRegistryName ?? null, SchemaInputObject.SchemaName ?? null, Name, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemaVersionsDelete(SchemaInputObject.SubscriptionId ?? null, SchemaInputObject.ResourceGroupName ?? null, SchemaInputObject.SchemaRegistryName ?? null, SchemaInputObject.SchemaName ?? null, Name, onNoContent, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -495,7 +563,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -519,7 +587,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchemaRegistry.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchemaRegistry.cs index 96a2fe1d252b..e265d0f1b305 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchemaRegistry.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchemaRegistry.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a SchemaVersion")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}/schemaVersions/{schemaVersionName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchemaRegistry : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -40,14 +40,10 @@ public partial class RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -111,6 +107,14 @@ public partial class RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchema [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. /// @@ -211,14 +215,33 @@ protected override void BeginProcessing() ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchemaRegistry + /// + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets.RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchemaRegistry Clone() + { + var clone = new RemoveAzDeviceRegistrySchemaVersion_DeleteViaIdentitySchemaRegistry(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SchemaName = this.SchemaName; + clone.Name = this.Name; + return clone; + } + /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -269,8 +292,8 @@ protected override void EndProcessing() } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information: { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); return ; } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug: @@ -308,6 +331,40 @@ protected override void EndProcessing() }); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } } await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) @@ -328,9 +385,21 @@ protected override void ProcessRecord() // work if (ShouldProcess($"Call remote 'SchemaVersionsDelete' operation")) { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + } } } } @@ -381,7 +450,7 @@ protected override void ProcessRecord() if (SchemaRegistryInputObject?.Id != null) { this.SchemaRegistryInputObject.Id += $"/schemas/{(global::System.Uri.EscapeDataString(this.SchemaName.ToString()))}/schemaVersions/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; - await this.Client.SchemaVersionsDeleteViaIdentity(SchemaRegistryInputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemaVersionsDeleteViaIdentity(SchemaRegistryInputObject.Id, onNoContent, onOk, onDefault, this, Pipeline); } else { @@ -398,7 +467,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("SchemaRegistryInputObject has null value for SchemaRegistryInputObject.SchemaRegistryName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, SchemaRegistryInputObject) ); } - await this.Client.SchemaVersionsDelete(SchemaRegistryInputObject.SubscriptionId ?? null, SchemaRegistryInputObject.ResourceGroupName ?? null, SchemaRegistryInputObject.SchemaRegistryName ?? null, SchemaName, Name, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemaVersionsDelete(SchemaRegistryInputObject.SubscriptionId ?? null, SchemaRegistryInputObject.ResourceGroupName ?? null, SchemaRegistryInputObject.SchemaRegistryName ?? null, SchemaName, Name, onNoContent, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -506,7 +575,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -530,7 +599,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_Delete.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_Delete.cs index 474d3d38befe..78cf9b79561d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_Delete.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a Schema")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistrySchema_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -40,14 +40,10 @@ public partial class RemoveAzDeviceRegistrySchema_Delete : global::System.Manage /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -111,6 +107,14 @@ public partial class RemoveAzDeviceRegistrySchema_Delete : global::System.Manage [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. /// @@ -237,14 +241,33 @@ protected override void BeginProcessing() ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDeviceRegistrySchema_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets.RemoveAzDeviceRegistrySchema_Delete Clone() + { + var clone = new RemoveAzDeviceRegistrySchema_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.RegistryName = this.RegistryName; + clone.Name = this.Name; + return clone; + } + /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -295,8 +318,8 @@ protected override void EndProcessing() } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information: { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); return ; } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug: @@ -334,6 +357,40 @@ protected override void EndProcessing() }); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } } await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) @@ -354,9 +411,21 @@ protected override void ProcessRecord() // work if (ShouldProcess($"Call remote 'SchemasDelete' operation")) { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + } } } } @@ -404,7 +473,7 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.SchemasDelete(SubscriptionId, ResourceGroupName, RegistryName, Name, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemasDelete(SubscriptionId, ResourceGroupName, RegistryName, Name, onNoContent, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.UndeclaredResponseException urexception) @@ -510,7 +579,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -534,7 +603,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_DeleteViaIdentity.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_DeleteViaIdentity.cs index 3ceb86385f05..294b6543884a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_DeleteViaIdentity.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a Schema")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistrySchema_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -40,14 +40,10 @@ public partial class RemoveAzDeviceRegistrySchema_DeleteViaIdentity : global::Sy /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -104,6 +100,14 @@ public partial class RemoveAzDeviceRegistrySchema_DeleteViaIdentity : global::Sy /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. /// @@ -182,14 +186,29 @@ protected override void BeginProcessing() ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDeviceRegistrySchema_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets.RemoveAzDeviceRegistrySchema_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDeviceRegistrySchema_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -240,8 +259,8 @@ protected override void EndProcessing() } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information: { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); return ; } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug: @@ -279,6 +298,40 @@ protected override void EndProcessing() }); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } } await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) @@ -299,9 +352,21 @@ protected override void ProcessRecord() // work if (ShouldProcess($"Call remote 'SchemasDelete' operation")) { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + } } } } @@ -351,7 +416,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.SchemasDeleteViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemasDeleteViaIdentity(InputObject.Id, onNoContent, onOk, onDefault, this, Pipeline); } else { @@ -372,7 +437,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SchemaName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.SchemasDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.SchemaRegistryName ?? null, InputObject.SchemaName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemasDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.SchemaRegistryName ?? null, InputObject.SchemaName ?? null, onNoContent, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -479,7 +544,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -503,7 +568,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_DeleteViaIdentitySchemaRegistry.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_DeleteViaIdentitySchemaRegistry.cs index 7b8fe234c8f5..cce3ab464da5 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_DeleteViaIdentitySchemaRegistry.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/RemoveAzDeviceRegistrySchema_DeleteViaIdentitySchemaRegistry.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"Delete a Schema")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/schemaRegistries/{schemaRegistryName}/schemas/{schemaName}", ApiVersion = "2025-10-01")] public partial class RemoveAzDeviceRegistrySchema_DeleteViaIdentitySchemaRegistry : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -40,14 +40,10 @@ public partial class RemoveAzDeviceRegistrySchema_DeleteViaIdentitySchemaRegistr /// A dictionary to carry over additional data for pipeline. private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); - /// A buffer to record first returned object in response. - private object _firstResponse = null; - - /// - /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. - /// Two means multiple returned objects in response. - /// - private int _responseSize = 0; + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -111,6 +107,14 @@ public partial class RemoveAzDeviceRegistrySchema_DeleteViaIdentitySchemaRegistr [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. /// @@ -197,14 +201,32 @@ protected override void BeginProcessing() ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of RemoveAzDeviceRegistrySchema_DeleteViaIdentitySchemaRegistry + /// + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets.RemoveAzDeviceRegistrySchema_DeleteViaIdentitySchemaRegistry Clone() + { + var clone = new RemoveAzDeviceRegistrySchema_DeleteViaIdentitySchemaRegistry(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Name = this.Name; + return clone; + } + /// Performs clean-up after the command execution protected override void EndProcessing() { - if (1 ==_responseSize) - { - // Flush buffer - WriteObject(_firstResponse); - } var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { @@ -255,8 +277,8 @@ protected override void EndProcessing() } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Information: { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); return ; } case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.Debug: @@ -294,6 +316,40 @@ protected override void EndProcessing() }); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } } await Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) @@ -314,9 +370,21 @@ protected override void ProcessRecord() // work if (ShouldProcess($"Call remote 'SchemasDelete' operation")) { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token); + } } } } @@ -367,7 +435,7 @@ protected override void ProcessRecord() if (SchemaRegistryInputObject?.Id != null) { this.SchemaRegistryInputObject.Id += $"/schemas/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; - await this.Client.SchemasDeleteViaIdentity(SchemaRegistryInputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemasDeleteViaIdentity(SchemaRegistryInputObject.Id, onNoContent, onOk, onDefault, this, Pipeline); } else { @@ -384,7 +452,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("SchemaRegistryInputObject has null value for SchemaRegistryInputObject.SchemaRegistryName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, SchemaRegistryInputObject) ); } - await this.Client.SchemasDelete(SchemaRegistryInputObject.SubscriptionId ?? null, SchemaRegistryInputObject.ResourceGroupName ?? null, SchemaRegistryInputObject.SchemaRegistryName ?? null, Name, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.SchemasDelete(SchemaRegistryInputObject.SubscriptionId ?? null, SchemaRegistryInputObject.ResourceGroupName ?? null, SchemaRegistryInputObject.SchemaRegistryName ?? null, Name, onNoContent, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -491,7 +559,7 @@ protected override void StopProcessing() return ; } // onNoContent - response for 204 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } @@ -515,7 +583,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / - if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + if (true == InvocationInformation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateExpanded.cs index f9f624ae64d5..9250aca6763e 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a AssetEndpointProfile")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryAssetEndpointProfile_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaIdentityExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaIdentityExpanded.cs index 571068cbd21b..997e4287983d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaIdentityExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a AssetEndpointProfile")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaJsonFilePath.cs index fdcfd0b0feda..48c3b28c2fe7 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a AssetEndpointProfile")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaJsonString.cs index d012f45c0bd0..347cefecc609 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAssetEndpointProfile))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a AssetEndpointProfile")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryAssetEndpointProfile_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateExpanded.cs index e418b2895574..1cf12a82dd47 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a Asset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryAsset_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaIdentityExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaIdentityExpanded.cs index 630be8bb6b1c..ea7639e5eb6e 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaIdentityExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a Asset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryAsset_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaJsonFilePath.cs index 04904f6ce04f..5e2e792f9c2a 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a Asset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryAsset_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaJsonString.cs index 52d6b428029f..8916f01af5ba 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryAsset_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a Asset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryAsset_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateExpanded.cs index 35d348d6a362..3c295d56ef4c 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceAsset_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -258,18 +258,18 @@ public partial class UpdateAzDeviceRegistryNamespaceAsset_UpdateExpanded : globa public global::System.Management.Automation.SwitchParameter Enabled { get => _propertiesBody.Enabled ?? default(global::System.Management.Automation.SwitchParameter); set => _propertiesBody.Enabled = value; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of events that are part of the asset. Each event can have per-event configuration.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of event groups that are part of the asset. Each event group can have per-event group configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) })] - public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[] Event { get => _propertiesBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup) })] + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[] EventGroup { get => _propertiesBody.EventGroup?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.EventGroup = (value != null ? new System.Collections.Generic.List(value) : null); } /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityExpanded.cs index 89acd6f3e01e..abaae3837c49 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -244,18 +244,18 @@ public partial class UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityExpan public global::System.Management.Automation.SwitchParameter Enabled { get => _propertiesBody.Enabled ?? default(global::System.Management.Automation.SwitchParameter); set => _propertiesBody.Enabled = value; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of events that are part of the asset. Each event can have per-event configuration.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of event groups that are part of the asset. Each event group can have per-event group configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) })] - public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[] Event { get => _propertiesBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup) })] + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[] EventGroup { get => _propertiesBody.EventGroup?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.EventGroup = (value != null ? new System.Collections.Generic.List(value) : null); } /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityNamespaceExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityNamespaceExpanded.cs index 621d439b3e2c..0a8733f7daff 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityNamespaceExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityNamespaceExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityNamespaceExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -258,18 +258,18 @@ public partial class UpdateAzDeviceRegistryNamespaceAsset_UpdateViaIdentityNames public global::System.Management.Automation.SwitchParameter Enabled { get => _propertiesBody.Enabled ?? default(global::System.Management.Automation.SwitchParameter); set => _propertiesBody.Enabled = value; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of events that are part of the asset. Each event can have per-event configuration.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of event groups that are part of the asset. Each event group can have per-event group configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent) })] - public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[] Event { get => _propertiesBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup) })] + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[] EventGroup { get => _propertiesBody.EventGroup?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.EventGroup = (value != null ? new System.Collections.Generic.List(value) : null); } /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaJsonFilePath.cs index f3274be5775c..4d9d19c07cd2 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryNamespaceAsset_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaJsonString.cs index d11e13c001c4..3ed5dee2589e 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceAsset_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/assets/{assetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryNamespaceAsset_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateExpanded.cs index 76d0675ee46f..3b7900b36ac7 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceDevice_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaIdentityExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaIdentityExpanded.cs index e6b058533243..3ba0119e10ef 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaIdentityExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceDevice_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaIdentityNamespaceExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaIdentityNamespaceExpanded.cs index 49178d267983..fc57c82c4b84 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaIdentityNamespaceExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaIdentityNamespaceExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceDevice_UpdateViaIdentityNamespaceExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaJsonFilePath.cs index f6a3b4b210e8..3330a7c139b9 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryNamespaceDevice_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaJsonString.cs index 0b7b6055e7a9..f6891e569a2d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDevice_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryNamespaceDevice_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateExpanded.cs index e9ace938ed35..d9ca58d08255 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -199,6 +199,17 @@ public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateExpand PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) })] public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination[] DefaultStreamsDestination { get => _propertiesBody.DefaultStreamsDestination?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.DefaultStreamsDestination = (value != null ? new System.Collections.Generic.List(value) : null); } + /// Human-readable description of the asset. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Human-readable description of the asset.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Human-readable description of the asset.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + public string Description { get => _propertiesBody.Description ?? null; set => _propertiesBody.Description = value; } + /// Name of the device resource [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the device resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] @@ -246,6 +257,17 @@ public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateExpand PossibleTypes = new [] { typeof(string) })] public string DiscoveryId { get => _propertiesBody.DiscoveryId ?? null; set => _propertiesBody.DiscoveryId = value; } + /// Human-readable display name. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Human-readable display name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Human-readable display name.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _propertiesBody.DisplayName ?? null; set => _propertiesBody.DisplayName = value; } + /// Asset documentation reference. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Asset documentation reference.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] @@ -258,18 +280,18 @@ public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateExpand public string DocumentationUri { get => _propertiesBody.DocumentationUri ?? null; set => _propertiesBody.DocumentationUri = value; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of events that are part of the asset. Each event can have per-event configuration.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of event groups that are part of the asset. Each event group can have per-event group configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) })] - public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent[] Event { get => _propertiesBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup) })] + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup[] EventGroup { get => _propertiesBody.EventGroup?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.EventGroup = (value != null ? new System.Collections.Generic.List(value) : null); } /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIdentityExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIdentityExpanded.cs index 5ae2b2d767b0..ae1e715950c2 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIdentityExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -199,6 +199,17 @@ public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIde PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) })] public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination[] DefaultStreamsDestination { get => _propertiesBody.DefaultStreamsDestination?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.DefaultStreamsDestination = (value != null ? new System.Collections.Generic.List(value) : null); } + /// Human-readable description of the asset. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Human-readable description of the asset.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Human-readable description of the asset.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + public string Description { get => _propertiesBody.Description ?? null; set => _propertiesBody.Description = value; } + /// Name of the device resource [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the device resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] @@ -232,6 +243,17 @@ public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIde PossibleTypes = new [] { typeof(string) })] public string DiscoveryId { get => _propertiesBody.DiscoveryId ?? null; set => _propertiesBody.DiscoveryId = value; } + /// Human-readable display name. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Human-readable display name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Human-readable display name.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _propertiesBody.DisplayName ?? null; set => _propertiesBody.DisplayName = value; } + /// Asset documentation reference. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Asset documentation reference.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] @@ -244,18 +266,18 @@ public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIde public string DocumentationUri { get => _propertiesBody.DocumentationUri ?? null; set => _propertiesBody.DocumentationUri = value; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of events that are part of the asset. Each event can have per-event configuration.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of event groups that are part of the asset. Each event group can have per-event group configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) })] - public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent[] Event { get => _propertiesBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup) })] + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup[] EventGroup { get => _propertiesBody.EventGroup?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.EventGroup = (value != null ? new System.Collections.Generic.List(value) : null); } /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIdentityNamespaceExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIdentityNamespaceExpanded.cs index 4c637809cb74..a709a26dde75 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIdentityNamespaceExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIdentityNamespaceExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIdentityNamespaceExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext @@ -199,6 +199,17 @@ public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIde PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination) })] public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.IStreamDestination[] DefaultStreamsDestination { get => _propertiesBody.DefaultStreamsDestination?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.DefaultStreamsDestination = (value != null ? new System.Collections.Generic.List(value) : null); } + /// Human-readable description of the asset. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Human-readable description of the asset.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Human-readable description of the asset.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + public string Description { get => _propertiesBody.Description ?? null; set => _propertiesBody.Description = value; } + /// Name of the device resource [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the device resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] @@ -246,6 +257,17 @@ public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIde PossibleTypes = new [] { typeof(string) })] public string DiscoveryId { get => _propertiesBody.DiscoveryId ?? null; set => _propertiesBody.DiscoveryId = value; } + /// Human-readable display name. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Human-readable display name.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Human-readable display name.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _propertiesBody.DisplayName ?? null; set => _propertiesBody.DisplayName = value; } + /// Asset documentation reference. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Asset documentation reference.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] @@ -258,18 +280,18 @@ public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaIde public string DocumentationUri { get => _propertiesBody.DocumentationUri ?? null; set => _propertiesBody.DocumentationUri = value; } /// - /// Array of events that are part of the asset. Each event can have per-event configuration. + /// Array of event groups that are part of the asset. Each event group can have per-event group configuration. /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of events that are part of the asset. Each event can have per-event configuration.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of event groups that are part of the asset. Each event group can have per-event group configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Array of events that are part of the asset. Each event can have per-event configuration.", - SerializedName = @"events", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent) })] - public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent[] Event { get => _propertiesBody.Event?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.Event = (value != null ? new System.Collections.Generic.List(value) : null); } + Description = @"Array of event groups that are part of the asset. Each event group can have per-event group configuration.", + SerializedName = @"eventGroups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup) })] + public Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup[] EventGroup { get => _propertiesBody.EventGroup?.ToArray() ?? null /* fixedArrayOf */; set => _propertiesBody.EventGroup = (value != null ? new System.Collections.Generic.List(value) : null); } /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaJsonFilePath.cs index 829ee9e0d5d8..68eefcca7e6c 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaJsonString.cs index 14ae4f8fd915..c20b1955cf5c 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredAsset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDiscoveredAsset")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredAssets/{discoveredAssetName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryNamespaceDiscoveredAsset_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateExpanded.cs index a35b283a3bcc..5ed587e1846f 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaIdentityExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaIdentityExpanded.cs index 0f22806468cf..d1b74d7557f9 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaIdentityExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaIdentityExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaIdentityNamespaceExpanded.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaIdentityNamespaceExpanded.cs index 0cadfe047ad7..1231e0691954 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaIdentityNamespaceExpanded.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaIdentityNamespaceExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] public partial class UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaIdentityNamespaceExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IContext diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaJsonFilePath.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaJsonFilePath.cs index 610fad19d706..f83cf2a756e7 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaJsonFilePath.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaJsonString.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaJsonString.cs index 504a6c78d143..8dd4c1643e1d 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaJsonString.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/cmdlets/UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredDevice))] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Description(@"update a NamespaceDiscoveredDevice")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-07-01-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/discoveredDevices/{discoveredDeviceName}", ApiVersion = "2025-10-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.NotSuggestDefaultParameterSet] public partial class UpdateAzDeviceRegistryNamespaceDiscoveredDevice_UpdateViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime.IEventListener, diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/runtime/Context.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/runtime/Context.cs index 42e4d40b0329..07518b4a7389 100644 --- a/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/runtime/Context.cs +++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/generated/runtime/Context.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Runtime /// The IContext Interface defines the communication mechanism for input customization. /// /// - /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// In the context, we will have client, pipeline, PSBoundParameters, default EventListener, Cancellation. /// public interface IContext {