BillingTrustRuleCollection Class

Definition

A class representing a collection of BillingTrustRuleResource and their operations. Each BillingTrustRuleResource in the collection will belong to the same instance of BillingTrustAssessmentResource. To get a BillingTrustRuleCollection instance call the GetBillingTrustRules method from an instance of BillingTrustAssessmentResource.

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

Constructors

Name Description
BillingTrustRuleCollection()

Initializes a new instance of BillingTrustRuleCollection for mocking.

Properties

Name Description
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

Name Description
CreateOrUpdate(WaitUntil, String, BillingTrustRuleData, CancellationToken)

Create or update a Rule. This operation is required for RPaaS tracked-resource cache population and MUST remain in the public spec. Rules are created by the service when the parent assessment is created; they are not directly creatable by end users. All customer PUT calls are rejected at runtime with OperationNotAllowed via the RPaaS ResourceCreationValidate extension. Use PATCH to modify rule fields that the customer is authorized to change. Peer RPs with the same topology (extension singleton parent + proxy child) declare an identical public PUT for the same RPaaS cache-population reason: Microsoft.ScVmm/virtualMachineInstances/guestAgents, Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/guestAgents.

  • Request Path. : /{resourceUri}/providers/Microsoft.BillingTrust/assessments/default/rules/{ruleName}.
  • Operation Id. : Rules_CreateOrUpdate.
  • Default Api Version. : 2026-03-17-preview.
CreateOrUpdateAsync(WaitUntil, String, BillingTrustRuleData, CancellationToken)

Create or update a Rule. This operation is required for RPaaS tracked-resource cache population and MUST remain in the public spec. Rules are created by the service when the parent assessment is created; they are not directly creatable by end users. All customer PUT calls are rejected at runtime with OperationNotAllowed via the RPaaS ResourceCreationValidate extension. Use PATCH to modify rule fields that the customer is authorized to change. Peer RPs with the same topology (extension singleton parent + proxy child) declare an identical public PUT for the same RPaaS cache-population reason: Microsoft.ScVmm/virtualMachineInstances/guestAgents, Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/guestAgents.

  • Request Path. : /{resourceUri}/providers/Microsoft.BillingTrust/assessments/default/rules/{ruleName}.
  • Operation Id. : Rules_CreateOrUpdate.
  • Default Api Version. : 2026-03-17-preview.
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path. : /{resourceUri}/providers/Microsoft.BillingTrust/assessments/default/rules/{ruleName}.
  • Operation Id. : Rules_Get.
  • Default Api Version. : 2026-03-17-preview.
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path. : /{resourceUri}/providers/Microsoft.BillingTrust/assessments/default/rules/{ruleName}.
  • Operation Id. : Rules_Get.
  • Default Api Version. : 2026-03-17-preview.
Get(String, CancellationToken)

Get a Rule

  • Request Path. : /{resourceUri}/providers/Microsoft.BillingTrust/assessments/default/rules/{ruleName}.
  • Operation Id. : Rules_Get.
  • Default Api Version. : 2026-03-17-preview.
GetAll(CancellationToken)

List Rule resources by Assessment

  • Request Path. : /{resourceUri}/providers/Microsoft.BillingTrust/assessments/default/rules.
  • Operation Id. : Rules_List.
  • Default Api Version. : 2026-03-17-preview.
GetAllAsync(CancellationToken)

List Rule resources by Assessment

  • Request Path. : /{resourceUri}/providers/Microsoft.BillingTrust/assessments/default/rules.
  • Operation Id. : Rules_List.
  • Default Api Version. : 2026-03-17-preview.
GetAsync(String, CancellationToken)

Get a Rule

  • Request Path. : /{resourceUri}/providers/Microsoft.BillingTrust/assessments/default/rules/{ruleName}.
  • Operation Id. : Rules_Get.
  • Default Api Version. : 2026-03-17-preview.
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path. : /{resourceUri}/providers/Microsoft.BillingTrust/assessments/default/rules/{ruleName}.
  • Operation Id. : Rules_Get.
  • Default Api Version. : 2026-03-17-preview.
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path. : /{resourceUri}/providers/Microsoft.BillingTrust/assessments/default/rules/{ruleName}.
  • Operation Id. : Rules_Get.
  • Default Api Version. : 2026-03-17-preview.
TryGetApiVersion(ResourceType, String)

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

(Inherited from ArmCollection)

Explicit Interface Implementations

Name Description
IAsyncEnumerable<BillingTrustRuleResource>.GetAsyncEnumerator(CancellationToken)
IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<BillingTrustRuleResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Extension Methods

Name Description
ArrayContainsAll<T>(IEnumerable<T>, Object[])

Returns whether all values are present in the array.

ArrayContainsAny<T>(IEnumerable<T>, Object[])

Returns whether any values are present in the array.

Applies to