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#5403'
REST Spec PR Author 'corquiri'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Apr 2, 2019
1 parent ed892b2 commit 104706b
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,21 @@ public CalculatePriceResponseProperties()
/// Initializes a new instance of the CalculatePriceResponseProperties
/// class.
/// </summary>
public CalculatePriceResponseProperties(CalculatePriceResponsePropertiesBillingCurrencyTotal billingCurrencyTotal = default(CalculatePriceResponsePropertiesBillingCurrencyTotal), bool? isTaxIncluded = default(bool?), PurchaseRequest purchaseRequest = default(PurchaseRequest), bool? isBillingPartnerManaged = default(bool?), string reservationOrderId = default(string), string skuTitle = default(string), string skuDescription = default(string), CalculatePriceResponsePropertiesPricingCurrencyTotal pricingCurrencyTotal = default(CalculatePriceResponsePropertiesPricingCurrencyTotal))
/// <param name="billingCurrencyTotal">Currency and amount that
/// customer will be charged in customer's local currency. Tax is not
/// included.</param>
/// <param name="reservationOrderId">GUID that represents reservation
/// order that can be placed after calculating price</param>
/// <param name="skuTitle">Long name for the SKU that is being
/// purchased</param>
/// <param name="skuDescription">Short name for the SKU that is being
/// purchased</param>
/// <param name="pricingCurrencyTotal">Amount that Microsoft uses for
/// record. Used during refund for calculating refund limit. Tax is not
/// included.</param>
public CalculatePriceResponseProperties(CalculatePriceResponsePropertiesBillingCurrencyTotal billingCurrencyTotal = default(CalculatePriceResponsePropertiesBillingCurrencyTotal), bool? isBillingPartnerManaged = default(bool?), string reservationOrderId = default(string), string skuTitle = default(string), string skuDescription = default(string), CalculatePriceResponsePropertiesPricingCurrencyTotal pricingCurrencyTotal = default(CalculatePriceResponsePropertiesPricingCurrencyTotal))
{
BillingCurrencyTotal = billingCurrencyTotal;
IsTaxIncluded = isTaxIncluded;
PurchaseRequest = purchaseRequest;
IsBillingPartnerManaged = isBillingPartnerManaged;
ReservationOrderId = reservationOrderId;
SkuTitle = skuTitle;
Expand All @@ -47,41 +57,39 @@ public CalculatePriceResponseProperties()
partial void CustomInit();

/// <summary>
/// Gets or sets currency and amount that customer will be charged in
/// customer's local currency. Tax is not included.
/// </summary>
[JsonProperty(PropertyName = "billingCurrencyTotal")]
public CalculatePriceResponsePropertiesBillingCurrencyTotal BillingCurrencyTotal { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "isTaxIncluded")]
public bool? IsTaxIncluded { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "purchaseRequest")]
public PurchaseRequest PurchaseRequest { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "isBillingPartnerManaged")]
public bool? IsBillingPartnerManaged { get; set; }

/// <summary>
/// Gets or sets GUID that represents reservation order that can be
/// placed after calculating price
/// </summary>
[JsonProperty(PropertyName = "reservationOrderId")]
public string ReservationOrderId { get; set; }

/// <summary>
/// Gets or sets long name for the SKU that is being purchased
/// </summary>
[JsonProperty(PropertyName = "skuTitle")]
public string SkuTitle { get; set; }

/// <summary>
/// Gets or sets short name for the SKU that is being purchased
/// </summary>
[JsonProperty(PropertyName = "skuDescription")]
public string SkuDescription { get; set; }

/// <summary>
/// Gets or sets amount that Microsoft uses for record. Used during
/// refund for calculating refund limit. Tax is not included.
/// </summary>
[JsonProperty(PropertyName = "pricingCurrencyTotal")]
public CalculatePriceResponsePropertiesPricingCurrencyTotal PricingCurrencyTotal { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ namespace Microsoft.Azure.Management.Reservations.Models
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Currency and amount that customer will be charged in customer's local
/// currency. Tax is not included.
/// </summary>
public partial class CalculatePriceResponsePropertiesBillingCurrencyTotal
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ namespace Microsoft.Azure.Management.Reservations.Models
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Amount that Microsoft uses for record. Used during refund for
/// calculating refund limit. Tax is not included.
/// </summary>
public partial class CalculatePriceResponsePropertiesPricingCurrencyTotal
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public PurchaseRequest()
/// <param name="displayName">Friendly name of the Reservation</param>
/// <param name="appliedScopeType">Possible values include: 'Single',
/// 'Shared'</param>
public PurchaseRequest(SkuName sku = default(SkuName), string location = default(string), string reservedResourceType = default(string), string billingScopeId = default(string), string term = default(string), int? quantity = default(int?), string displayName = default(string), string appliedScopeType = default(string), IList<string> appliedScopes = default(IList<string>), PurchaseRequestPropertiesAdvancedProperties advancedProperties = default(PurchaseRequestPropertiesAdvancedProperties))
/// <param name="reservedResourceProperties">properties specific to
/// each reserved resource type.</param>
public PurchaseRequest(SkuName sku = default(SkuName), string location = default(string), string reservedResourceType = default(string), string billingScopeId = default(string), string term = default(string), int? quantity = default(int?), string displayName = default(string), string appliedScopeType = default(string), IList<string> appliedScopes = default(IList<string>), PurchaseRequestPropertiesReservedResourceProperties reservedResourceProperties = default(PurchaseRequestPropertiesReservedResourceProperties))
{
Sku = sku;
Location = location;
Expand All @@ -50,7 +52,7 @@ public PurchaseRequest()
DisplayName = displayName;
AppliedScopeType = appliedScopeType;
AppliedScopes = appliedScopes;
AdvancedProperties = advancedProperties;
ReservedResourceProperties = reservedResourceProperties;
CustomInit();
}

Expand Down Expand Up @@ -111,9 +113,10 @@ public PurchaseRequest()
public IList<string> AppliedScopes { get; set; }

/// <summary>
/// Gets or sets properties specific to each reserved resource type.
/// </summary>
[JsonProperty(PropertyName = "properties.advancedProperties")]
public PurchaseRequestPropertiesAdvancedProperties AdvancedProperties { get; set; }
[JsonProperty(PropertyName = "properties.reservedResourceProperties")]
public PurchaseRequestPropertiesReservedResourceProperties ReservedResourceProperties { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,27 @@ namespace Microsoft.Azure.Management.Reservations.Models
using Newtonsoft.Json;
using System.Linq;

public partial class PurchaseRequestPropertiesAdvancedProperties
/// <summary>
/// properties specific to each reserved resource type.
/// </summary>
public partial class PurchaseRequestPropertiesReservedResourceProperties
{
/// <summary>
/// Initializes a new instance of the
/// PurchaseRequestPropertiesAdvancedProperties class.
/// PurchaseRequestPropertiesReservedResourceProperties class.
/// </summary>
public PurchaseRequestPropertiesAdvancedProperties()
public PurchaseRequestPropertiesReservedResourceProperties()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// PurchaseRequestPropertiesAdvancedProperties class.
/// PurchaseRequestPropertiesReservedResourceProperties class.
/// </summary>
/// <param name="instanceFlexibility">Possible values include: 'True',
/// 'False'</param>
public PurchaseRequestPropertiesAdvancedProperties(string instanceFlexibility = default(string))
public PurchaseRequestPropertiesReservedResourceProperties(string instanceFlexibility = default(string))
{
InstanceFlexibility = instanceFlexibility;
CustomInit();
Expand Down

0 comments on commit 104706b

Please sign in to comment.