Share via


ReservationOrderCollection Class

Definition

A class representing a collection of ReservationOrderResource and their operations. Each ReservationOrderResource in the collection will belong to the same instance of TenantResource. To get a ReservationOrderCollection instance call the GetReservationOrders method from an instance of TenantResource.

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

Constructors

ReservationOrderCollection()

Initializes a new instance of the ReservationOrderCollection 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, Guid, ReservationPurchaseContent, CancellationToken)

Purchase ReservationOrder and create resource under the specified URI.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Purchase
CreateOrUpdateAsync(WaitUntil, Guid, ReservationPurchaseContent, CancellationToken)

Purchase ReservationOrder and create resource under the specified URI.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Purchase
Exists(Guid, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Get
ExistsAsync(Guid, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Get
Get(Guid, String, CancellationToken)

Get the details of the ReservationOrder.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Get
GetAll(CancellationToken)

List of all the ReservationOrders that the user has access to in the current tenant.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders
  • Operation Id: ReservationOrder_List
GetAllAsync(CancellationToken)

List of all the ReservationOrders that the user has access to in the current tenant.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders
  • Operation Id: ReservationOrder_List
GetAsync(Guid, String, CancellationToken)

Get the details of the ReservationOrder.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Get
GetIfExists(Guid, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Get
GetIfExistsAsync(Guid, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Get
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<ReservationOrderResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ReservationOrderResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to