共用方式為


SiteRecommendationCollection Class

Definition

A class representing a collection of SiteRecommendationResource and their operations. Each SiteRecommendationResource in the collection will belong to the same instance of WebSiteResource. To get a SiteRecommendationCollection instance call the GetSiteRecommendations method from an instance of WebSiteResource.

public class SiteRecommendationCollection : Azure.ResourceManager.ArmCollection
type SiteRecommendationCollection = class
    inherit ArmCollection
Public Class SiteRecommendationCollection
Inherits ArmCollection
Inheritance
SiteRecommendationCollection

Constructors

SiteRecommendationCollection()

Initializes a new instance of the SiteRecommendationCollection 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, Nullable<Boolean>, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}
  • Operation Id: Recommendations_GetRuleDetailsByWebApp
  • Default Api Version: 2023-12-01
  • Resource: SiteRecommendationResource
ExistsAsync(String, Nullable<Boolean>, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}
  • Operation Id: Recommendations_GetRuleDetailsByWebApp
  • Default Api Version: 2023-12-01
  • Resource: SiteRecommendationResource
Get(String, Nullable<Boolean>, String, CancellationToken)

Description for Get a recommendation rule for an app.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}
  • Operation Id: Recommendations_GetRuleDetailsByWebApp
  • Default Api Version: 2023-12-01
  • Resource: SiteRecommendationResource
GetAsync(String, Nullable<Boolean>, String, CancellationToken)

Description for Get a recommendation rule for an app.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}
  • Operation Id: Recommendations_GetRuleDetailsByWebApp
  • Default Api Version: 2023-12-01
  • Resource: SiteRecommendationResource
GetIfExists(String, Nullable<Boolean>, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}
  • Operation Id: Recommendations_GetRuleDetailsByWebApp
  • Default Api Version: 2023-12-01
  • Resource: SiteRecommendationResource
GetIfExistsAsync(String, Nullable<Boolean>, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}
  • Operation Id: Recommendations_GetRuleDetailsByWebApp
  • Default Api Version: 2023-12-01
  • Resource: SiteRecommendationResource
TryGetApiVersion(ResourceType, String)

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

(Inherited from ArmCollection)

Applies to