共用方式為


ResourceRecommendationBaseCollection Class

Definition

A class representing a collection of ResourceRecommendationBaseResource and their operations. Each ResourceRecommendationBaseResource in the collection will belong to the same instance of ArmResource. To get a ResourceRecommendationBaseCollection instance call the GetResourceRecommendationBases method from an instance of ArmResource.

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

Constructors

ResourceRecommendationBaseCollection()

Initializes a new instance of the ResourceRecommendationBaseCollection 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

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}
  • Operation Id: Recommendations_Get
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}
  • Operation Id: Recommendations_Get
Get(String, CancellationToken)

Obtains details of a cached recommendation.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}
  • Operation Id: Recommendations_Get
GetAll(String, Nullable<Int32>, String, CancellationToken)

Obtains cached recommendations for a subscription. The recommendations are generated or computed by invoking generateRecommendations.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/recommendations
  • Operation Id: Recommendations_List
GetAllAsync(String, Nullable<Int32>, String, CancellationToken)

Obtains cached recommendations for a subscription. The recommendations are generated or computed by invoking generateRecommendations.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/recommendations
  • Operation Id: Recommendations_List
GetAsync(String, CancellationToken)

Obtains details of a cached recommendation.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}
  • Operation Id: Recommendations_Get
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}
  • Operation Id: Recommendations_Get
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}
  • Operation Id: Recommendations_Get
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<ResourceRecommendationBaseResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ResourceRecommendationBaseResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to