Sdílet prostřednictvím


MaintenanceConfigurationCollection Class

Definition

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

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

Constructors

MaintenanceConfigurationCollection()

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

Create or Update configuration record

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
  • Operation Id: MaintenanceConfigurations_CreateOrUpdate
  • Default Api Version: 2023-10-01-preview
  • Resource: MaintenanceConfigurationResource
CreateOrUpdateAsync(WaitUntil, String, MaintenanceConfigurationData, CancellationToken)

Create or Update configuration record

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
  • Operation Id: MaintenanceConfigurations_CreateOrUpdate
  • Default Api Version: 2023-10-01-preview
  • Resource: MaintenanceConfigurationResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
  • Operation Id: MaintenanceConfigurations_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: MaintenanceConfigurationResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
  • Operation Id: MaintenanceConfigurations_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: MaintenanceConfigurationResource
Get(String, CancellationToken)

Get Configuration record

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
  • Operation Id: MaintenanceConfigurations_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: MaintenanceConfigurationResource
GetAll(CancellationToken)

Get Configuration records within a subscription and resource group

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations
  • Operation Id: MaintenanceConfigurationsForResourceGroup_List
  • Default Api Version: 2023-10-01-preview
  • Resource: MaintenanceConfigurationResource
GetAllAsync(CancellationToken)

Get Configuration records within a subscription and resource group

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations
  • Operation Id: MaintenanceConfigurationsForResourceGroup_List
  • Default Api Version: 2023-10-01-preview
  • Resource: MaintenanceConfigurationResource
GetAsync(String, CancellationToken)

Get Configuration record

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
  • Operation Id: MaintenanceConfigurations_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: MaintenanceConfigurationResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
  • Operation Id: MaintenanceConfigurations_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: MaintenanceConfigurationResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
  • Operation Id: MaintenanceConfigurations_Get
  • Default Api Version: 2023-10-01-preview
  • Resource: MaintenanceConfigurationResource
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<MaintenanceConfigurationResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<MaintenanceConfigurationResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to