Skip to content

Commit

Permalink
.NET SDK Resource Provider:'Reservations'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5656'
REST Spec PR Author 'jhendrixMSFT'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Apr 15, 2019
1 parent 90437db commit f7458d1
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public partial interface IReservationOperations
/// <remarks>
/// Split a `Reservation` into two `Reservation`s with specified
/// quantity distribution.
///
/// </remarks>
/// <param name='reservationOrderId'>
/// Order Id of the reservation
Expand Down Expand Up @@ -171,7 +170,6 @@ public partial interface IReservationOperations
/// </summary>
/// <remarks>
/// List of all the revisions for the `Reservation`.
///
/// </remarks>
/// <param name='reservationId'>
/// Id of the Reservation Item
Expand Down Expand Up @@ -201,7 +199,6 @@ public partial interface IReservationOperations
/// <remarks>
/// Split a `Reservation` into two `Reservation`s with specified
/// quantity distribution.
///
/// </remarks>
/// <param name='reservationOrderId'>
/// Order Id of the reservation
Expand Down Expand Up @@ -315,7 +312,6 @@ public partial interface IReservationOperations
/// </summary>
/// <remarks>
/// List of all the revisions for the `Reservation`.
///
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ public partial interface IReservationOrderOperations
/// Calculate price for a `ReservationOrder`.
/// </summary>
/// <remarks>
/// Calculate price for placing a `ReservationOrder`
///
/// Calculate price for placing a `ReservationOrder`.
/// </remarks>
/// <param name='body'>
/// Information needed for calculate or purchase reservation
Expand Down Expand Up @@ -76,9 +75,8 @@ public partial interface IReservationOrderOperations
/// Purchase `ReservationOrder`
/// </summary>
/// <remarks>
/// Purchase `ReservationOrder` and create resource under the
/// specificed URI
///
/// Purchase `ReservationOrder` and create resource under the specified
/// URI.
/// </remarks>
/// <param name='reservationOrderId'>
/// Order Id of the reservation
Expand Down Expand Up @@ -131,9 +129,8 @@ public partial interface IReservationOrderOperations
/// Purchase `ReservationOrder`
/// </summary>
/// <remarks>
/// Purchase `ReservationOrder` and create resource under the
/// specificed URI
///
/// Purchase `ReservationOrder` and create resource under the specified
/// URI.
/// </remarks>
/// <param name='reservationOrderId'>
/// Order Id of the reservation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Reservations.Models
/// </summary>
public static class InstanceFlexibility
{
public const string True = "True";
public const string False = "False";
public const string On = "On";
public const string Off = "Off";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public Patch()
/// </summary>
/// <param name="appliedScopeType">Possible values include: 'Single',
/// 'Shared'</param>
/// <param name="instanceFlexibility">Possible values include: 'True',
/// 'False'</param>
/// <param name="instanceFlexibility">Possible values include: 'On',
/// 'Off'</param>
/// <param name="name">Name of the Reservation</param>
public Patch(string appliedScopeType = default(string), IList<string> appliedScopes = default(IList<string>), string instanceFlexibility = default(string), string name = default(string))
{
Expand Down Expand Up @@ -62,7 +62,7 @@ public Patch()
public IList<string> AppliedScopes { get; set; }

/// <summary>
/// Gets or sets possible values include: 'True', 'False'
/// Gets or sets possible values include: 'On', 'Off'
/// </summary>
[JsonProperty(PropertyName = "properties.instanceFlexibility")]
public string InstanceFlexibility { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public PurchaseRequestPropertiesReservedResourceProperties()
/// Initializes a new instance of the
/// PurchaseRequestPropertiesReservedResourceProperties class.
/// </summary>
/// <param name="instanceFlexibility">Possible values include: 'True',
/// 'False'</param>
/// <param name="instanceFlexibility">Possible values include: 'On',
/// 'Off'</param>
public PurchaseRequestPropertiesReservedResourceProperties(string instanceFlexibility = default(string))
{
InstanceFlexibility = instanceFlexibility;
Expand All @@ -46,7 +46,7 @@ public PurchaseRequestPropertiesReservedResourceProperties()
partial void CustomInit();

/// <summary>
/// Gets or sets possible values include: 'True', 'False'
/// Gets or sets possible values include: 'On', 'Off'
/// </summary>
[JsonProperty(PropertyName = "instanceFlexibility")]
public string InstanceFlexibility { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public ReservationProperties()
/// </summary>
/// <param name="reservedResourceType">Possible values include:
/// 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb'</param>
/// <param name="instanceFlexibility">Possible values include: 'True',
/// 'False'</param>
/// <param name="instanceFlexibility">Possible values include: 'On',
/// 'Off'</param>
/// <param name="displayName">Friendly name for user to easily identify
/// the reservation</param>
/// <param name="appliedScopeType">Possible values include: 'Single',
Expand Down Expand Up @@ -80,7 +80,7 @@ public ReservationProperties()
public string ReservedResourceType { get; set; }

/// <summary>
/// Gets or sets possible values include: 'True', 'False'
/// Gets or sets possible values include: 'On', 'Off'
/// </summary>
[JsonProperty(PropertyName = "instanceFlexibility")]
public string InstanceFlexibility { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ internal ReservationOperations(AzureReservationAPIClient client)
/// <remarks>
/// Split a `Reservation` into two `Reservation`s with specified quantity
/// distribution.
///
/// </remarks>
/// <param name='reservationOrderId'>
/// Order Id of the reservation
Expand Down Expand Up @@ -505,7 +504,6 @@ internal ReservationOperations(AzureReservationAPIClient client)
/// </summary>
/// <remarks>
/// List of all the revisions for the `Reservation`.
///
/// </remarks>
/// <param name='reservationId'>
/// Id of the Reservation Item
Expand Down Expand Up @@ -696,7 +694,6 @@ internal ReservationOperations(AzureReservationAPIClient client)
/// <remarks>
/// Split a `Reservation` into two `Reservation`s with specified quantity
/// distribution.
///
/// </remarks>
/// <param name='reservationOrderId'>
/// Order Id of the reservation
Expand Down Expand Up @@ -1460,7 +1457,6 @@ internal ReservationOperations(AzureReservationAPIClient client)
/// </summary>
/// <remarks>
/// List of all the revisions for the `Reservation`.
///
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public static partial class ReservationOperationsExtensions
/// <remarks>
/// Split a `Reservation` into two `Reservation`s with specified quantity
/// distribution.
///
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -51,7 +50,6 @@ public static IList<ReservationResponse> Split(this IReservationOperations opera
/// <remarks>
/// Split a `Reservation` into two `Reservation`s with specified quantity
/// distribution.
///
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down Expand Up @@ -264,7 +262,6 @@ public static ReservationResponse Update(this IReservationOperations operations,
/// </summary>
/// <remarks>
/// List of all the revisions for the `Reservation`.
///
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -285,7 +282,6 @@ public static IPage<ReservationResponse> ListRevisions(this IReservationOperatio
/// </summary>
/// <remarks>
/// List of all the revisions for the `Reservation`.
///
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down Expand Up @@ -313,7 +309,6 @@ public static IPage<ReservationResponse> ListRevisions(this IReservationOperatio
/// <remarks>
/// Split a `Reservation` into two `Reservation`s with specified quantity
/// distribution.
///
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -335,7 +330,6 @@ public static IList<ReservationResponse> BeginSplit(this IReservationOperations
/// <remarks>
/// Split a `Reservation` into two `Reservation`s with specified quantity
/// distribution.
///
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down Expand Up @@ -502,7 +496,6 @@ public static IPage<ReservationResponse> ListNext(this IReservationOperations op
/// </summary>
/// <remarks>
/// List of all the revisions for the `Reservation`.
///
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -520,7 +513,6 @@ public static IPage<ReservationResponse> ListRevisionsNext(this IReservationOper
/// </summary>
/// <remarks>
/// List of all the revisions for the `Reservation`.
///
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ internal ReservationOrderOperations(AzureReservationAPIClient client)
/// Calculate price for a `ReservationOrder`.
/// </summary>
/// <remarks>
/// Calculate price for placing a `ReservationOrder`
///
/// Calculate price for placing a `ReservationOrder`.
/// </remarks>
/// <param name='body'>
/// Information needed for calculate or purchase reservation
Expand Down Expand Up @@ -412,8 +411,7 @@ internal ReservationOrderOperations(AzureReservationAPIClient client)
/// Purchase `ReservationOrder`
/// </summary>
/// <remarks>
/// Purchase `ReservationOrder` and create resource under the specificed URI
///
/// Purchase `ReservationOrder` and create resource under the specified URI.
/// </remarks>
/// <param name='reservationOrderId'>
/// Order Id of the reservation
Expand Down Expand Up @@ -618,8 +616,7 @@ internal ReservationOrderOperations(AzureReservationAPIClient client)
/// Purchase `ReservationOrder`
/// </summary>
/// <remarks>
/// Purchase `ReservationOrder` and create resource under the specificed URI
///
/// Purchase `ReservationOrder` and create resource under the specified URI.
/// </remarks>
/// <param name='reservationOrderId'>
/// Order Id of the reservation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ public static partial class ReservationOrderOperationsExtensions
/// Calculate price for a `ReservationOrder`.
/// </summary>
/// <remarks>
/// Calculate price for placing a `ReservationOrder`
///
/// Calculate price for placing a `ReservationOrder`.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -43,8 +42,7 @@ public static CalculatePriceResponse Calculate(this IReservationOrderOperations
/// Calculate price for a `ReservationOrder`.
/// </summary>
/// <remarks>
/// Calculate price for placing a `ReservationOrder`
///
/// Calculate price for placing a `ReservationOrder`.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down Expand Up @@ -103,8 +101,7 @@ public static IPage<ReservationOrderResponse> List(this IReservationOrderOperati
/// Purchase `ReservationOrder`
/// </summary>
/// <remarks>
/// Purchase `ReservationOrder` and create resource under the specificed URI
///
/// Purchase `ReservationOrder` and create resource under the specified URI.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -124,8 +121,7 @@ public static ReservationOrderResponse Purchase(this IReservationOrderOperations
/// Purchase `ReservationOrder`
/// </summary>
/// <remarks>
/// Purchase `ReservationOrder` and create resource under the specificed URI
///
/// Purchase `ReservationOrder` and create resource under the specified URI.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down Expand Up @@ -191,8 +187,7 @@ public static ReservationOrderResponse Get(this IReservationOrderOperations oper
/// Purchase `ReservationOrder`
/// </summary>
/// <remarks>
/// Purchase `ReservationOrder` and create resource under the specificed URI
///
/// Purchase `ReservationOrder` and create resource under the specified URI.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -212,8 +207,7 @@ public static ReservationOrderResponse BeginPurchase(this IReservationOrderOpera
/// Purchase `ReservationOrder`
/// </summary>
/// <remarks>
/// Purchase `ReservationOrder` and create resource under the specificed URI
///
/// Purchase `ReservationOrder` and create resource under the specified URI.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down

0 comments on commit f7458d1

Please sign in to comment.