MockableComputeSubscriptionResource 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 to add extension methods to SubscriptionResource.
public class MockableComputeSubscriptionResource : Azure.ResourceManager.ArmResource
type MockableComputeSubscriptionResource = class
inherit ArmResource
Public Class MockableComputeSubscriptionResource
Inherits ArmResource
- Inheritance
Constructors
MockableComputeSubscriptionResource() |
Initializes a new instance of the MockableComputeSubscriptionResource class for mocking. |
Properties
Client |
Gets the ArmClient this resource client was created from. (Inherited from ArmResource) |
Diagnostics |
Gets the diagnostic options for this resource client. (Inherited from ArmResource) |
Endpoint |
Gets the base uri for this resource client. (Inherited from ArmResource) |
Id |
Gets the resource identifier. (Inherited from ArmResource) |
Pipeline |
Gets the pipeline for this resource client. (Inherited from ArmResource) |
Methods
CanUseTagResource(CancellationToken) |
Checks to see if the TagResource API is deployed in the current environment. (Inherited from ArmResource) |
CanUseTagResourceAsync(CancellationToken) |
Checks to see if the TagResource API is deployed in the current environment. (Inherited from ArmResource) |
ExportLogAnalyticsRequestRateByInterval(WaitUntil, AzureLocation, RequestRateByIntervalContent, CancellationToken) |
Export logs that show Api requests made by this subscription in the given time window to show throttling activities.
|
ExportLogAnalyticsRequestRateByIntervalAsync(WaitUntil, AzureLocation, RequestRateByIntervalContent, CancellationToken) |
Export logs that show Api requests made by this subscription in the given time window to show throttling activities.
|
ExportLogAnalyticsThrottledRequests(WaitUntil, AzureLocation, ThrottledRequestsContent, CancellationToken) |
Export logs that show total throttled Api requests for this subscription in the given time window.
|
ExportLogAnalyticsThrottledRequestsAsync(WaitUntil, AzureLocation, ThrottledRequestsContent, CancellationToken) |
Export logs that show total throttled Api requests for this subscription in the given time window.
|
GetAvailabilitySets(String, CancellationToken) |
Lists all availability sets in a subscription.
|
GetAvailabilitySetsAsync(String, CancellationToken) |
Lists all availability sets in a subscription.
|
GetAvailableLocations(CancellationToken) |
Lists all available geo-locations. (Inherited from ArmResource) |
GetAvailableLocationsAsync(CancellationToken) |
Lists all available geo-locations. (Inherited from ArmResource) |
GetCapacityReservationGroups(Nullable<CapacityReservationGroupGetExpand>, Nullable<ResourceIdOptionsForGetCapacityReservationGroup>, CancellationToken) |
Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups.
|
GetCapacityReservationGroupsAsync(Nullable<CapacityReservationGroupGetExpand>, Nullable<ResourceIdOptionsForGetCapacityReservationGroup>, CancellationToken) |
Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups.
|
GetCloudServiceOSFamilies(AzureLocation) |
Gets a collection of CloudServiceOSFamilyResources in the SubscriptionResource. |
GetCloudServiceOSFamily(AzureLocation, String, CancellationToken) |
Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service.
|
GetCloudServiceOSFamilyAsync(AzureLocation, String, CancellationToken) |
Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service.
|
GetCloudServiceOSVersion(AzureLocation, String, CancellationToken) |
Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service.
|
GetCloudServiceOSVersionAsync(AzureLocation, String, CancellationToken) |
Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service.
|
GetCloudServiceOSVersions(AzureLocation) |
Gets a collection of CloudServiceOSVersionResources in the SubscriptionResource. |
GetCloudServices(CancellationToken) |
Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
|
GetCloudServicesAsync(CancellationToken) |
Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
|
GetCommunityGalleries() |
Gets a collection of CommunityGalleryResources in the SubscriptionResource. |
GetCommunityGallery(AzureLocation, String, CancellationToken) |
Get a community gallery by gallery public name.
|
GetCommunityGalleryAsync(AzureLocation, String, CancellationToken) |
Get a community gallery by gallery public name.
|
GetComputeResourceSkus(String, String, CancellationToken) |
Gets the list of Microsoft.Compute SKUs available for your Subscription.
|
GetComputeResourceSkusAsync(String, String, CancellationToken) |
Gets the list of Microsoft.Compute SKUs available for your Subscription.
|
GetDedicatedHostGroups(CancellationToken) |
Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups.
|
GetDedicatedHostGroupsAsync(CancellationToken) |
Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups.
|
GetDiskAccesses(CancellationToken) |
Lists all the disk access resources under a subscription.
|
GetDiskAccessesAsync(CancellationToken) |
Lists all the disk access resources under a subscription.
|
GetDiskEncryptionSets(CancellationToken) |
Lists all the disk encryption sets under a subscription.
|
GetDiskEncryptionSetsAsync(CancellationToken) |
Lists all the disk encryption sets under a subscription.
|
GetDiskImages(CancellationToken) |
Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.
|
GetDiskImagesAsync(CancellationToken) |
Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.
|
GetGalleries(CancellationToken) |
List galleries under a subscription.
|
GetGalleriesAsync(CancellationToken) |
List galleries under a subscription.
|
GetManagedDisks(CancellationToken) |
Lists all the disks under a subscription.
|
GetManagedDisksAsync(CancellationToken) |
Lists all the disks under a subscription.
|
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. (Inherited from ArmResource) |
GetOffersVirtualMachineImagesEdgeZones(AzureLocation, String, String, CancellationToken) |
Gets a list of virtual machine image offers for the specified location, edge zone and publisher.
|
GetOffersVirtualMachineImagesEdgeZonesAsync(AzureLocation, String, String, CancellationToken) |
Gets a list of virtual machine image offers for the specified location, edge zone and publisher.
|
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. (Inherited from ArmResource) |
GetProximityPlacementGroups(CancellationToken) |
Lists all proximity placement groups in a subscription.
|
GetProximityPlacementGroupsAsync(CancellationToken) |
Lists all proximity placement groups in a subscription.
|
GetPublishersVirtualMachineImagesEdgeZones(AzureLocation, String, CancellationToken) |
Gets a list of virtual machine image publishers for the specified Azure location and edge zone.
|
GetPublishersVirtualMachineImagesEdgeZonesAsync(AzureLocation, String, CancellationToken) |
Gets a list of virtual machine image publishers for the specified Azure location and edge zone.
|
GetRestorePointGroups(CancellationToken) |
Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections.
|
GetRestorePointGroupsAsync(CancellationToken) |
Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections.
|
GetSharedGalleries(AzureLocation) |
Gets a collection of SharedGalleryResources in the SubscriptionResource. |
GetSharedGallery(AzureLocation, String, CancellationToken) |
Get a shared gallery by subscription id or tenant id.
|
GetSharedGalleryAsync(AzureLocation, String, CancellationToken) |
Get a shared gallery by subscription id or tenant id.
|
GetSnapshots(CancellationToken) |
Lists snapshots under a subscription.
|
GetSnapshotsAsync(CancellationToken) |
Lists snapshots under a subscription.
|
GetSshPublicKeys(CancellationToken) |
Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys.
|
GetSshPublicKeysAsync(CancellationToken) |
Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys.
|
GetTagResource() |
Gets an object representing a TagResource along with the instance operations that can be performed on it in the ArmResource. (Inherited from ArmResource) |
GetUsages(AzureLocation, CancellationToken) |
Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.
|
GetUsagesAsync(AzureLocation, CancellationToken) |
Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.
|
GetVirtualMachineExtensionImage(AzureLocation, String, String, String, CancellationToken) |
Gets a virtual machine extension image.
|
GetVirtualMachineExtensionImageAsync(AzureLocation, String, String, String, CancellationToken) |
Gets a virtual machine extension image.
|
GetVirtualMachineExtensionImages(AzureLocation, String) |
Gets a collection of VirtualMachineExtensionImageResources in the SubscriptionResource. |
GetVirtualMachineImage(AzureLocation, String, String, String, String, CancellationToken) |
Gets a virtual machine image.
|
GetVirtualMachineImageAsync(AzureLocation, String, String, String, String, CancellationToken) |
Gets a virtual machine image.
|
GetVirtualMachineImageEdgeZoneSkus(AzureLocation, String, String, String, CancellationToken) |
Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer.
|
GetVirtualMachineImageEdgeZoneSkusAsync(AzureLocation, String, String, String, CancellationToken) |
Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer.
|
GetVirtualMachineImageOffers(AzureLocation, String, CancellationToken) |
Gets a list of virtual machine image offers for the specified location and publisher.
|
GetVirtualMachineImageOffersAsync(AzureLocation, String, CancellationToken) |
Gets a list of virtual machine image offers for the specified location and publisher.
|
GetVirtualMachineImagePublishers(AzureLocation, CancellationToken) |
Gets a list of virtual machine image publishers for the specified Azure location.
|
GetVirtualMachineImagePublishersAsync(AzureLocation, CancellationToken) |
Gets a list of virtual machine image publishers for the specified Azure location.
|
GetVirtualMachineImages(AzureLocation, String, String, String, String, Nullable<Int32>, String, CancellationToken) |
Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
|
GetVirtualMachineImages(SubscriptionResourceGetVirtualMachineImagesOptions, CancellationToken) |
Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
|
GetVirtualMachineImagesAsync(AzureLocation, String, String, String, String, Nullable<Int32>, String, CancellationToken) |
Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
|
GetVirtualMachineImagesAsync(SubscriptionResourceGetVirtualMachineImagesOptions, CancellationToken) |
Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
|
GetVirtualMachineImagesByEdgeZone(AzureLocation, String, CancellationToken) |
Gets a list of all virtual machine image versions for the specified edge zone
|
GetVirtualMachineImagesByEdgeZoneAsync(AzureLocation, String, CancellationToken) |
Gets a list of all virtual machine image versions for the specified edge zone
|
GetVirtualMachineImagesEdgeZone(AzureLocation, String, String, String, String, String, CancellationToken) |
Gets a virtual machine image in an edge zone.
|
GetVirtualMachineImagesEdgeZone(SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions, CancellationToken) |
Gets a virtual machine image in an edge zone.
|
GetVirtualMachineImagesEdgeZoneAsync(AzureLocation, String, String, String, String, String, CancellationToken) |
Gets a virtual machine image in an edge zone.
|
GetVirtualMachineImagesEdgeZoneAsync(SubscriptionResourceGetVirtualMachineImagesEdgeZoneOptions, CancellationToken) |
Gets a virtual machine image in an edge zone.
|
GetVirtualMachineImagesEdgeZones(AzureLocation, String, String, String, String, String, Nullable<Int32>, String, CancellationToken) |
Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU.
|
GetVirtualMachineImagesEdgeZones(SubscriptionResourceGetVirtualMachineImagesEdgeZonesOptions, CancellationToken) |
Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU.
|
GetVirtualMachineImagesEdgeZonesAsync(AzureLocation, String, String, String, String, String, Nullable<Int32>, String, CancellationToken) |
Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU.
|
GetVirtualMachineImagesEdgeZonesAsync(SubscriptionResourceGetVirtualMachineImagesEdgeZonesOptions, CancellationToken) |
Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU.
|
GetVirtualMachineImageSkus(AzureLocation, String, String, CancellationToken) |
Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.
|
GetVirtualMachineImageSkusAsync(AzureLocation, String, String, CancellationToken) |
Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.
|
GetVirtualMachineRunCommand(AzureLocation, String, CancellationToken) |
Gets specific run command for a subscription in a location.
|
GetVirtualMachineRunCommandAsync(AzureLocation, String, CancellationToken) |
Gets specific run command for a subscription in a location.
|
GetVirtualMachineRunCommands(AzureLocation, CancellationToken) |
Lists all available run commands for a subscription in a location.
|
GetVirtualMachineRunCommandsAsync(AzureLocation, CancellationToken) |
Lists all available run commands for a subscription in a location.
|
GetVirtualMachines(String, String, Nullable<ExpandTypesForListVm>, CancellationToken) |
Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.
|
GetVirtualMachinesAsync(String, String, Nullable<ExpandTypesForListVm>, CancellationToken) |
Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.
|
GetVirtualMachinesByLocation(AzureLocation, CancellationToken) |
Gets all the virtual machines under the specified subscription for the specified location.
|
GetVirtualMachinesByLocationAsync(AzureLocation, CancellationToken) |
Gets all the virtual machines under the specified subscription for the specified location.
|
GetVirtualMachineScaleSets(CancellationToken) |
Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets.
|
GetVirtualMachineScaleSetsAsync(CancellationToken) |
Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets.
|
GetVirtualMachineScaleSetsByLocation(AzureLocation, CancellationToken) |
Gets all the VM scale sets under the specified subscription for the specified location.
|
GetVirtualMachineScaleSetsByLocationAsync(AzureLocation, CancellationToken) |
Gets all the VM scale sets under the specified subscription for the specified location.
|
GetVirtualMachineSizes(AzureLocation, CancellationToken) |
This API is deprecated. Use Resources Skus
|
GetVirtualMachineSizesAsync(AzureLocation, CancellationToken) |
This API is deprecated. Use Resources Skus
|
TryGetApiVersion(ResourceType, String) |
Gets the api version override if it has been set for the current client options. (Inherited from ArmResource) |
Extension Methods
GetAuthorizationRoleDefinition(ArmResource, ResourceIdentifier, CancellationToken) |
Get role definition by name (GUID).
|
GetAuthorizationRoleDefinitionAsync(ArmResource, ResourceIdentifier, CancellationToken) |
Get role definition by name (GUID).
|
GetAuthorizationRoleDefinitions(ArmResource) |
Gets a collection of AuthorizationRoleDefinitionResources in the ArmResource. MockingTo mock this method, please mock GetAuthorizationRoleDefinitions() instead. |
GetDenyAssignment(ArmResource, String, CancellationToken) |
Get the specified deny assignment.
|
GetDenyAssignmentAsync(ArmResource, String, CancellationToken) |
Get the specified deny assignment.
|
GetDenyAssignments(ArmResource) |
Gets a collection of DenyAssignmentResources in the ArmResource. MockingTo mock this method, please mock GetDenyAssignments() instead. |
GetRoleAssignment(ArmResource, String, String, CancellationToken) |
Get a role assignment by scope and name.
|
GetRoleAssignmentAsync(ArmResource, String, String, CancellationToken) |
Get a role assignment by scope and name.
|
GetRoleAssignments(ArmResource) |
Gets a collection of RoleAssignmentResources in the ArmResource. MockingTo mock this method, please mock GetRoleAssignments() instead. |
GetRoleAssignmentSchedule(ArmResource, String, CancellationToken) |
Get the specified role assignment schedule for a resource scope
|
GetRoleAssignmentScheduleAsync(ArmResource, String, CancellationToken) |
Get the specified role assignment schedule for a resource scope
|
GetRoleAssignmentScheduleInstance(ArmResource, String, CancellationToken) |
Gets the specified role assignment schedule instance.
|
GetRoleAssignmentScheduleInstanceAsync(ArmResource, String, CancellationToken) |
Gets the specified role assignment schedule instance.
|
GetRoleAssignmentScheduleInstances(ArmResource) |
Gets a collection of RoleAssignmentScheduleInstanceResources in the ArmResource. MockingTo mock this method, please mock GetRoleAssignmentScheduleInstances() instead. |
GetRoleAssignmentScheduleRequest(ArmResource, String, CancellationToken) |
Get the specified role assignment schedule request.
|
GetRoleAssignmentScheduleRequestAsync(ArmResource, String, CancellationToken) |
Get the specified role assignment schedule request.
|
GetRoleAssignmentScheduleRequests(ArmResource) |
Gets a collection of RoleAssignmentScheduleRequestResources in the ArmResource. MockingTo mock this method, please mock GetRoleAssignmentScheduleRequests() instead. |
GetRoleAssignmentSchedules(ArmResource) |
Gets a collection of RoleAssignmentScheduleResources in the ArmResource. MockingTo mock this method, please mock GetRoleAssignmentSchedules() instead. |
GetRoleEligibilitySchedule(ArmResource, String, CancellationToken) |
Get the specified role eligibility schedule for a resource scope
|
GetRoleEligibilityScheduleAsync(ArmResource, String, CancellationToken) |
Get the specified role eligibility schedule for a resource scope
|
GetRoleEligibilityScheduleInstance(ArmResource, String, CancellationToken) |
Gets the specified role eligibility schedule instance.
|
GetRoleEligibilityScheduleInstanceAsync(ArmResource, String, CancellationToken) |
Gets the specified role eligibility schedule instance.
|
GetRoleEligibilityScheduleInstances(ArmResource) |
Gets a collection of RoleEligibilityScheduleInstanceResources in the ArmResource. MockingTo mock this method, please mock GetRoleEligibilityScheduleInstances() instead. |
GetRoleEligibilityScheduleRequest(ArmResource, String, CancellationToken) |
Get the specified role eligibility schedule request.
|
GetRoleEligibilityScheduleRequestAsync(ArmResource, String, CancellationToken) |
Get the specified role eligibility schedule request.
|
GetRoleEligibilityScheduleRequests(ArmResource) |
Gets a collection of RoleEligibilityScheduleRequestResources in the ArmResource. MockingTo mock this method, please mock GetRoleEligibilityScheduleRequests() instead. |
GetRoleEligibilitySchedules(ArmResource) |
Gets a collection of RoleEligibilityScheduleResources in the ArmResource. MockingTo mock this method, please mock GetRoleEligibilitySchedules() instead. |
GetRoleManagementPolicies(ArmResource) |
Gets a collection of RoleManagementPolicyResources in the ArmResource. MockingTo mock this method, please mock GetRoleManagementPolicies() instead. |
GetRoleManagementPolicy(ArmResource, String, CancellationToken) |
Get the specified role management policy for a resource scope
|
GetRoleManagementPolicyAssignment(ArmResource, String, CancellationToken) |
Get the specified role management policy assignment for a resource scope
|
GetRoleManagementPolicyAssignmentAsync(ArmResource, String, CancellationToken) |
Get the specified role management policy assignment for a resource scope
|
GetRoleManagementPolicyAssignments(ArmResource) |
Gets a collection of RoleManagementPolicyAssignmentResources in the ArmResource. MockingTo mock this method, please mock GetRoleManagementPolicyAssignments() instead. |
GetRoleManagementPolicyAsync(ArmResource, String, CancellationToken) |
Get the specified role management policy for a resource scope
|
GetSystemAssignedIdentity(ArmResource) |
Gets an object representing a SystemAssignedIdentityResource along with the instance operations that can be performed on it in the ArmResource. MockingTo mock this method, please mock GetSystemAssignedIdentity() instead. |
GetLinkerResource(ArmResource, String, CancellationToken) |
Returns Linker resource for a given name.
|
GetLinkerResourceAsync(ArmResource, String, CancellationToken) |
Returns Linker resource for a given name.
|
GetLinkerResources(ArmResource) |
Gets a collection of LinkerResources in the ArmResource. MockingTo mock this method, please mock GetLinkerResources() instead. |
Applies to
Azure SDK for .NET