Udostępnij za pośrednictwem


SubscriptionLongTermRetentionBackupCollection Class

Definition

A class representing a collection of SubscriptionLongTermRetentionBackupResource and their operations. Each SubscriptionLongTermRetentionBackupResource in the collection will belong to the same instance of SubscriptionResource. To get a SubscriptionLongTermRetentionBackupCollection instance call the GetSubscriptionLongTermRetentionBackups method from an instance of SubscriptionResource.

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

Constructors

SubscriptionLongTermRetentionBackupCollection()

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

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}
  • Operation Id: LongTermRetentionBackups_Get
  • Default Api Version: 2023-05-01-preview
  • Resource: SubscriptionLongTermRetentionBackupResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}
  • Operation Id: LongTermRetentionBackups_Get
  • Default Api Version: 2023-05-01-preview
  • Resource: SubscriptionLongTermRetentionBackupResource
Get(String, CancellationToken)

Gets a long term retention backup.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}
  • Operation Id: LongTermRetentionBackups_Get
  • Default Api Version: 2023-05-01-preview
  • Resource: SubscriptionLongTermRetentionBackupResource
GetAll(Nullable<Boolean>, Nullable<SqlDatabaseState>, CancellationToken)

Lists all long term retention backups for a database.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups
  • Operation Id: LongTermRetentionBackups_ListByDatabase
  • Default Api Version: 2023-05-01-preview
  • Resource: SubscriptionLongTermRetentionBackupResource
GetAllAsync(Nullable<Boolean>, Nullable<SqlDatabaseState>, CancellationToken)

Lists all long term retention backups for a database.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups
  • Operation Id: LongTermRetentionBackups_ListByDatabase
  • Default Api Version: 2023-05-01-preview
  • Resource: SubscriptionLongTermRetentionBackupResource
GetAsync(String, CancellationToken)

Gets a long term retention backup.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}
  • Operation Id: LongTermRetentionBackups_Get
  • Default Api Version: 2023-05-01-preview
  • Resource: SubscriptionLongTermRetentionBackupResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}
  • Operation Id: LongTermRetentionBackups_Get
  • Default Api Version: 2023-05-01-preview
  • Resource: SubscriptionLongTermRetentionBackupResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}
  • Operation Id: LongTermRetentionBackups_Get
  • Default Api Version: 2023-05-01-preview
  • Resource: SubscriptionLongTermRetentionBackupResource
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<SubscriptionLongTermRetentionBackupResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SubscriptionLongTermRetentionBackupResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to