Class ArmCollection
- Namespace
- Azure.ResourceManager
- Assembly
- Azure.ResourceManager.dll
Base class representing collection of resources.
public abstract class ArmCollection
- Inheritance
-
ArmCollection
- Derived
- Inherited Members
Constructors
ArmCollection()
Initializes a new instance of the ArmCollection class for mocking.
protected ArmCollection()
ArmCollection(ArmClient, ResourceIdentifier)
Initializes a new instance of the ArmCollection class.
protected ArmCollection(ArmClient client, ResourceIdentifier id)
Parameters
clientArmClientThe client to copy settings from.
idResourceIdentifierThe id of the parent for the collection.
Properties
Client
Gets the ArmClient this resource client was created from.
protected virtual ArmClient Client { get; }
Property Value
Diagnostics
Gets the diagnostic options for this resource client.
protected DiagnosticsOptions Diagnostics { get; }
Property Value
- DiagnosticsOptions
Endpoint
Gets the base uri for this resource client.
protected Uri Endpoint { get; }
Property Value
- Uri
Id
Gets the resource identifier.
public virtual ResourceIdentifier Id { get; }
Property Value
- ResourceIdentifier
Pipeline
Gets the pipeline for this resource client.
protected HttpPipeline Pipeline { get; }
Property Value
- HttpPipeline
Methods
TryGetApiVersion(ResourceType, out string)
Gets the api version override if it has been set for the current client options.
protected bool TryGetApiVersion(ResourceType resourceType, out string apiVersion)
Parameters
resourceTypeResourceTypeThe resource type to get the version for.
apiVersionstringThe api version to variable to set.