Sdílet prostřednictvím


DdosProtectionPlanCollection Class

Definition

A class representing a collection of DdosProtectionPlanResource and their operations. Each DdosProtectionPlanResource in the collection will belong to the same instance of ResourceGroupResource. To get a DdosProtectionPlanCollection instance call the GetDdosProtectionPlans method from an instance of ResourceGroupResource.

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

Constructors

DdosProtectionPlanCollection()

Initializes a new instance of the DdosProtectionPlanCollection 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, DdosProtectionPlanData, CancellationToken)

Creates or updates a DDoS protection plan.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}
  • Operation Id: DdosProtectionPlans_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource
CreateOrUpdateAsync(WaitUntil, String, DdosProtectionPlanData, CancellationToken)

Creates or updates a DDoS protection plan.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}
  • Operation Id: DdosProtectionPlans_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}
  • Operation Id: DdosProtectionPlans_Get
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}
  • Operation Id: DdosProtectionPlans_Get
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource
Get(String, CancellationToken)

Gets information about the specified DDoS protection plan.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}
  • Operation Id: DdosProtectionPlans_Get
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource
GetAll(CancellationToken)

Gets all the DDoS protection plans in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans
  • Operation Id: DdosProtectionPlans_ListByResourceGroup
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource
GetAllAsync(CancellationToken)

Gets all the DDoS protection plans in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans
  • Operation Id: DdosProtectionPlans_ListByResourceGroup
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource
GetAsync(String, CancellationToken)

Gets information about the specified DDoS protection plan.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}
  • Operation Id: DdosProtectionPlans_Get
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}
  • Operation Id: DdosProtectionPlans_Get
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}
  • Operation Id: DdosProtectionPlans_Get
  • Default Api Version: 2024-03-01
  • Resource: DdosProtectionPlanResource
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<DdosProtectionPlanResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DdosProtectionPlanResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to