Dela via


CosmosDBChaosFaultResourceCollection Class

Definition

A class representing a collection of CosmosDBChaosFaultResource and their operations. Each CosmosDBChaosFaultResource in the collection will belong to the same instance of CosmosDBAccountResource. To get a CosmosDBChaosFaultResourceCollection instance call the GetCosmosDBChaosFaultResources method from an instance of CosmosDBAccountResource.

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

Constructors

CosmosDBChaosFaultResourceCollection()

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

CreateOrUpdate(WaitUntil, String, CosmosDBChaosFaultResourceData, CancellationToken)

Enable, disable Chaos Fault in a CosmosDB account.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults/{chaosFault}
  • Operation Id: ChaosFault_EnableDisable
  • Default Api Version: 2024-09-01-preview
  • Resource: CosmosDBChaosFaultResource
CreateOrUpdateAsync(WaitUntil, String, CosmosDBChaosFaultResourceData, CancellationToken)

Enable, disable Chaos Fault in a CosmosDB account.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults/{chaosFault}
  • Operation Id: ChaosFault_EnableDisable
  • Default Api Version: 2024-09-01-preview
  • Resource: CosmosDBChaosFaultResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults/{chaosFault}
  • Operation Id: ChaosFault_Get
  • Default Api Version: 2024-09-01-preview
  • Resource: CosmosDBChaosFaultResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults/{chaosFault}
  • Operation Id: ChaosFault_Get
  • Default Api Version: 2024-09-01-preview
  • Resource: CosmosDBChaosFaultResource
Get(String, CancellationToken)

Get Chaos Fault for a CosmosdB account for a particular Chaos Fault.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults/{chaosFault}
  • Operation Id: ChaosFault_Get
  • Default Api Version: 2024-09-01-preview
  • Resource: CosmosDBChaosFaultResource
GetAll(CancellationToken)

List Chaos Faults for CosmosDB account.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults
  • Operation Id: ChaosFault_List
  • Default Api Version: 2024-09-01-preview
  • Resource: CosmosDBChaosFaultResource
GetAllAsync(CancellationToken)

List Chaos Faults for CosmosDB account.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults
  • Operation Id: ChaosFault_List
  • Default Api Version: 2024-09-01-preview
  • Resource: CosmosDBChaosFaultResource
GetAsync(String, CancellationToken)

Get Chaos Fault for a CosmosdB account for a particular Chaos Fault.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults/{chaosFault}
  • Operation Id: ChaosFault_Get
  • Default Api Version: 2024-09-01-preview
  • Resource: CosmosDBChaosFaultResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults/{chaosFault}
  • Operation Id: ChaosFault_Get
  • Default Api Version: 2024-09-01-preview
  • Resource: CosmosDBChaosFaultResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults/{chaosFault}
  • Operation Id: ChaosFault_Get
  • Default Api Version: 2024-09-01-preview
  • Resource: CosmosDBChaosFaultResource
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<CosmosDBChaosFaultResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<CosmosDBChaosFaultResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to