diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/ArmDeviceRegistryModelFactory.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/ArmDeviceRegistryModelFactory.cs
index 23be7c4b75af..8983de055604 100644
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/ArmDeviceRegistryModelFactory.cs
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/ArmDeviceRegistryModelFactory.cs
@@ -236,7 +236,7 @@ public static DeviceRegistryBillingContainerData DeviceRegistryBillingContainerD
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
@@ -245,12 +245,12 @@ public static DeviceRegistryBillingContainerData DeviceRegistryBillingContainerD
/// The location.
/// The resource-specific properties for this resource.
/// The managed service identities assigned to this resource. Current supported identity types: None, SystemAssigned.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceData DeviceRegistryNamespaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DeviceRegistryNamespaceProperties properties = null, ManagedServiceIdentity identity = null)
+ /// A new instance for mocking.
+ public static NamespaceData NamespaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NamespaceProperties properties = null, ManagedServiceIdentity identity = null)
{
tags ??= new Dictionary();
- return new DeviceRegistryNamespaceData(
+ return new NamespaceData(
id,
name,
resourceType,
@@ -262,30 +262,30 @@ public static DeviceRegistryNamespaceData DeviceRegistryNamespaceData(ResourceId
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// Globally unique, immutable, non-reusable ID.
/// Assigned and unassigned messaging endpoints.
/// Provisioning state of the resource.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceProperties DeviceRegistryNamespaceProperties(string uuid = null, IDictionary messagingEndpoints = null, DeviceRegistryProvisioningState? provisioningState = null)
+ /// A new instance for mocking.
+ public static NamespaceProperties NamespaceProperties(string uuid = null, IDictionary messagingEndpoints = null, DeviceRegistryProvisioningState? provisioningState = null)
{
messagingEndpoints ??= new Dictionary();
- return new DeviceRegistryNamespaceProperties(uuid, messagingEndpoints != null ? new Messaging(messagingEndpoints, serializedAdditionalRawData: null) : null, provisioningState, serializedAdditionalRawData: null);
+ return new NamespaceProperties(uuid, messagingEndpoints != null ? new Messaging(messagingEndpoints, serializedAdditionalRawData: null) : null, provisioningState, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// Multi-part error code for classification and root causing of errors (ex: 400.200.100.432).
/// Human-readable helpful error message to provide additional context for error (ex: “Authentication method not supported”).
/// Human-readable helpful detailed text context for debugging (ex: “The following mechanisms are supported...”).
/// Unique identifier for the transaction to aid in debugging.
- /// A new instance for mocking.
- public static DeviceRegistryErrorDetails DeviceRegistryErrorDetails(string code = null, string message = null, string info = null, string correlationId = null)
+ /// A new instance for mocking.
+ public static ErrorDetails ErrorDetails(string code = null, string message = null, string info = null, string correlationId = null)
{
- return new DeviceRegistryErrorDetails(code, message, info, correlationId, serializedAdditionalRawData: null);
+ return new ErrorDetails(code, message, info, correlationId, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
@@ -294,12 +294,12 @@ public static DeviceRegistryErrorDetails DeviceRegistryErrorDetails(string code
/// The location.
/// The resource-specific properties for this resource.
/// The extended location.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceAssetData DeviceRegistryNamespaceAssetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DeviceRegistryNamespaceAssetProperties properties = null, DeviceRegistryExtendedLocation extendedLocation = null)
+ /// A new instance for mocking.
+ public static NamespaceAssetData NamespaceAssetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NamespaceAssetProperties properties = null, DeviceRegistryExtendedLocation extendedLocation = null)
{
tags ??= new Dictionary();
- return new DeviceRegistryNamespaceAssetData(
+ return new NamespaceAssetData(
id,
name,
resourceType,
@@ -311,7 +311,7 @@ public static DeviceRegistryNamespaceAssetData DeviceRegistryNamespaceAssetData(
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// Globally unique, immutable, non-reusable ID.
/// Enabled/disabled status of the asset.
/// Asset ID provided by the customer.
@@ -356,8 +356,8 @@ public static DeviceRegistryNamespaceAssetData DeviceRegistryNamespaceAssetData(
/// Array of management groups that are part of the asset. Each management group can have a per-group configuration.
/// Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
/// Provisioning state of the resource.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceAssetProperties DeviceRegistryNamespaceAssetProperties(string uuid = null, bool? enabled = null, string externalAssetId = null, string displayName = null, string description = null, DeviceRef deviceRef = null, IEnumerable assetTypeRefs = null, long? version = null, DateTimeOffset? lastTransitionOn = null, string manufacturer = null, string manufacturerUri = null, string model = null, string productCode = null, string hardwareRevision = null, string softwareRevision = null, string documentationUri = null, string serialNumber = null, IDictionary attributes = null, IEnumerable discoveredAssetRefs = null, string defaultDatasetsConfiguration = null, string defaultEventsConfiguration = null, string defaultStreamsConfiguration = null, string defaultManagementGroupsConfiguration = null, IEnumerable defaultDatasetsDestinations = null, IEnumerable defaultEventsDestinations = null, IEnumerable defaultStreamsDestinations = null, IEnumerable datasets = null, IEnumerable eventGroups = null, IEnumerable streams = null, IEnumerable managementGroups = null, DeviceRegistryNamespaceAssetStatus status = null, DeviceRegistryProvisioningState? provisioningState = null)
+ /// A new instance for mocking.
+ public static NamespaceAssetProperties NamespaceAssetProperties(string uuid = null, bool? enabled = null, string externalAssetId = null, string displayName = null, string description = null, DeviceRef deviceRef = null, IEnumerable assetTypeRefs = null, long? version = null, DateTimeOffset? lastTransitionOn = null, string manufacturer = null, string manufacturerUri = null, string model = null, string productCode = null, string hardwareRevision = null, string softwareRevision = null, string documentationUri = null, string serialNumber = null, IDictionary attributes = null, IEnumerable discoveredAssetRefs = null, string defaultDatasetsConfiguration = null, string defaultEventsConfiguration = null, string defaultStreamsConfiguration = null, string defaultManagementGroupsConfiguration = null, IEnumerable defaultDatasetsDestinations = null, IEnumerable defaultEventsDestinations = null, IEnumerable defaultStreamsDestinations = null, IEnumerable datasets = null, IEnumerable eventGroups = null, IEnumerable streams = null, IEnumerable managementGroups = null, NamespaceAssetStatus status = null, DeviceRegistryProvisioningState? provisioningState = null)
{
assetTypeRefs ??= new List();
attributes ??= new Dictionary();
@@ -370,7 +370,7 @@ public static DeviceRegistryNamespaceAssetProperties DeviceRegistryNamespaceAsse
streams ??= new List();
managementGroups ??= new List();
- return new DeviceRegistryNamespaceAssetProperties(
+ return new NamespaceAssetProperties(
uuid,
enabled,
externalAssetId,
@@ -406,21 +406,21 @@ public static DeviceRegistryNamespaceAssetProperties DeviceRegistryNamespaceAsse
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// Defines the asset status config properties.
/// Array of dataset statuses that describe the status of each dataset.
/// Array of event group statuses that describe the status of each event group.
/// Array of stream statuses that describe the status of each stream.
/// Array of management group statuses that describe the status of each management group.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceAssetStatus DeviceRegistryNamespaceAssetStatus(DeviceRegistryStatusConfig config = null, IEnumerable datasets = null, IEnumerable eventGroups = null, IEnumerable streams = null, IEnumerable managementGroups = null)
+ /// A new instance for mocking.
+ public static NamespaceAssetStatus NamespaceAssetStatus(StatusConfig config = null, IEnumerable datasets = null, IEnumerable eventGroups = null, IEnumerable streams = null, IEnumerable managementGroups = null)
{
- datasets ??= new List();
- eventGroups ??= new List();
- streams ??= new List();
- managementGroups ??= new List();
+ datasets ??= new List();
+ eventGroups ??= new List();
+ streams ??= new List();
+ managementGroups ??= new List();
- return new DeviceRegistryNamespaceAssetStatus(
+ return new NamespaceAssetStatus(
config,
datasets?.ToList(),
eventGroups?.ToList(),
@@ -429,102 +429,102 @@ public static DeviceRegistryNamespaceAssetStatus DeviceRegistryNamespaceAssetSta
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// A read-only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (edge) state of the CRD. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
/// A read-only timestamp indicating the last time the configuration has been modified from the perspective of the current actual (edge) state of the CRD. Edge would be the only writer of this value and would sync back up to the cloud.
/// Object to transfer and persist errors that originate from the edge.
- /// A new instance for mocking.
- public static DeviceRegistryStatusConfig DeviceRegistryStatusConfig(long? version = null, DateTimeOffset? lastTransitionOn = null, DeviceRegistryStatusError error = null)
+ /// A new instance for mocking.
+ public static StatusConfig StatusConfig(long? version = null, DateTimeOffset? lastTransitionOn = null, StatusError error = null)
{
- return new DeviceRegistryStatusConfig(version, lastTransitionOn, error, serializedAdditionalRawData: null);
+ return new StatusConfig(version, lastTransitionOn, error, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// Error code for classification of errors (ex: '400', '404', '500', etc.).
/// Human-readable helpful error message to provide additional context for error (e.g.,: “Capability ID 'foo' does not exist”).
/// Array of error details that describe the status of each error.
- /// A new instance for mocking.
- public static DeviceRegistryStatusError DeviceRegistryStatusError(string code = null, string message = null, IEnumerable details = null)
+ /// A new instance for mocking.
+ public static StatusError StatusError(string code = null, string message = null, IEnumerable details = null)
{
- details ??= new List();
+ details ??= new List();
- return new DeviceRegistryStatusError(code, message, details?.ToList(), serializedAdditionalRawData: null);
+ return new StatusError(code, message, details?.ToList(), serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The name of the dataset. Must be unique within the status.datasets array. This name is used to correlate between the spec and status dataset information.
/// The message schema reference object.
/// Object to transfer and persist errors that originate from the edge.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceAssetStatusDataset DeviceRegistryNamespaceAssetStatusDataset(string name = null, DeviceRegistryNamespaceMessageSchemaReference messageSchemaReference = null, DeviceRegistryStatusError error = null)
+ /// A new instance for mocking.
+ public static NamespaceAssetStatusDataset NamespaceAssetStatusDataset(string name = null, NamespaceMessageSchemaReference messageSchemaReference = null, StatusError error = null)
{
- return new DeviceRegistryNamespaceAssetStatusDataset(name, messageSchemaReference, error, serializedAdditionalRawData: null);
+ return new NamespaceAssetStatusDataset(name, messageSchemaReference, error, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The message schema registry namespace.
/// The message schema name.
/// The message schema version.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceMessageSchemaReference DeviceRegistryNamespaceMessageSchemaReference(string schemaRegistryNamespace = null, string schemaName = null, string schemaVersion = null)
+ /// A new instance for mocking.
+ public static NamespaceMessageSchemaReference NamespaceMessageSchemaReference(string schemaRegistryNamespace = null, string schemaName = null, string schemaVersion = null)
{
- return new DeviceRegistryNamespaceMessageSchemaReference(schemaRegistryNamespace, schemaName, schemaVersion, serializedAdditionalRawData: null);
+ return new NamespaceMessageSchemaReference(schemaRegistryNamespace, schemaName, schemaVersion, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// 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.
/// Array of event statuses that describe the status of each event in the event group.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceAssetStatusEventGroup DeviceRegistryNamespaceAssetStatusEventGroup(string name = null, IEnumerable events = null)
+ /// A new instance for mocking.
+ public static NamespaceAssetStatusEventGroup NamespaceAssetStatusEventGroup(string name = null, IEnumerable events = null)
{
- events ??= new List();
+ events ??= new List();
- return new DeviceRegistryNamespaceAssetStatusEventGroup(name, events?.ToList(), serializedAdditionalRawData: null);
+ return new NamespaceAssetStatusEventGroup(name, events?.ToList(), serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The name of the event. Must be unique within the status.events array. This name is used to correlate between the spec and status event information.
/// The message schema reference object.
/// Object to transfer and persist errors that originate from the edge.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceAssetStatusEvent DeviceRegistryNamespaceAssetStatusEvent(string name = null, DeviceRegistryNamespaceMessageSchemaReference messageSchemaReference = null, DeviceRegistryStatusError error = null)
+ /// A new instance for mocking.
+ public static NamespaceAssetStatusEvent NamespaceAssetStatusEvent(string name = null, NamespaceMessageSchemaReference messageSchemaReference = null, StatusError error = null)
{
- return new DeviceRegistryNamespaceAssetStatusEvent(name, messageSchemaReference, error, serializedAdditionalRawData: null);
+ return new NamespaceAssetStatusEvent(name, messageSchemaReference, error, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The name of the stream. Must be unique within the status.streams array. This name is used to correlate between the spec and status event information.
/// The message schema reference object.
/// Object to transfer and persist errors that originate from the edge.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceAssetStatusStream DeviceRegistryNamespaceAssetStatusStream(string name = null, DeviceRegistryNamespaceMessageSchemaReference messageSchemaReference = null, DeviceRegistryStatusError error = null)
+ /// A new instance for mocking.
+ public static NamespaceAssetStatusStream NamespaceAssetStatusStream(string name = null, NamespaceMessageSchemaReference messageSchemaReference = null, StatusError error = null)
{
- return new DeviceRegistryNamespaceAssetStatusStream(name, messageSchemaReference, error, serializedAdditionalRawData: null);
+ return new NamespaceAssetStatusStream(name, messageSchemaReference, error, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The name of the management group. Must be unique within the status.managementGroups array. This name is used to correlate between the spec and status event information.
/// Array of action statuses that describe the status of each action.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceAssetStatusManagementGroup DeviceRegistryNamespaceAssetStatusManagementGroup(string name = null, IEnumerable actions = null)
+ /// A new instance for mocking.
+ public static NamespaceAssetStatusManagementGroup NamespaceAssetStatusManagementGroup(string name = null, IEnumerable actions = null)
{
- actions ??= new List();
+ actions ??= new List();
- return new DeviceRegistryNamespaceAssetStatusManagementGroup(name, actions?.ToList(), serializedAdditionalRawData: null);
+ return new NamespaceAssetStatusManagementGroup(name, actions?.ToList(), serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The name of the action. Must be unique within the status.actions array. This name is used to correlate between the spec and status event information.
/// The request message schema reference object for the action.
/// The response message schema reference object for the action.
/// Object to transfer and persist errors that originate from the edge.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceAssetStatusManagementAction DeviceRegistryNamespaceAssetStatusManagementAction(string name = null, DeviceRegistryNamespaceMessageSchemaReference requestMessageSchemaReference = null, DeviceRegistryNamespaceMessageSchemaReference responseMessageSchemaReference = null, DeviceRegistryStatusError error = null)
+ /// A new instance for mocking.
+ public static NamespaceAssetStatusManagementAction NamespaceAssetStatusManagementAction(string name = null, NamespaceMessageSchemaReference requestMessageSchemaReference = null, NamespaceMessageSchemaReference responseMessageSchemaReference = null, StatusError error = null)
{
- return new DeviceRegistryNamespaceAssetStatusManagementAction(name, requestMessageSchemaReference, responseMessageSchemaReference, error, serializedAdditionalRawData: null);
+ return new NamespaceAssetStatusManagementAction(name, requestMessageSchemaReference, responseMessageSchemaReference, error, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
@@ -534,12 +534,12 @@ public static DeviceRegistryNamespaceAssetStatusManagementAction DeviceRegistryN
/// The resource-specific properties for this resource.
/// Resource Tag.
/// The extended location.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceDeviceData DeviceRegistryNamespaceDeviceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DeviceRegistryNamespaceDeviceProperties properties = null, string etag = null, DeviceRegistryExtendedLocation extendedLocation = null)
+ /// A new instance for mocking.
+ public static NamespaceDeviceData NamespaceDeviceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NamespaceDeviceProperties properties = null, string etag = null, DeviceRegistryExtendedLocation extendedLocation = null)
{
tags ??= new Dictionary();
- return new DeviceRegistryNamespaceDeviceData(
+ return new NamespaceDeviceData(
id,
name,
resourceType,
@@ -552,7 +552,7 @@ public static DeviceRegistryNamespaceDeviceData DeviceRegistryNamespaceDeviceDat
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// A unique identifier for the device.
/// Indicates if the resource is enabled or not.
/// The Device ID provided by the customer.
@@ -567,12 +567,12 @@ public static DeviceRegistryNamespaceDeviceData DeviceRegistryNamespaceDeviceDat
/// An integer that is incremented each time the resource is modified.
/// A timestamp (in UTC) that is updated each time the resource is modified.
/// Provisioning state of the resource.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceDeviceProperties DeviceRegistryNamespaceDeviceProperties(string uuid = null, bool? enabled = null, string externalDeviceId = null, string discoveredDeviceRef = null, string manufacturer = null, string model = null, string operatingSystem = null, string operatingSystemVersion = null, MessagingEndpoints endpoints = null, IDictionary attributes = null, DeviceStatus status = null, long? version = null, DateTimeOffset? lastTransitionOn = null, DeviceRegistryProvisioningState? provisioningState = null)
+ /// A new instance for mocking.
+ public static NamespaceDeviceProperties NamespaceDeviceProperties(string uuid = null, bool? enabled = null, string externalDeviceId = null, string discoveredDeviceRef = null, string manufacturer = null, string model = null, string operatingSystem = null, string operatingSystemVersion = null, MessagingEndpoints endpoints = null, IDictionary attributes = null, DeviceStatus status = null, long? version = null, DateTimeOffset? lastTransitionOn = null, DeviceRegistryProvisioningState? provisioningState = null)
{
attributes ??= new Dictionary();
- return new DeviceRegistryNamespaceDeviceProperties(
+ return new NamespaceDeviceProperties(
uuid,
enabled,
externalDeviceId,
@@ -594,7 +594,7 @@ public static DeviceRegistryNamespaceDeviceProperties DeviceRegistryNamespaceDev
/// Defines the device status config properties.
/// Defines the device status for inbound/outbound endpoints.
/// A new instance for mocking.
- public static DeviceStatus DeviceStatus(DeviceRegistryStatusConfig config = null, IReadOnlyDictionary endpointsInbound = null)
+ public static DeviceStatus DeviceStatus(StatusConfig config = null, IReadOnlyDictionary endpointsInbound = null)
{
endpointsInbound ??= new Dictionary();
@@ -604,12 +604,12 @@ public static DeviceStatus DeviceStatus(DeviceRegistryStatusConfig config = null
/// Initializes a new instance of .
/// Defines the error related to this endpoint.
/// A new instance for mocking.
- public static DeviceStatusEndpoint DeviceStatusEndpoint(DeviceRegistryStatusError error = null)
+ public static DeviceStatusEndpoint DeviceStatusEndpoint(StatusError error = null)
{
return new DeviceStatusEndpoint(error, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
@@ -618,12 +618,12 @@ public static DeviceStatusEndpoint DeviceStatusEndpoint(DeviceRegistryStatusErro
/// The location.
/// The resource-specific properties for this resource.
/// The extended location.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceDiscoveredAssetData DeviceRegistryNamespaceDiscoveredAssetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DeviceRegistryNamespaceDiscoveredAssetProperties properties = null, DeviceRegistryExtendedLocation extendedLocation = null)
+ /// A new instance for mocking.
+ public static NamespaceDiscoveredAssetData NamespaceDiscoveredAssetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NamespaceDiscoveredAssetProperties properties = null, DeviceRegistryExtendedLocation extendedLocation = null)
{
tags ??= new Dictionary();
- return new DeviceRegistryNamespaceDiscoveredAssetData(
+ return new NamespaceDiscoveredAssetData(
id,
name,
resourceType,
@@ -635,7 +635,7 @@ public static DeviceRegistryNamespaceDiscoveredAssetData DeviceRegistryNamespace
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// Reference to the device that provides data for this asset. Must provide device name & endpoint on the device to use.
/// Human-readable display name.
/// URIs or type definition IDs.
@@ -676,8 +676,8 @@ public static DeviceRegistryNamespaceDiscoveredAssetData DeviceRegistryNamespace
/// Array of streams that are part of the asset. Each stream can have a per-stream configuration.
/// Array of management groups that are part of the asset. Each management group can have a per-group configuration.
/// Provisioning state of the resource.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceDiscoveredAssetProperties DeviceRegistryNamespaceDiscoveredAssetProperties(DeviceRef deviceRef = null, string displayName = null, IEnumerable assetTypeRefs = null, string description = null, string discoveryId = null, string externalAssetId = null, long version = default, string manufacturer = null, string manufacturerUri = null, string model = null, string productCode = null, string hardwareRevision = null, string softwareRevision = null, string documentationUri = null, string serialNumber = null, IDictionary attributes = null, string defaultDatasetsConfiguration = null, string defaultEventsConfiguration = null, string defaultStreamsConfiguration = null, string defaultManagementGroupsConfiguration = null, IEnumerable defaultDatasetsDestinations = null, IEnumerable defaultEventsDestinations = null, IEnumerable defaultStreamsDestinations = null, IEnumerable datasets = null, IEnumerable eventGroups = null, IEnumerable streams = null, IEnumerable managementGroups = null, DeviceRegistryProvisioningState? provisioningState = null)
+ /// A new instance for mocking.
+ public static NamespaceDiscoveredAssetProperties NamespaceDiscoveredAssetProperties(DeviceRef deviceRef = null, string displayName = null, IEnumerable assetTypeRefs = null, string description = null, string discoveryId = null, string externalAssetId = null, long version = default, string manufacturer = null, string manufacturerUri = null, string model = null, string productCode = null, string hardwareRevision = null, string softwareRevision = null, string documentationUri = null, string serialNumber = null, IDictionary attributes = null, string defaultDatasetsConfiguration = null, string defaultEventsConfiguration = null, string defaultStreamsConfiguration = null, string defaultManagementGroupsConfiguration = null, IEnumerable defaultDatasetsDestinations = null, IEnumerable defaultEventsDestinations = null, IEnumerable defaultStreamsDestinations = null, IEnumerable datasets = null, IEnumerable eventGroups = null, IEnumerable streams = null, IEnumerable managementGroups = null, DeviceRegistryProvisioningState? provisioningState = null)
{
assetTypeRefs ??= new List();
attributes ??= new Dictionary();
@@ -689,7 +689,7 @@ public static DeviceRegistryNamespaceDiscoveredAssetProperties DeviceRegistryNam
streams ??= new List();
managementGroups ??= new List();
- return new DeviceRegistryNamespaceDiscoveredAssetProperties(
+ return new NamespaceDiscoveredAssetProperties(
deviceRef,
displayName,
assetTypeRefs?.ToList(),
@@ -721,7 +721,7 @@ public static DeviceRegistryNamespaceDiscoveredAssetProperties DeviceRegistryNam
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
@@ -730,12 +730,12 @@ public static DeviceRegistryNamespaceDiscoveredAssetProperties DeviceRegistryNam
/// The location.
/// The resource-specific properties for this resource.
/// The extended location.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceDiscoveredDeviceData DeviceRegistryNamespaceDiscoveredDeviceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DeviceRegistryNamespaceDiscoveredDeviceProperties properties = null, DeviceRegistryExtendedLocation extendedLocation = null)
+ /// A new instance for mocking.
+ public static NamespaceDiscoveredDeviceData NamespaceDiscoveredDeviceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, NamespaceDiscoveredDeviceProperties properties = null, DeviceRegistryExtendedLocation extendedLocation = null)
{
tags ??= new Dictionary();
- return new DeviceRegistryNamespaceDiscoveredDeviceData(
+ return new NamespaceDiscoveredDeviceData(
id,
name,
resourceType,
@@ -747,7 +747,7 @@ public static DeviceRegistryNamespaceDiscoveredDeviceData DeviceRegistryNamespac
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// A device ID that represents the device in a system external to Azure. Unique within scope of an Azure tenant.
/// Endpoints for discovered devices.
/// Device manufacturer.
@@ -758,12 +758,12 @@ public static DeviceRegistryNamespaceDiscoveredDeviceData DeviceRegistryNamespac
/// Identifier used to detect changes in the discovered device.
/// An integer that is incremented each time the resource is modified.
/// Provisioning state of the resource.
- /// A new instance for mocking.
- public static DeviceRegistryNamespaceDiscoveredDeviceProperties DeviceRegistryNamespaceDiscoveredDeviceProperties(string externalDeviceId = null, DiscoveredMessagingEndpoints endpoints = null, string manufacturer = null, string model = null, string operatingSystem = null, string operatingSystemVersion = null, IDictionary attributes = null, string discoveryId = null, long version = default, DeviceRegistryProvisioningState? provisioningState = null)
+ /// A new instance for mocking.
+ public static NamespaceDiscoveredDeviceProperties NamespaceDiscoveredDeviceProperties(string externalDeviceId = null, DiscoveredMessagingEndpoints endpoints = null, string manufacturer = null, string model = null, string operatingSystem = null, string operatingSystemVersion = null, IDictionary attributes = null, string discoveryId = null, long version = default, DeviceRegistryProvisioningState? provisioningState = null)
{
attributes ??= new Dictionary();
- return new DeviceRegistryNamespaceDiscoveredDeviceProperties(
+ return new NamespaceDiscoveredDeviceProperties(
externalDeviceId,
endpoints,
manufacturer,
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceAssetResource.Serialization.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceAssetResource.Serialization.cs
deleted file mode 100644
index f157cae33249..000000000000
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceAssetResource.Serialization.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ClientModel.Primitives;
-using System.Text.Json;
-
-namespace Azure.ResourceManager.DeviceRegistry
-{
- public partial class DeviceRegistryNamespaceAssetResource : IJsonModel
- {
- private static DeviceRegistryNamespaceAssetData s_dataDeserializationInstance;
- private static DeviceRegistryNamespaceAssetData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
-
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
-
- DeviceRegistryNamespaceAssetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
-
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerDeviceRegistryContext.Default);
-
- DeviceRegistryNamespaceAssetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerDeviceRegistryContext.Default);
-
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
- }
-}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceDeviceResource.Serialization.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceDeviceResource.Serialization.cs
deleted file mode 100644
index f89f0fd43c34..000000000000
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceDeviceResource.Serialization.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ClientModel.Primitives;
-using System.Text.Json;
-
-namespace Azure.ResourceManager.DeviceRegistry
-{
- public partial class DeviceRegistryNamespaceDeviceResource : IJsonModel
- {
- private static DeviceRegistryNamespaceDeviceData s_dataDeserializationInstance;
- private static DeviceRegistryNamespaceDeviceData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
-
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
-
- DeviceRegistryNamespaceDeviceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
-
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerDeviceRegistryContext.Default);
-
- DeviceRegistryNamespaceDeviceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerDeviceRegistryContext.Default);
-
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
- }
-}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceDiscoveredAssetResource.Serialization.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceDiscoveredAssetResource.Serialization.cs
deleted file mode 100644
index 78c4b8ebe6c1..000000000000
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceDiscoveredAssetResource.Serialization.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ClientModel.Primitives;
-using System.Text.Json;
-
-namespace Azure.ResourceManager.DeviceRegistry
-{
- public partial class DeviceRegistryNamespaceDiscoveredAssetResource : IJsonModel
- {
- private static DeviceRegistryNamespaceDiscoveredAssetData s_dataDeserializationInstance;
- private static DeviceRegistryNamespaceDiscoveredAssetData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
-
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
-
- DeviceRegistryNamespaceDiscoveredAssetData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
-
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerDeviceRegistryContext.Default);
-
- DeviceRegistryNamespaceDiscoveredAssetData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerDeviceRegistryContext.Default);
-
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
- }
-}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceDiscoveredDeviceResource.Serialization.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceDiscoveredDeviceResource.Serialization.cs
deleted file mode 100644
index 44be24267918..000000000000
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceDiscoveredDeviceResource.Serialization.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ClientModel.Primitives;
-using System.Text.Json;
-
-namespace Azure.ResourceManager.DeviceRegistry
-{
- public partial class DeviceRegistryNamespaceDiscoveredDeviceResource : IJsonModel
- {
- private static DeviceRegistryNamespaceDiscoveredDeviceData s_dataDeserializationInstance;
- private static DeviceRegistryNamespaceDiscoveredDeviceData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
-
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
-
- DeviceRegistryNamespaceDiscoveredDeviceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
-
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerDeviceRegistryContext.Default);
-
- DeviceRegistryNamespaceDiscoveredDeviceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerDeviceRegistryContext.Default);
-
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
- }
-}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceResource.Serialization.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceResource.Serialization.cs
deleted file mode 100644
index 03c5c61426cb..000000000000
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/DeviceRegistryNamespaceResource.Serialization.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ClientModel.Primitives;
-using System.Text.Json;
-
-namespace Azure.ResourceManager.DeviceRegistry
-{
- public partial class DeviceRegistryNamespaceResource : IJsonModel
- {
- private static DeviceRegistryNamespaceData s_dataDeserializationInstance;
- private static DeviceRegistryNamespaceData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
-
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
-
- DeviceRegistryNamespaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
-
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerDeviceRegistryContext.Default);
-
- DeviceRegistryNamespaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerDeviceRegistryContext.Default);
-
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
- }
-}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/DeviceRegistryExtensions.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/DeviceRegistryExtensions.cs
index 181b0c91a73c..c1a93dfd2bfb 100644
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/DeviceRegistryExtensions.cs
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/DeviceRegistryExtensions.cs
@@ -90,98 +90,98 @@ public static DeviceRegistryBillingContainerResource GetDeviceRegistryBillingCon
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static DeviceRegistryNamespaceResource GetDeviceRegistryNamespaceResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static NamespaceResource GetNamespaceResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDeviceRegistryArmClient(client).GetDeviceRegistryNamespaceResource(id);
+ return GetMockableDeviceRegistryArmClient(client).GetNamespaceResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static DeviceRegistryNamespaceAssetResource GetDeviceRegistryNamespaceAssetResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static NamespaceAssetResource GetNamespaceAssetResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDeviceRegistryArmClient(client).GetDeviceRegistryNamespaceAssetResource(id);
+ return GetMockableDeviceRegistryArmClient(client).GetNamespaceAssetResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static DeviceRegistryNamespaceDeviceResource GetDeviceRegistryNamespaceDeviceResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static NamespaceDeviceResource GetNamespaceDeviceResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDeviceRegistryArmClient(client).GetDeviceRegistryNamespaceDeviceResource(id);
+ return GetMockableDeviceRegistryArmClient(client).GetNamespaceDeviceResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static DeviceRegistryNamespaceDiscoveredAssetResource GetDeviceRegistryNamespaceDiscoveredAssetResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static NamespaceDiscoveredAssetResource GetNamespaceDiscoveredAssetResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDeviceRegistryArmClient(client).GetDeviceRegistryNamespaceDiscoveredAssetResource(id);
+ return GetMockableDeviceRegistryArmClient(client).GetNamespaceDiscoveredAssetResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static DeviceRegistryNamespaceDiscoveredDeviceResource GetDeviceRegistryNamespaceDiscoveredDeviceResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static NamespaceDiscoveredDeviceResource GetNamespaceDiscoveredDeviceResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDeviceRegistryArmClient(client).GetDeviceRegistryNamespaceDiscoveredDeviceResource(id);
+ return GetMockableDeviceRegistryArmClient(client).GetNamespaceDiscoveredDeviceResource(id);
}
///
@@ -428,20 +428,20 @@ public static Response GetDeviceRegi
}
///
- /// Gets a collection of DeviceRegistryNamespaceResources in the ResourceGroupResource.
+ /// Gets a collection of NamespaceResources in the ResourceGroupResource.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// is null.
- /// An object representing collection of DeviceRegistryNamespaceResources and their operations over a DeviceRegistryNamespaceResource.
- public static DeviceRegistryNamespaceCollection GetDeviceRegistryNamespaces(this ResourceGroupResource resourceGroupResource)
+ /// An object representing collection of NamespaceResources and their operations over a NamespaceResource.
+ public static NamespaceCollection GetNamespaces(this ResourceGroupResource resourceGroupResource)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDeviceRegistryResourceGroupResource(resourceGroupResource).GetDeviceRegistryNamespaces();
+ return GetMockableDeviceRegistryResourceGroupResource(resourceGroupResource).GetNamespaces();
}
///
@@ -461,12 +461,12 @@ public static DeviceRegistryNamespaceCollection GetDeviceRegistryNamespaces(this
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
@@ -475,11 +475,11 @@ public static DeviceRegistryNamespaceCollection GetDeviceRegistryNamespaces(this
/// or is null.
/// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static async Task> GetDeviceRegistryNamespaceAsync(this ResourceGroupResource resourceGroupResource, string namespaceName, CancellationToken cancellationToken = default)
+ public static async Task> GetNamespaceAsync(this ResourceGroupResource resourceGroupResource, string namespaceName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return await GetMockableDeviceRegistryResourceGroupResource(resourceGroupResource).GetDeviceRegistryNamespaceAsync(namespaceName, cancellationToken).ConfigureAwait(false);
+ return await GetMockableDeviceRegistryResourceGroupResource(resourceGroupResource).GetNamespaceAsync(namespaceName, cancellationToken).ConfigureAwait(false);
}
///
@@ -499,12 +499,12 @@ public static async Task> GetDeviceReg
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
@@ -513,11 +513,11 @@ public static async Task> GetDeviceReg
/// or is null.
/// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static Response GetDeviceRegistryNamespace(this ResourceGroupResource resourceGroupResource, string namespaceName, CancellationToken cancellationToken = default)
+ public static Response GetNamespace(this ResourceGroupResource resourceGroupResource, string namespaceName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDeviceRegistryResourceGroupResource(resourceGroupResource).GetDeviceRegistryNamespace(namespaceName, cancellationToken);
+ return GetMockableDeviceRegistryResourceGroupResource(resourceGroupResource).GetNamespace(namespaceName, cancellationToken);
}
///
@@ -867,23 +867,23 @@ public static Pageable GetDeviceRegi
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The cancellation token to use.
/// is null.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable GetDeviceRegistryNamespacesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetNamespacesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDeviceRegistrySubscriptionResource(subscriptionResource).GetDeviceRegistryNamespacesAsync(cancellationToken);
+ return GetMockableDeviceRegistrySubscriptionResource(subscriptionResource).GetNamespacesAsync(cancellationToken);
}
///
@@ -903,23 +903,23 @@ public static AsyncPageable GetDeviceRegistryNa
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The cancellation token to use.
/// is null.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable GetDeviceRegistryNamespaces(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetNamespaces(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDeviceRegistrySubscriptionResource(subscriptionResource).GetDeviceRegistryNamespaces(cancellationToken);
+ return GetMockableDeviceRegistrySubscriptionResource(subscriptionResource).GetNamespaces(cancellationToken);
}
///
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistryArmClient.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistryArmClient.cs
index 052d4134dbff..f40380dfa187 100644
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistryArmClient.cs
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistryArmClient.cs
@@ -71,63 +71,63 @@ public virtual DeviceRegistryBillingContainerResource GetDeviceRegistryBillingCo
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual DeviceRegistryNamespaceResource GetDeviceRegistryNamespaceResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual NamespaceResource GetNamespaceResource(ResourceIdentifier id)
{
- DeviceRegistryNamespaceResource.ValidateResourceId(id);
- return new DeviceRegistryNamespaceResource(Client, id);
+ NamespaceResource.ValidateResourceId(id);
+ return new NamespaceResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual DeviceRegistryNamespaceAssetResource GetDeviceRegistryNamespaceAssetResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual NamespaceAssetResource GetNamespaceAssetResource(ResourceIdentifier id)
{
- DeviceRegistryNamespaceAssetResource.ValidateResourceId(id);
- return new DeviceRegistryNamespaceAssetResource(Client, id);
+ NamespaceAssetResource.ValidateResourceId(id);
+ return new NamespaceAssetResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual DeviceRegistryNamespaceDeviceResource GetDeviceRegistryNamespaceDeviceResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual NamespaceDeviceResource GetNamespaceDeviceResource(ResourceIdentifier id)
{
- DeviceRegistryNamespaceDeviceResource.ValidateResourceId(id);
- return new DeviceRegistryNamespaceDeviceResource(Client, id);
+ NamespaceDeviceResource.ValidateResourceId(id);
+ return new NamespaceDeviceResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual DeviceRegistryNamespaceDiscoveredAssetResource GetDeviceRegistryNamespaceDiscoveredAssetResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual NamespaceDiscoveredAssetResource GetNamespaceDiscoveredAssetResource(ResourceIdentifier id)
{
- DeviceRegistryNamespaceDiscoveredAssetResource.ValidateResourceId(id);
- return new DeviceRegistryNamespaceDiscoveredAssetResource(Client, id);
+ NamespaceDiscoveredAssetResource.ValidateResourceId(id);
+ return new NamespaceDiscoveredAssetResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual DeviceRegistryNamespaceDiscoveredDeviceResource GetDeviceRegistryNamespaceDiscoveredDeviceResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual NamespaceDiscoveredDeviceResource GetNamespaceDiscoveredDeviceResource(ResourceIdentifier id)
{
- DeviceRegistryNamespaceDiscoveredDeviceResource.ValidateResourceId(id);
- return new DeviceRegistryNamespaceDiscoveredDeviceResource(Client, id);
+ NamespaceDiscoveredDeviceResource.ValidateResourceId(id);
+ return new NamespaceDiscoveredDeviceResource(Client, id);
}
///
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistryResourceGroupResource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistryResourceGroupResource.cs
index 4dfe249d8110..fa457c6bc86e 100644
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistryResourceGroupResource.cs
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistryResourceGroupResource.cs
@@ -171,11 +171,11 @@ public virtual Response GetDeviceReg
return GetDeviceRegistryAssetEndpointProfiles().Get(assetEndpointProfileName, cancellationToken);
}
- /// Gets a collection of DeviceRegistryNamespaceResources in the ResourceGroupResource.
- /// An object representing collection of DeviceRegistryNamespaceResources and their operations over a DeviceRegistryNamespaceResource.
- public virtual DeviceRegistryNamespaceCollection GetDeviceRegistryNamespaces()
+ /// Gets a collection of NamespaceResources in the ResourceGroupResource.
+ /// An object representing collection of NamespaceResources and their operations over a NamespaceResource.
+ public virtual NamespaceCollection GetNamespaces()
{
- return GetCachedClient(client => new DeviceRegistryNamespaceCollection(client, Id));
+ return GetCachedClient(client => new NamespaceCollection(client, Id));
}
///
@@ -195,7 +195,7 @@ public virtual DeviceRegistryNamespaceCollection GetDeviceRegistryNamespaces()
///
/// -
/// Resource
- ///
+ ///
///
///
///
@@ -204,9 +204,9 @@ public virtual DeviceRegistryNamespaceCollection GetDeviceRegistryNamespaces()
/// is null.
/// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetDeviceRegistryNamespaceAsync(string namespaceName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetNamespaceAsync(string namespaceName, CancellationToken cancellationToken = default)
{
- return await GetDeviceRegistryNamespaces().GetAsync(namespaceName, cancellationToken).ConfigureAwait(false);
+ return await GetNamespaces().GetAsync(namespaceName, cancellationToken).ConfigureAwait(false);
}
///
@@ -226,7 +226,7 @@ public virtual async Task> GetDeviceRe
///
/// -
/// Resource
- ///
+ ///
///
///
///
@@ -235,9 +235,9 @@ public virtual async Task> GetDeviceRe
/// is null.
/// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetDeviceRegistryNamespace(string namespaceName, CancellationToken cancellationToken = default)
+ public virtual Response GetNamespace(string namespaceName, CancellationToken cancellationToken = default)
{
- return GetDeviceRegistryNamespaces().Get(namespaceName, cancellationToken);
+ return GetNamespaces().Get(namespaceName, cancellationToken);
}
/// Gets a collection of DeviceRegistrySchemaRegistryResources in the ResourceGroupResource.
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistrySubscriptionResource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistrySubscriptionResource.cs
index 9b708d679bbe..2bf8e55bd378 100644
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistrySubscriptionResource.cs
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Extensions/MockableDeviceRegistrySubscriptionResource.cs
@@ -21,8 +21,8 @@ public partial class MockableDeviceRegistrySubscriptionResource : ArmResource
private AssetsRestOperations _deviceRegistryAssetAssetsRestClient;
private ClientDiagnostics _deviceRegistryAssetEndpointProfileAssetEndpointProfilesClientDiagnostics;
private AssetEndpointProfilesRestOperations _deviceRegistryAssetEndpointProfileAssetEndpointProfilesRestClient;
- private ClientDiagnostics _deviceRegistryNamespaceNamespacesClientDiagnostics;
- private NamespacesRestOperations _deviceRegistryNamespaceNamespacesRestClient;
+ private ClientDiagnostics _namespaceClientDiagnostics;
+ private NamespacesRestOperations _namespaceRestClient;
private ClientDiagnostics _deviceRegistrySchemaRegistrySchemaRegistriesClientDiagnostics;
private SchemaRegistriesRestOperations _deviceRegistrySchemaRegistrySchemaRegistriesRestClient;
@@ -42,8 +42,8 @@ internal MockableDeviceRegistrySubscriptionResource(ArmClient client, ResourceId
private AssetsRestOperations DeviceRegistryAssetAssetsRestClient => _deviceRegistryAssetAssetsRestClient ??= new AssetsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(DeviceRegistryAssetResource.ResourceType));
private ClientDiagnostics DeviceRegistryAssetEndpointProfileAssetEndpointProfilesClientDiagnostics => _deviceRegistryAssetEndpointProfileAssetEndpointProfilesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DeviceRegistry", DeviceRegistryAssetEndpointProfileResource.ResourceType.Namespace, Diagnostics);
private AssetEndpointProfilesRestOperations DeviceRegistryAssetEndpointProfileAssetEndpointProfilesRestClient => _deviceRegistryAssetEndpointProfileAssetEndpointProfilesRestClient ??= new AssetEndpointProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(DeviceRegistryAssetEndpointProfileResource.ResourceType));
- private ClientDiagnostics DeviceRegistryNamespaceNamespacesClientDiagnostics => _deviceRegistryNamespaceNamespacesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DeviceRegistry", DeviceRegistryNamespaceResource.ResourceType.Namespace, Diagnostics);
- private NamespacesRestOperations DeviceRegistryNamespaceNamespacesRestClient => _deviceRegistryNamespaceNamespacesRestClient ??= new NamespacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(DeviceRegistryNamespaceResource.ResourceType));
+ private ClientDiagnostics NamespaceClientDiagnostics => _namespaceClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DeviceRegistry", NamespaceResource.ResourceType.Namespace, Diagnostics);
+ private NamespacesRestOperations NamespaceRestClient => _namespaceRestClient ??= new NamespacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(NamespaceResource.ResourceType));
private ClientDiagnostics DeviceRegistrySchemaRegistrySchemaRegistriesClientDiagnostics => _deviceRegistrySchemaRegistrySchemaRegistriesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DeviceRegistry", DeviceRegistrySchemaRegistryResource.ResourceType.Namespace, Diagnostics);
private SchemaRegistriesRestOperations DeviceRegistrySchemaRegistrySchemaRegistriesRestClient => _deviceRegistrySchemaRegistrySchemaRegistriesRestClient ??= new SchemaRegistriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(DeviceRegistrySchemaRegistryResource.ResourceType));
@@ -259,17 +259,17 @@ public virtual Pageable GetDeviceReg
///
/// -
/// Resource
- ///
+ ///
///
///
///
/// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetDeviceRegistryNamespacesAsync(CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetNamespacesAsync(CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => DeviceRegistryNamespaceNamespacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DeviceRegistryNamespaceNamespacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
- return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DeviceRegistryNamespaceResource(Client, DeviceRegistryNamespaceData.DeserializeDeviceRegistryNamespaceData(e)), DeviceRegistryNamespaceNamespacesClientDiagnostics, Pipeline, "MockableDeviceRegistrySubscriptionResource.GetDeviceRegistryNamespaces", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => NamespaceRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NamespaceRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NamespaceResource(Client, NamespaceData.DeserializeNamespaceData(e)), NamespaceClientDiagnostics, Pipeline, "MockableDeviceRegistrySubscriptionResource.GetNamespaces", "value", "nextLink", cancellationToken);
}
///
@@ -289,17 +289,17 @@ public virtual AsyncPageable GetDeviceRegistryN
///
/// -
/// Resource
- ///
+ ///
///
///
///
/// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetDeviceRegistryNamespaces(CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetNamespaces(CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => DeviceRegistryNamespaceNamespacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DeviceRegistryNamespaceNamespacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
- return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DeviceRegistryNamespaceResource(Client, DeviceRegistryNamespaceData.DeserializeDeviceRegistryNamespaceData(e)), DeviceRegistryNamespaceNamespacesClientDiagnostics, Pipeline, "MockableDeviceRegistrySubscriptionResource.GetDeviceRegistryNamespaces", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => NamespaceRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => NamespaceRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NamespaceResource(Client, NamespaceData.DeserializeNamespaceData(e)), NamespaceClientDiagnostics, Pipeline, "MockableDeviceRegistrySubscriptionResource.GetNamespaces", "value", "nextLink", cancellationToken);
}
///
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceAssetOperationSource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceAssetOperationSource.cs
deleted file mode 100644
index ea88a945651f..000000000000
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceAssetOperationSource.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.ClientModel.Primitives;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure.Core;
-
-namespace Azure.ResourceManager.DeviceRegistry
-{
- internal class DeviceRegistryNamespaceAssetOperationSource : IOperationSource
- {
- private readonly ArmClient _client;
-
- internal DeviceRegistryNamespaceAssetOperationSource(ArmClient client)
- {
- _client = client;
- }
-
- DeviceRegistryNamespaceAssetResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
- {
- var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
- return new DeviceRegistryNamespaceAssetResource(_client, data);
- }
-
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
- {
- var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
- return await Task.FromResult(new DeviceRegistryNamespaceAssetResource(_client, data)).ConfigureAwait(false);
- }
- }
-}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceDeviceOperationSource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceDeviceOperationSource.cs
deleted file mode 100644
index eabee30c42b0..000000000000
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceDeviceOperationSource.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.ClientModel.Primitives;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure.Core;
-
-namespace Azure.ResourceManager.DeviceRegistry
-{
- internal class DeviceRegistryNamespaceDeviceOperationSource : IOperationSource
- {
- private readonly ArmClient _client;
-
- internal DeviceRegistryNamespaceDeviceOperationSource(ArmClient client)
- {
- _client = client;
- }
-
- DeviceRegistryNamespaceDeviceResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
- {
- var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
- return new DeviceRegistryNamespaceDeviceResource(_client, data);
- }
-
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
- {
- var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
- return await Task.FromResult(new DeviceRegistryNamespaceDeviceResource(_client, data)).ConfigureAwait(false);
- }
- }
-}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceDiscoveredAssetOperationSource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceDiscoveredAssetOperationSource.cs
deleted file mode 100644
index c1e24e401bce..000000000000
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceDiscoveredAssetOperationSource.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.ClientModel.Primitives;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure.Core;
-
-namespace Azure.ResourceManager.DeviceRegistry
-{
- internal class DeviceRegistryNamespaceDiscoveredAssetOperationSource : IOperationSource
- {
- private readonly ArmClient _client;
-
- internal DeviceRegistryNamespaceDiscoveredAssetOperationSource(ArmClient client)
- {
- _client = client;
- }
-
- DeviceRegistryNamespaceDiscoveredAssetResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
- {
- var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
- return new DeviceRegistryNamespaceDiscoveredAssetResource(_client, data);
- }
-
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
- {
- var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
- return await Task.FromResult(new DeviceRegistryNamespaceDiscoveredAssetResource(_client, data)).ConfigureAwait(false);
- }
- }
-}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceDiscoveredDeviceOperationSource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceDiscoveredDeviceOperationSource.cs
deleted file mode 100644
index 9ef95e92bc92..000000000000
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceDiscoveredDeviceOperationSource.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.ClientModel.Primitives;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure.Core;
-
-namespace Azure.ResourceManager.DeviceRegistry
-{
- internal class DeviceRegistryNamespaceDiscoveredDeviceOperationSource : IOperationSource
- {
- private readonly ArmClient _client;
-
- internal DeviceRegistryNamespaceDiscoveredDeviceOperationSource(ArmClient client)
- {
- _client = client;
- }
-
- DeviceRegistryNamespaceDiscoveredDeviceResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
- {
- var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
- return new DeviceRegistryNamespaceDiscoveredDeviceResource(_client, data);
- }
-
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
- {
- var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
- return await Task.FromResult(new DeviceRegistryNamespaceDiscoveredDeviceResource(_client, data)).ConfigureAwait(false);
- }
- }
-}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceOperationSource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceOperationSource.cs
deleted file mode 100644
index c9911d3cb59d..000000000000
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/DeviceRegistryNamespaceOperationSource.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.ClientModel.Primitives;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure.Core;
-
-namespace Azure.ResourceManager.DeviceRegistry
-{
- internal class DeviceRegistryNamespaceOperationSource : IOperationSource
- {
- private readonly ArmClient _client;
-
- internal DeviceRegistryNamespaceOperationSource(ArmClient client)
- {
- _client = client;
- }
-
- DeviceRegistryNamespaceResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
- {
- var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
- return new DeviceRegistryNamespaceResource(_client, data);
- }
-
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
- {
- var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
- return await Task.FromResult(new DeviceRegistryNamespaceResource(_client, data)).ConfigureAwait(false);
- }
- }
-}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceAssetOperationSource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceAssetOperationSource.cs
new file mode 100644
index 000000000000..1fd92fa08400
--- /dev/null
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceAssetOperationSource.cs
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.ClientModel.Primitives;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DeviceRegistry
+{
+ internal class NamespaceAssetOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal NamespaceAssetOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ NamespaceAssetResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
+ return new NamespaceAssetResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
+ return await Task.FromResult(new NamespaceAssetResource(_client, data)).ConfigureAwait(false);
+ }
+ }
+}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceDeviceOperationSource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceDeviceOperationSource.cs
new file mode 100644
index 000000000000..cd5e6c58aa96
--- /dev/null
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceDeviceOperationSource.cs
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.ClientModel.Primitives;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DeviceRegistry
+{
+ internal class NamespaceDeviceOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal NamespaceDeviceOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ NamespaceDeviceResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
+ return new NamespaceDeviceResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
+ return await Task.FromResult(new NamespaceDeviceResource(_client, data)).ConfigureAwait(false);
+ }
+ }
+}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceDiscoveredAssetOperationSource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceDiscoveredAssetOperationSource.cs
new file mode 100644
index 000000000000..3fe5e9cc7beb
--- /dev/null
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceDiscoveredAssetOperationSource.cs
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.ClientModel.Primitives;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DeviceRegistry
+{
+ internal class NamespaceDiscoveredAssetOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal NamespaceDiscoveredAssetOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ NamespaceDiscoveredAssetResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
+ return new NamespaceDiscoveredAssetResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
+ return await Task.FromResult(new NamespaceDiscoveredAssetResource(_client, data)).ConfigureAwait(false);
+ }
+ }
+}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceDiscoveredDeviceOperationSource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceDiscoveredDeviceOperationSource.cs
new file mode 100644
index 000000000000..a63c15d1d0d3
--- /dev/null
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceDiscoveredDeviceOperationSource.cs
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.ClientModel.Primitives;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DeviceRegistry
+{
+ internal class NamespaceDiscoveredDeviceOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal NamespaceDiscoveredDeviceOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ NamespaceDiscoveredDeviceResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
+ return new NamespaceDiscoveredDeviceResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
+ return await Task.FromResult(new NamespaceDiscoveredDeviceResource(_client, data)).ConfigureAwait(false);
+ }
+ }
+}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceOperationSource.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceOperationSource.cs
new file mode 100644
index 000000000000..cb4d645d8c2a
--- /dev/null
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/LongRunningOperation/NamespaceOperationSource.cs
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.ClientModel.Primitives;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DeviceRegistry
+{
+ internal class NamespaceOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal NamespaceOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ NamespaceResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
+ return new NamespaceResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ var data = ModelReaderWriter.Read(response.Content, ModelReaderWriterOptions.Json, AzureResourceManagerDeviceRegistryContext.Default);
+ return await Task.FromResult(new NamespaceResource(_client, data)).ConfigureAwait(false);
+ }
+ }
+}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/AzureResourceManagerDeviceRegistryContext.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/AzureResourceManagerDeviceRegistryContext.cs
index 86e7ca1a2cb7..6e7134187eff 100644
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/AzureResourceManagerDeviceRegistryContext.cs
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/AzureResourceManagerDeviceRegistryContext.cs
@@ -48,38 +48,9 @@ namespace Azure.ResourceManager.DeviceRegistry
[ModelReaderWriterBuildable(typeof(DeviceRegistryDataPoint))]
[ModelReaderWriterBuildable(typeof(DeviceRegistryDataPointBase))]
[ModelReaderWriterBuildable(typeof(DeviceRegistryDataset))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryErrorDetails))]
[ModelReaderWriterBuildable(typeof(DeviceRegistryEvent))]
[ModelReaderWriterBuildable(typeof(DeviceRegistryEventBase))]
[ModelReaderWriterBuildable(typeof(DeviceRegistryExtendedLocation))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceAssetData))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceAssetPatch))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceAssetProperties))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceAssetResource))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceAssetStatus))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceAssetStatusDataset))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceAssetStatusEvent))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceAssetStatusEventGroup))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceAssetStatusManagementAction))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceAssetStatusManagementGroup))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceAssetStatusStream))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceData))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDeviceData))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDevicePatch))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDeviceProperties))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDeviceResource))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDiscoveredAssetData))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDiscoveredAssetPatch))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDiscoveredAssetProperties))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDiscoveredAssetResource))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDiscoveredDeviceData))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDiscoveredDevicePatch))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDiscoveredDeviceProperties))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceDiscoveredDeviceResource))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceMessageSchemaReference))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespacePatch))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceProperties))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryNamespaceResource))]
[ModelReaderWriterBuildable(typeof(DeviceRegistrySchemaData))]
[ModelReaderWriterBuildable(typeof(DeviceRegistrySchemaProperties))]
[ModelReaderWriterBuildable(typeof(DeviceRegistrySchemaRegistryData))]
@@ -90,8 +61,6 @@ namespace Azure.ResourceManager.DeviceRegistry
[ModelReaderWriterBuildable(typeof(DeviceRegistrySchemaVersionData))]
[ModelReaderWriterBuildable(typeof(DeviceRegistrySchemaVersionProperties))]
[ModelReaderWriterBuildable(typeof(DeviceRegistrySchemaVersionResource))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryStatusConfig))]
- [ModelReaderWriterBuildable(typeof(DeviceRegistryStatusError))]
[ModelReaderWriterBuildable(typeof(DeviceRegistryTopic))]
[ModelReaderWriterBuildable(typeof(DeviceRegistryUsernamePasswordCredentials))]
[ModelReaderWriterBuildable(typeof(DeviceRegistryX509Credentials))]
@@ -101,6 +70,7 @@ namespace Azure.ResourceManager.DeviceRegistry
[ModelReaderWriterBuildable(typeof(DiscoveredInboundEndpoints))]
[ModelReaderWriterBuildable(typeof(DiscoveredMessagingEndpoints))]
[ModelReaderWriterBuildable(typeof(DiscoveredOutboundEndpoints))]
+ [ModelReaderWriterBuildable(typeof(ErrorDetails))]
[ModelReaderWriterBuildable(typeof(EventDestination))]
[ModelReaderWriterBuildable(typeof(EventMqttDestination))]
[ModelReaderWriterBuildable(typeof(EventStorageDestination))]
@@ -114,17 +84,41 @@ namespace Azure.ResourceManager.DeviceRegistry
[ModelReaderWriterBuildable(typeof(MessagingEndpoint))]
[ModelReaderWriterBuildable(typeof(MessagingEndpoints))]
[ModelReaderWriterBuildable(typeof(MqttDestinationConfiguration))]
+ [ModelReaderWriterBuildable(typeof(NamespaceAssetData))]
[ModelReaderWriterBuildable(typeof(NamespaceAssetListResult))]
+ [ModelReaderWriterBuildable(typeof(NamespaceAssetPatch))]
+ [ModelReaderWriterBuildable(typeof(NamespaceAssetProperties))]
+ [ModelReaderWriterBuildable(typeof(NamespaceAssetResource))]
+ [ModelReaderWriterBuildable(typeof(NamespaceAssetStatus))]
+ [ModelReaderWriterBuildable(typeof(NamespaceAssetStatusDataset))]
+ [ModelReaderWriterBuildable(typeof(NamespaceAssetStatusEvent))]
+ [ModelReaderWriterBuildable(typeof(NamespaceAssetStatusEventGroup))]
+ [ModelReaderWriterBuildable(typeof(NamespaceAssetStatusManagementAction))]
+ [ModelReaderWriterBuildable(typeof(NamespaceAssetStatusManagementGroup))]
+ [ModelReaderWriterBuildable(typeof(NamespaceAssetStatusStream))]
[ModelReaderWriterBuildable(typeof(NamespaceAssetUpdateProperties))]
+ [ModelReaderWriterBuildable(typeof(NamespaceData))]
[ModelReaderWriterBuildable(typeof(NamespaceDataset))]
[ModelReaderWriterBuildable(typeof(NamespaceDatasetDataPoint))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDeviceData))]
[ModelReaderWriterBuildable(typeof(NamespaceDeviceListResult))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDevicePatch))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDeviceProperties))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDeviceResource))]
[ModelReaderWriterBuildable(typeof(NamespaceDeviceUpdateProperties))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDiscoveredAssetData))]
[ModelReaderWriterBuildable(typeof(NamespaceDiscoveredAssetListResult))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDiscoveredAssetPatch))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDiscoveredAssetProperties))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDiscoveredAssetResource))]
[ModelReaderWriterBuildable(typeof(NamespaceDiscoveredAssetUpdateProperties))]
[ModelReaderWriterBuildable(typeof(NamespaceDiscoveredDataset))]
[ModelReaderWriterBuildable(typeof(NamespaceDiscoveredDatasetDataPoint))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDiscoveredDeviceData))]
[ModelReaderWriterBuildable(typeof(NamespaceDiscoveredDeviceListResult))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDiscoveredDevicePatch))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDiscoveredDeviceProperties))]
+ [ModelReaderWriterBuildable(typeof(NamespaceDiscoveredDeviceResource))]
[ModelReaderWriterBuildable(typeof(NamespaceDiscoveredDeviceUpdateProperties))]
[ModelReaderWriterBuildable(typeof(NamespaceDiscoveredEvent))]
[ModelReaderWriterBuildable(typeof(NamespaceDiscoveredEventGroup))]
@@ -134,7 +128,11 @@ namespace Azure.ResourceManager.DeviceRegistry
[ModelReaderWriterBuildable(typeof(NamespaceEvent))]
[ModelReaderWriterBuildable(typeof(NamespaceEventGroup))]
[ModelReaderWriterBuildable(typeof(NamespaceListResult))]
+ [ModelReaderWriterBuildable(typeof(NamespaceMessageSchemaReference))]
[ModelReaderWriterBuildable(typeof(NamespaceMigrateContent))]
+ [ModelReaderWriterBuildable(typeof(NamespacePatch))]
+ [ModelReaderWriterBuildable(typeof(NamespaceProperties))]
+ [ModelReaderWriterBuildable(typeof(NamespaceResource))]
[ModelReaderWriterBuildable(typeof(NamespaceStream))]
[ModelReaderWriterBuildable(typeof(NamespaceUpdateProperties))]
[ModelReaderWriterBuildable(typeof(OutboundEndpoints))]
@@ -143,6 +141,8 @@ namespace Azure.ResourceManager.DeviceRegistry
[ModelReaderWriterBuildable(typeof(SchemaRegistryListResult))]
[ModelReaderWriterBuildable(typeof(SchemaRegistryUpdateProperties))]
[ModelReaderWriterBuildable(typeof(SchemaVersionListResult))]
+ [ModelReaderWriterBuildable(typeof(StatusConfig))]
+ [ModelReaderWriterBuildable(typeof(StatusError))]
[ModelReaderWriterBuildable(typeof(StorageDestinationConfiguration))]
[ModelReaderWriterBuildable(typeof(StreamDestination))]
[ModelReaderWriterBuildable(typeof(StreamMqttDestination))]
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatus.Serialization.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatus.Serialization.cs
index 62e5b04b7c57..10c2a578f681 100644
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatus.Serialization.cs
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatus.Serialization.cs
@@ -81,7 +81,7 @@ internal static DeviceStatus DeserializeDeviceStatus(JsonElement element, ModelR
{
return null;
}
- DeviceRegistryStatusConfig config = default;
+ StatusConfig config = default;
DeviceStatusEndpoints endpoints = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
@@ -93,7 +93,7 @@ internal static DeviceStatus DeserializeDeviceStatus(JsonElement element, ModelR
{
continue;
}
- config = DeviceRegistryStatusConfig.DeserializeDeviceRegistryStatusConfig(property.Value, options);
+ config = StatusConfig.DeserializeStatusConfig(property.Value, options);
continue;
}
if (property.NameEquals("endpoints"u8))
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatus.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatus.cs
index 67f59d06e745..5c8eee65dda8 100644
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatus.cs
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatus.cs
@@ -54,7 +54,7 @@ internal DeviceStatus()
/// Defines the device status config properties.
/// Defines the device status for inbound/outbound endpoints.
/// Keeps track of any properties unknown to the library.
- internal DeviceStatus(DeviceRegistryStatusConfig config, DeviceStatusEndpoints endpoints, IDictionary serializedAdditionalRawData)
+ internal DeviceStatus(StatusConfig config, DeviceStatusEndpoints endpoints, IDictionary serializedAdditionalRawData)
{
Config = config;
Endpoints = endpoints;
@@ -62,7 +62,7 @@ internal DeviceStatus(DeviceRegistryStatusConfig config, DeviceStatusEndpoints e
}
/// Defines the device status config properties.
- public DeviceRegistryStatusConfig Config { get; }
+ public StatusConfig Config { get; }
/// Defines the device status for inbound/outbound endpoints.
internal DeviceStatusEndpoints Endpoints { get; }
/// KeyValue pair representing status of inbound endpoints.
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatusEndpoint.Serialization.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatusEndpoint.Serialization.cs
index 2b8fafc3638b..27fc4ded2e27 100644
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatusEndpoint.Serialization.cs
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatusEndpoint.Serialization.cs
@@ -76,7 +76,7 @@ internal static DeviceStatusEndpoint DeserializeDeviceStatusEndpoint(JsonElement
{
return null;
}
- DeviceRegistryStatusError error = default;
+ StatusError error = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -87,7 +87,7 @@ internal static DeviceStatusEndpoint DeserializeDeviceStatusEndpoint(JsonElement
{
continue;
}
- error = DeviceRegistryStatusError.DeserializeDeviceRegistryStatusError(property.Value, options);
+ error = StatusError.DeserializeStatusError(property.Value, options);
continue;
}
if (options.Format != "W")
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatusEndpoint.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatusEndpoint.cs
index 9249f78f625e..a25920f84a3b 100644
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatusEndpoint.cs
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceStatusEndpoint.cs
@@ -53,13 +53,13 @@ internal DeviceStatusEndpoint()
/// Initializes a new instance of .
/// Defines the error related to this endpoint.
/// Keeps track of any properties unknown to the library.
- internal DeviceStatusEndpoint(DeviceRegistryStatusError error, IDictionary serializedAdditionalRawData)
+ internal DeviceStatusEndpoint(StatusError error, IDictionary serializedAdditionalRawData)
{
Error = error;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
/// Defines the error related to this endpoint.
- public DeviceRegistryStatusError Error { get; }
+ public StatusError Error { get; }
}
}
diff --git a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceRegistryErrorDetails.Serialization.cs b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/ErrorDetails.Serialization.cs
similarity index 70%
rename from sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceRegistryErrorDetails.Serialization.cs
rename to sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/ErrorDetails.Serialization.cs
index 5bbd2815bd6c..02e2694b3629 100644
--- a/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/DeviceRegistryErrorDetails.Serialization.cs
+++ b/sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/src/Generated/Models/ErrorDetails.Serialization.cs
@@ -13,11 +13,11 @@
namespace Azure.ResourceManager.DeviceRegistry.Models
{
- public partial class DeviceRegistryErrorDetails : IUtf8JsonSerializable, IJsonModel
+ public partial class ErrorDetails : IUtf8JsonSerializable, IJsonModel
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStartObject();
JsonModelWriteCore(writer, options);
@@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRe
/// The client options for reading and writing models.
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(DeviceRegistryErrorDetails)} does not support writing '{format}' format.");
+ throw new FormatException($"The model {nameof(ErrorDetails)} does not support writing '{format}' format.");
}
if (options.Format != "W" && Optional.IsDefined(Code))
@@ -71,19 +71,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
}
- DeviceRegistryErrorDetails IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ ErrorDetails IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel