Skip to content

Commit 7b9bb58

Browse files
committed
.NET SDK Resource Provider:'Reservations'
REST Spec PR 'Azure/azure-rest-api-specs#5654' REST Spec PR Author 'corquiri' REST Spec PR Last commit
1 parent 90437db commit 7b9bb58

10 files changed

+25
-53
lines changed

src/SDKs/Reservations/Management.Reservations/Generated/IReservationOperations.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public partial interface IReservationOperations
2929
/// <remarks>
3030
/// Split a `Reservation` into two `Reservation`s with specified
3131
/// quantity distribution.
32-
///
3332
/// </remarks>
3433
/// <param name='reservationOrderId'>
3534
/// Order Id of the reservation
@@ -171,7 +170,6 @@ public partial interface IReservationOperations
171170
/// </summary>
172171
/// <remarks>
173172
/// List of all the revisions for the `Reservation`.
174-
///
175173
/// </remarks>
176174
/// <param name='reservationId'>
177175
/// Id of the Reservation Item
@@ -201,7 +199,6 @@ public partial interface IReservationOperations
201199
/// <remarks>
202200
/// Split a `Reservation` into two `Reservation`s with specified
203201
/// quantity distribution.
204-
///
205202
/// </remarks>
206203
/// <param name='reservationOrderId'>
207204
/// Order Id of the reservation
@@ -315,7 +312,6 @@ public partial interface IReservationOperations
315312
/// </summary>
316313
/// <remarks>
317314
/// List of all the revisions for the `Reservation`.
318-
///
319315
/// </remarks>
320316
/// <param name='nextPageLink'>
321317
/// The NextLink from the previous successful call to List operation.

src/SDKs/Reservations/Management.Reservations/Generated/IReservationOrderOperations.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ public partial interface IReservationOrderOperations
2727
/// Calculate price for a `ReservationOrder`.
2828
/// </summary>
2929
/// <remarks>
30-
/// Calculate price for placing a `ReservationOrder`
31-
///
30+
/// Calculate price for placing a `ReservationOrder`.
3231
/// </remarks>
3332
/// <param name='body'>
3433
/// Information needed for calculate or purchase reservation
@@ -76,9 +75,8 @@ public partial interface IReservationOrderOperations
7675
/// Purchase `ReservationOrder`
7776
/// </summary>
7877
/// <remarks>
79-
/// Purchase `ReservationOrder` and create resource under the
80-
/// specificed URI
81-
///
78+
/// Purchase `ReservationOrder` and create resource under the specified
79+
/// URI.
8280
/// </remarks>
8381
/// <param name='reservationOrderId'>
8482
/// Order Id of the reservation
@@ -131,9 +129,8 @@ public partial interface IReservationOrderOperations
131129
/// Purchase `ReservationOrder`
132130
/// </summary>
133131
/// <remarks>
134-
/// Purchase `ReservationOrder` and create resource under the
135-
/// specificed URI
136-
///
132+
/// Purchase `ReservationOrder` and create resource under the specified
133+
/// URI.
137134
/// </remarks>
138135
/// <param name='reservationOrderId'>
139136
/// Order Id of the reservation

src/SDKs/Reservations/Management.Reservations/Generated/Models/InstanceFlexibility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Reservations.Models
1616
/// </summary>
1717
public static class InstanceFlexibility
1818
{
19-
public const string True = "True";
20-
public const string False = "False";
19+
public const string On = "On";
20+
public const string Off = "Off";
2121
}
2222
}

src/SDKs/Reservations/Management.Reservations/Generated/Models/Patch.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public Patch()
3333
/// </summary>
3434
/// <param name="appliedScopeType">Possible values include: 'Single',
3535
/// 'Shared'</param>
36-
/// <param name="instanceFlexibility">Possible values include: 'True',
37-
/// 'False'</param>
36+
/// <param name="instanceFlexibility">Possible values include: 'On',
37+
/// 'Off'</param>
3838
/// <param name="name">Name of the Reservation</param>
3939
public Patch(string appliedScopeType = default(string), IList<string> appliedScopes = default(IList<string>), string instanceFlexibility = default(string), string name = default(string))
4040
{
@@ -62,7 +62,7 @@ public Patch()
6262
public IList<string> AppliedScopes { get; set; }
6363

6464
/// <summary>
65-
/// Gets or sets possible values include: 'True', 'False'
65+
/// Gets or sets possible values include: 'On', 'Off'
6666
/// </summary>
6767
[JsonProperty(PropertyName = "properties.instanceFlexibility")]
6868
public string InstanceFlexibility { get; set; }

src/SDKs/Reservations/Management.Reservations/Generated/Models/PurchaseRequestPropertiesReservedResourceProperties.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public PurchaseRequestPropertiesReservedResourceProperties()
3232
/// Initializes a new instance of the
3333
/// PurchaseRequestPropertiesReservedResourceProperties class.
3434
/// </summary>
35-
/// <param name="instanceFlexibility">Possible values include: 'True',
36-
/// 'False'</param>
35+
/// <param name="instanceFlexibility">Possible values include: 'On',
36+
/// 'Off'</param>
3737
public PurchaseRequestPropertiesReservedResourceProperties(string instanceFlexibility = default(string))
3838
{
3939
InstanceFlexibility = instanceFlexibility;
@@ -46,7 +46,7 @@ public PurchaseRequestPropertiesReservedResourceProperties()
4646
partial void CustomInit();
4747

4848
/// <summary>
49-
/// Gets or sets possible values include: 'True', 'False'
49+
/// Gets or sets possible values include: 'On', 'Off'
5050
/// </summary>
5151
[JsonProperty(PropertyName = "instanceFlexibility")]
5252
public string InstanceFlexibility { get; set; }

src/SDKs/Reservations/Management.Reservations/Generated/Models/ReservationProperties.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public ReservationProperties()
3232
/// </summary>
3333
/// <param name="reservedResourceType">Possible values include:
3434
/// 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb'</param>
35-
/// <param name="instanceFlexibility">Possible values include: 'True',
36-
/// 'False'</param>
35+
/// <param name="instanceFlexibility">Possible values include: 'On',
36+
/// 'Off'</param>
3737
/// <param name="displayName">Friendly name for user to easily identify
3838
/// the reservation</param>
3939
/// <param name="appliedScopeType">Possible values include: 'Single',
@@ -80,7 +80,7 @@ public ReservationProperties()
8080
public string ReservedResourceType { get; set; }
8181

8282
/// <summary>
83-
/// Gets or sets possible values include: 'True', 'False'
83+
/// Gets or sets possible values include: 'On', 'Off'
8484
/// </summary>
8585
[JsonProperty(PropertyName = "instanceFlexibility")]
8686
public string InstanceFlexibility { get; set; }

src/SDKs/Reservations/Management.Reservations/Generated/ReservationOperations.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ internal ReservationOperations(AzureReservationAPIClient client)
5656
/// <remarks>
5757
/// Split a `Reservation` into two `Reservation`s with specified quantity
5858
/// distribution.
59-
///
6059
/// </remarks>
6160
/// <param name='reservationOrderId'>
6261
/// Order Id of the reservation
@@ -505,7 +504,6 @@ internal ReservationOperations(AzureReservationAPIClient client)
505504
/// </summary>
506505
/// <remarks>
507506
/// List of all the revisions for the `Reservation`.
508-
///
509507
/// </remarks>
510508
/// <param name='reservationId'>
511509
/// Id of the Reservation Item
@@ -696,7 +694,6 @@ internal ReservationOperations(AzureReservationAPIClient client)
696694
/// <remarks>
697695
/// Split a `Reservation` into two `Reservation`s with specified quantity
698696
/// distribution.
699-
///
700697
/// </remarks>
701698
/// <param name='reservationOrderId'>
702699
/// Order Id of the reservation
@@ -1460,7 +1457,6 @@ internal ReservationOperations(AzureReservationAPIClient client)
14601457
/// </summary>
14611458
/// <remarks>
14621459
/// List of all the revisions for the `Reservation`.
1463-
///
14641460
/// </remarks>
14651461
/// <param name='nextPageLink'>
14661462
/// The NextLink from the previous successful call to List operation.

src/SDKs/Reservations/Management.Reservations/Generated/ReservationOperationsExtensions.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public static partial class ReservationOperationsExtensions
2929
/// <remarks>
3030
/// Split a `Reservation` into two `Reservation`s with specified quantity
3131
/// distribution.
32-
///
3332
/// </remarks>
3433
/// <param name='operations'>
3534
/// The operations group for this extension method.
@@ -51,7 +50,6 @@ public static IList<ReservationResponse> Split(this IReservationOperations opera
5150
/// <remarks>
5251
/// Split a `Reservation` into two `Reservation`s with specified quantity
5352
/// distribution.
54-
///
5553
/// </remarks>
5654
/// <param name='operations'>
5755
/// The operations group for this extension method.
@@ -264,7 +262,6 @@ public static ReservationResponse Update(this IReservationOperations operations,
264262
/// </summary>
265263
/// <remarks>
266264
/// List of all the revisions for the `Reservation`.
267-
///
268265
/// </remarks>
269266
/// <param name='operations'>
270267
/// The operations group for this extension method.
@@ -285,7 +282,6 @@ public static IPage<ReservationResponse> ListRevisions(this IReservationOperatio
285282
/// </summary>
286283
/// <remarks>
287284
/// List of all the revisions for the `Reservation`.
288-
///
289285
/// </remarks>
290286
/// <param name='operations'>
291287
/// The operations group for this extension method.
@@ -313,7 +309,6 @@ public static IPage<ReservationResponse> ListRevisions(this IReservationOperatio
313309
/// <remarks>
314310
/// Split a `Reservation` into two `Reservation`s with specified quantity
315311
/// distribution.
316-
///
317312
/// </remarks>
318313
/// <param name='operations'>
319314
/// The operations group for this extension method.
@@ -335,7 +330,6 @@ public static IList<ReservationResponse> BeginSplit(this IReservationOperations
335330
/// <remarks>
336331
/// Split a `Reservation` into two `Reservation`s with specified quantity
337332
/// distribution.
338-
///
339333
/// </remarks>
340334
/// <param name='operations'>
341335
/// The operations group for this extension method.
@@ -502,7 +496,6 @@ public static IPage<ReservationResponse> ListNext(this IReservationOperations op
502496
/// </summary>
503497
/// <remarks>
504498
/// List of all the revisions for the `Reservation`.
505-
///
506499
/// </remarks>
507500
/// <param name='operations'>
508501
/// The operations group for this extension method.
@@ -520,7 +513,6 @@ public static IPage<ReservationResponse> ListRevisionsNext(this IReservationOper
520513
/// </summary>
521514
/// <remarks>
522515
/// List of all the revisions for the `Reservation`.
523-
///
524516
/// </remarks>
525517
/// <param name='operations'>
526518
/// The operations group for this extension method.

src/SDKs/Reservations/Management.Reservations/Generated/ReservationOrderOperations.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ internal ReservationOrderOperations(AzureReservationAPIClient client)
5454
/// Calculate price for a `ReservationOrder`.
5555
/// </summary>
5656
/// <remarks>
57-
/// Calculate price for placing a `ReservationOrder`
58-
///
57+
/// Calculate price for placing a `ReservationOrder`.
5958
/// </remarks>
6059
/// <param name='body'>
6160
/// Information needed for calculate or purchase reservation
@@ -412,8 +411,7 @@ internal ReservationOrderOperations(AzureReservationAPIClient client)
412411
/// Purchase `ReservationOrder`
413412
/// </summary>
414413
/// <remarks>
415-
/// Purchase `ReservationOrder` and create resource under the specificed URI
416-
///
414+
/// Purchase `ReservationOrder` and create resource under the specified URI.
417415
/// </remarks>
418416
/// <param name='reservationOrderId'>
419417
/// Order Id of the reservation
@@ -618,8 +616,7 @@ internal ReservationOrderOperations(AzureReservationAPIClient client)
618616
/// Purchase `ReservationOrder`
619617
/// </summary>
620618
/// <remarks>
621-
/// Purchase `ReservationOrder` and create resource under the specificed URI
622-
///
619+
/// Purchase `ReservationOrder` and create resource under the specified URI.
623620
/// </remarks>
624621
/// <param name='reservationOrderId'>
625622
/// Order Id of the reservation

src/SDKs/Reservations/Management.Reservations/Generated/ReservationOrderOperationsExtensions.cs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ public static partial class ReservationOrderOperationsExtensions
2525
/// Calculate price for a `ReservationOrder`.
2626
/// </summary>
2727
/// <remarks>
28-
/// Calculate price for placing a `ReservationOrder`
29-
///
28+
/// Calculate price for placing a `ReservationOrder`.
3029
/// </remarks>
3130
/// <param name='operations'>
3231
/// The operations group for this extension method.
@@ -43,8 +42,7 @@ public static CalculatePriceResponse Calculate(this IReservationOrderOperations
4342
/// Calculate price for a `ReservationOrder`.
4443
/// </summary>
4544
/// <remarks>
46-
/// Calculate price for placing a `ReservationOrder`
47-
///
45+
/// Calculate price for placing a `ReservationOrder`.
4846
/// </remarks>
4947
/// <param name='operations'>
5048
/// The operations group for this extension method.
@@ -103,8 +101,7 @@ public static IPage<ReservationOrderResponse> List(this IReservationOrderOperati
103101
/// Purchase `ReservationOrder`
104102
/// </summary>
105103
/// <remarks>
106-
/// Purchase `ReservationOrder` and create resource under the specificed URI
107-
///
104+
/// Purchase `ReservationOrder` and create resource under the specified URI.
108105
/// </remarks>
109106
/// <param name='operations'>
110107
/// The operations group for this extension method.
@@ -124,8 +121,7 @@ public static ReservationOrderResponse Purchase(this IReservationOrderOperations
124121
/// Purchase `ReservationOrder`
125122
/// </summary>
126123
/// <remarks>
127-
/// Purchase `ReservationOrder` and create resource under the specificed URI
128-
///
124+
/// Purchase `ReservationOrder` and create resource under the specified URI.
129125
/// </remarks>
130126
/// <param name='operations'>
131127
/// The operations group for this extension method.
@@ -191,8 +187,7 @@ public static ReservationOrderResponse Get(this IReservationOrderOperations oper
191187
/// Purchase `ReservationOrder`
192188
/// </summary>
193189
/// <remarks>
194-
/// Purchase `ReservationOrder` and create resource under the specificed URI
195-
///
190+
/// Purchase `ReservationOrder` and create resource under the specified URI.
196191
/// </remarks>
197192
/// <param name='operations'>
198193
/// The operations group for this extension method.
@@ -212,8 +207,7 @@ public static ReservationOrderResponse BeginPurchase(this IReservationOrderOpera
212207
/// Purchase `ReservationOrder`
213208
/// </summary>
214209
/// <remarks>
215-
/// Purchase `ReservationOrder` and create resource under the specificed URI
216-
///
210+
/// Purchase `ReservationOrder` and create resource under the specified URI.
217211
/// </remarks>
218212
/// <param name='operations'>
219213
/// The operations group for this extension method.

0 commit comments

Comments
 (0)