ArmResource Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A class representing the operations that can be performed over a specific resource.
public abstract class ArmResource
type ArmResource = class
Public MustInherit Class ArmResource
- Inheritance
-
ArmResource
- Derived
-
Azure.ResourceManager.DataProtectionBackup.Mocking.MockableDataProtectionBackupResourceGroupResourceAzure.ResourceManager.DeviceProvisioningServices.Mocking.MockableDeviceProvisioningServicesArmClientAzure.ResourceManager.DevOpsInfrastructure.Mocking.MockableDevOpsInfrastructureResourceGroupResourceAzure.ResourceManager.HealthDataAIServices.Mocking.MockableHealthDataAIServicesResourceGroupResourceAzure.ResourceManager.ManagedNetworkFabric.Mocking.MockableManagedNetworkFabricResourceGroupResourceAzure.ResourceManager.MySql.FlexibleServers.Mocking.MockableMySqlFlexibleServersSubscriptionResourceAzure.ResourceManager.PaloAltoNetworks.Ngfw.Mocking.MockablePaloAltoNetworksNgfwSubscriptionResource
Constructors
| Name | Description |
|---|---|
| ArmResource() |
Initializes a new instance of the ArmResource class for mocking. |
| ArmResource(ArmClient, ResourceIdentifier) |
Initializes a new instance of the ArmResource class. |
Properties
| Name | Description |
|---|---|
| Client |
Gets the ArmClient this resource client was created from. |
| Diagnostics |
Gets the diagnostic options for this resource client. |
| Endpoint |
Gets the base uri for this resource client. |
| Id |
Gets the resource identifier. |
| Pipeline |
Gets the pipeline for this resource client. |
Methods
| Name | Description |
|---|---|
| CanUseTagResource(CancellationToken) |
Checks to see if the TagResource API is deployed in the current environment. |
| CanUseTagResourceAsync(CancellationToken) |
Checks to see if the TagResource API is deployed in the current environment. |
| GetAvailableLocations(CancellationToken) |
Lists all available geo-locations. |
| GetAvailableLocationsAsync(CancellationToken) |
Lists all available geo-locations. |
| GetManagementLock(String, CancellationToken) |
Get a management lock by scope.
|
| GetManagementLockAsync(String, CancellationToken) |
Get a management lock by scope.
|
| GetManagementLocks() |
Gets a collection of ManagementLockResources in the ArmResource. |
| GetPolicyAssignment(String, CancellationToken) |
This operation retrieves a single policy assignment, given its name and the scope it was created at.
|
| GetPolicyAssignmentAsync(String, CancellationToken) |
This operation retrieves a single policy assignment, given its name and the scope it was created at.
|
| GetPolicyAssignments() |
Gets a collection of PolicyAssignmentResources in the ArmResource. |
| GetTagResource() |
Gets an object representing a TagResource along with the instance operations that can be performed on it in the ArmResource. |
| TryGetApiVersion(ResourceType, String) |
Gets the api version override if it has been set for the current client options. |