forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.NET SDK Resource Provider:'Reservations'
REST Spec PR 'Azure/azure-rest-api-specs#5715' REST Spec PR Author 'gautam714' REST Spec PR Last commit
- Loading branch information
Showing
9 changed files
with
252 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
src/SDKs/Reservations/Management.Reservations/Generated/Models/RenewPropertiesResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// <auto-generated> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.Reservations.Models | ||
{ | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
public partial class RenewPropertiesResponse | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the RenewPropertiesResponse class. | ||
/// </summary> | ||
public RenewPropertiesResponse() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the RenewPropertiesResponse class. | ||
/// </summary> | ||
/// <param name="lockedPriceTotal">Locked currency & amount for new | ||
/// reservation purchase at the time of renewal. Price is locked 30 | ||
/// days before expiry date time if renew is true.</param> | ||
/// <param name="links">Contains prev and next reservation Ids' because | ||
/// of renewal.</param> | ||
public RenewPropertiesResponse(PurchaseRequest purchaseProperties = default(PurchaseRequest), RenewPropertiesResponseLockedPriceTotal lockedPriceTotal = default(RenewPropertiesResponseLockedPriceTotal), RenewPropertiesResponseLinks links = default(RenewPropertiesResponseLinks)) | ||
{ | ||
PurchaseProperties = purchaseProperties; | ||
LockedPriceTotal = lockedPriceTotal; | ||
Links = links; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonProperty(PropertyName = "purchaseProperties")] | ||
public PurchaseRequest PurchaseProperties { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets locked currency &amp; amount for new reservation | ||
/// purchase at the time of renewal. Price is locked 30 days before | ||
/// expiry date time if renew is true. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "lockedPriceTotal")] | ||
public RenewPropertiesResponseLockedPriceTotal LockedPriceTotal { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets contains prev and next reservation Ids' because of | ||
/// renewal. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "links")] | ||
public RenewPropertiesResponseLinks Links { get; set; } | ||
|
||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
...DKs/Reservations/Management.Reservations/Generated/Models/RenewPropertiesResponseLinks.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// <auto-generated> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.Reservations.Models | ||
{ | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Contains prev and next reservation Ids' because of renewal. | ||
/// </summary> | ||
public partial class RenewPropertiesResponseLinks | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the RenewPropertiesResponseLinks | ||
/// class. | ||
/// </summary> | ||
public RenewPropertiesResponseLinks() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the RenewPropertiesResponseLinks | ||
/// class. | ||
/// </summary> | ||
/// <param name="renewSource">Reservation Id of the reservation from | ||
/// which this reservation is renewed. Format of the resource Id is | ||
/// /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.</param> | ||
/// <param name="renewDestination">Reservation Id of the reservation | ||
/// which is purchased because of renew. Format of the resource Id is | ||
/// /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.</param> | ||
public RenewPropertiesResponseLinks(string renewSource = default(string), string renewDestination = default(string)) | ||
{ | ||
RenewSource = renewSource; | ||
RenewDestination = renewDestination; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets reservation Id of the reservation from which this | ||
/// reservation is renewed. Format of the resource Id is | ||
/// /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "renewSource")] | ||
public string RenewSource { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets reservation Id of the reservation which is purchased | ||
/// because of renew. Format of the resource Id is | ||
/// /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "renewDestination")] | ||
public string RenewDestination { get; set; } | ||
|
||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...tions/Management.Reservations/Generated/Models/RenewPropertiesResponseLockedPriceTotal.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// <auto-generated> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.Reservations.Models | ||
{ | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Locked currency & amount for new reservation purchase at the time | ||
/// of renewal. Price is locked 30 days before expiry date time if renew is | ||
/// true. | ||
/// </summary> | ||
public partial class RenewPropertiesResponseLockedPriceTotal | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the | ||
/// RenewPropertiesResponseLockedPriceTotal class. | ||
/// </summary> | ||
public RenewPropertiesResponseLockedPriceTotal() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the | ||
/// RenewPropertiesResponseLockedPriceTotal class. | ||
/// </summary> | ||
public RenewPropertiesResponseLockedPriceTotal(string currencyCode = default(string), string amount = default(string)) | ||
{ | ||
CurrencyCode = currencyCode; | ||
Amount = amount; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonProperty(PropertyName = "currencyCode")] | ||
public string CurrencyCode { get; set; } | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonProperty(PropertyName = "amount")] | ||
public string Amount { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters