Partilhar via


DeviceRegistryAssetCollection Class

Definition

A class representing a collection of DeviceRegistryAssetResource and their operations. Each DeviceRegistryAssetResource in the collection will belong to the same instance of ResourceGroupResource. To get a DeviceRegistryAssetCollection instance call the GetDeviceRegistryAssets method from an instance of ResourceGroupResource.

public class DeviceRegistryAssetCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.DeviceRegistry.DeviceRegistryAssetResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DeviceRegistry.DeviceRegistryAssetResource>
type DeviceRegistryAssetCollection = class
    inherit ArmCollection
    interface seq<DeviceRegistryAssetResource>
    interface IEnumerable
    interface IAsyncEnumerable<DeviceRegistryAssetResource>
Public Class DeviceRegistryAssetCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of DeviceRegistryAssetResource), IEnumerable(Of DeviceRegistryAssetResource)
Inheritance
DeviceRegistryAssetCollection
Implements

Constructors

DeviceRegistryAssetCollection()

Initializes a new instance of the DeviceRegistryAssetCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, DeviceRegistryAssetData, CancellationToken)

Create a Asset

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}
  • Operation Id: Assets_CreateOrReplace
  • Default Api Version: 2023-11-01-preview
  • Resource: DeviceRegistryAssetResource
CreateOrUpdateAsync(WaitUntil, String, DeviceRegistryAssetData, CancellationToken)

Create a Asset

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}
  • Operation Id: Assets_CreateOrReplace
  • Default Api Version: 2023-11-01-preview
  • Resource: DeviceRegistryAssetResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}
  • Operation Id: Assets_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: DeviceRegistryAssetResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}
  • Operation Id: Assets_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: DeviceRegistryAssetResource
Get(String, CancellationToken)

Get a Asset

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}
  • Operation Id: Assets_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: DeviceRegistryAssetResource
GetAll(CancellationToken)

List Asset resources by resource group

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets
  • Operation Id: Assets_ListByResourceGroup
  • Default Api Version: 2023-11-01-preview
  • Resource: DeviceRegistryAssetResource
GetAllAsync(CancellationToken)

List Asset resources by resource group

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets
  • Operation Id: Assets_ListByResourceGroup
  • Default Api Version: 2023-11-01-preview
  • Resource: DeviceRegistryAssetResource
GetAsync(String, CancellationToken)

Get a Asset

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}
  • Operation Id: Assets_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: DeviceRegistryAssetResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}
  • Operation Id: Assets_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: DeviceRegistryAssetResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}
  • Operation Id: Assets_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: DeviceRegistryAssetResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<DeviceRegistryAssetResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DeviceRegistryAssetResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to