BillingTrustExtensions.GetBillingTrustRuleAsync Method

Definition

Get a Rule <item> Mocking. To mock this method, please mock GetBillingTrustRuleAsync(ResourceIdentifier, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.Trust.BillingTrustRuleResource>> GetBillingTrustRuleAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string ruleName, System.Threading.CancellationToken cancellationToken = default);
static member GetBillingTrustRuleAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.Trust.BillingTrustRuleResource>>
<Extension()>
Public Function GetBillingTrustRuleAsync (client As ArmClient, scope As ResourceIdentifier, ruleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BillingTrustRuleResource))

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope of the resource collection to get.

ruleName
String

The name of the rule. Rules are created by the service when the parent assessment is created — the available rule names are determined by the assessment template. Names start with an alphanumeric character and may contain letters, digits, underscores, and hyphens.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client is null.

Applies to