Condividi tramite


SqlTimeZoneCollection Class

Definition

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

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

Constructors

SqlTimeZoneCollection()

Initializes a new instance of the SqlTimeZoneCollection 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}/timeZones/{timeZoneId}
  • Operation Id: TimeZones_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlTimeZoneResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/timeZones/{timeZoneId}
  • Operation Id: TimeZones_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlTimeZoneResource
Get(String, CancellationToken)

Gets a managed instance time zone.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/timeZones/{timeZoneId}
  • Operation Id: TimeZones_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlTimeZoneResource
GetAll(CancellationToken)

Gets a list of managed instance time zones by location.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/timeZones
  • Operation Id: TimeZones_ListByLocation
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlTimeZoneResource
GetAllAsync(CancellationToken)

Gets a list of managed instance time zones by location.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/timeZones
  • Operation Id: TimeZones_ListByLocation
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlTimeZoneResource
GetAsync(String, CancellationToken)

Gets a managed instance time zone.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/timeZones/{timeZoneId}
  • Operation Id: TimeZones_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlTimeZoneResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/timeZones/{timeZoneId}
  • Operation Id: TimeZones_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlTimeZoneResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/timeZones/{timeZoneId}
  • Operation Id: TimeZones_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlTimeZoneResource
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<SqlTimeZoneResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SqlTimeZoneResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to