共用方式為


ManagedBackupShortTermRetentionPolicyCollection Class

Definition

A class representing a collection of ManagedBackupShortTermRetentionPolicyResource and their operations. Each ManagedBackupShortTermRetentionPolicyResource in the collection will belong to the same instance of ManagedDatabaseResource. To get a ManagedBackupShortTermRetentionPolicyCollection instance call the GetManagedBackupShortTermRetentionPolicies method from an instance of ManagedDatabaseResource.

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

Constructors

ManagedBackupShortTermRetentionPolicyCollection()

Initializes a new instance of the ManagedBackupShortTermRetentionPolicyCollection 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, ManagedShortTermRetentionPolicyName, ManagedBackupShortTermRetentionPolicyData, CancellationToken)

Updates a managed database's short term retention policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}
  • Operation Id: ManagedBackupShortTermRetentionPolicies_CreateOrUpdate
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedBackupShortTermRetentionPolicyResource
CreateOrUpdateAsync(WaitUntil, ManagedShortTermRetentionPolicyName, ManagedBackupShortTermRetentionPolicyData, CancellationToken)

Updates a managed database's short term retention policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}
  • Operation Id: ManagedBackupShortTermRetentionPolicies_CreateOrUpdate
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedBackupShortTermRetentionPolicyResource
Exists(ManagedShortTermRetentionPolicyName, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}
  • Operation Id: ManagedBackupShortTermRetentionPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedBackupShortTermRetentionPolicyResource
ExistsAsync(ManagedShortTermRetentionPolicyName, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}
  • Operation Id: ManagedBackupShortTermRetentionPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedBackupShortTermRetentionPolicyResource
Get(ManagedShortTermRetentionPolicyName, CancellationToken)

Gets a managed database's short term retention policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}
  • Operation Id: ManagedBackupShortTermRetentionPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedBackupShortTermRetentionPolicyResource
GetAll(CancellationToken)

Gets a managed database's short term retention policy list.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies
  • Operation Id: ManagedBackupShortTermRetentionPolicies_ListByDatabase
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedBackupShortTermRetentionPolicyResource
GetAllAsync(CancellationToken)

Gets a managed database's short term retention policy list.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies
  • Operation Id: ManagedBackupShortTermRetentionPolicies_ListByDatabase
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedBackupShortTermRetentionPolicyResource
GetAsync(ManagedShortTermRetentionPolicyName, CancellationToken)

Gets a managed database's short term retention policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}
  • Operation Id: ManagedBackupShortTermRetentionPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedBackupShortTermRetentionPolicyResource
GetIfExists(ManagedShortTermRetentionPolicyName, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}
  • Operation Id: ManagedBackupShortTermRetentionPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedBackupShortTermRetentionPolicyResource
GetIfExistsAsync(ManagedShortTermRetentionPolicyName, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}
  • Operation Id: ManagedBackupShortTermRetentionPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedBackupShortTermRetentionPolicyResource
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<ManagedBackupShortTermRetentionPolicyResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ManagedBackupShortTermRetentionPolicyResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to