Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions eng/mgmt/mgmtmetadata/reservations_resource-manager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/reservations/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\rd\azure-sdk-for-net\sdk
2019-08-29 18:21:06 UTC
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/reservations/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\azure-sdk-for-net\sdk
2019-10-08 04:32:49 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 543e24fb91a603ac8395d767824ad6deddd1d20a
Commit: 5e0762f0cdf27908b6aa3319dec3b384c144fb7c
AutoRest information
Requested version: latest
Bootstrapper version: autorest@2.0.4283
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,8 @@ private void Initialize()
/// Get list of applicable `Reservation`s.
/// </summary>
/// <remarks>
/// Get applicable `Reservation`s that are applied to this subscription.
/// Get applicable `Reservation`s that are applied to this subscription or a
/// resource group under this subscription.
/// </remarks>
/// <param name='subscriptionId'>
/// Id of the subscription
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public static partial class AzureReservationAPIClientExtensions
/// Get list of applicable `Reservation`s.
/// </summary>
/// <remarks>
/// Get applicable `Reservation`s that are applied to this subscription.
/// Get applicable `Reservation`s that are applied to this subscription or a
/// resource group under this subscription.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -94,7 +95,8 @@ public static AppliedReservations GetAppliedReservationList(this IAzureReservati
/// Get list of applicable `Reservation`s.
/// </summary>
/// <remarks>
/// Get applicable `Reservation`s that are applied to this subscription.
/// Get applicable `Reservation`s that are applied to this subscription or a
/// resource group under this subscription.
/// </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 @@ -109,8 +109,8 @@ public partial interface IAzureReservationAPIClient : System.IDisposable
/// Get list of applicable `Reservation`s.
/// </summary>
/// <remarks>
/// Get applicable `Reservation`s that are applied to this
/// subscription.
/// Get applicable `Reservation`s that are applied to this subscription
/// or a resource group under this subscription.
/// </remarks>
/// <param name='subscriptionId'>
/// Id of the subscription
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public partial interface IReservationOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<Properties>> AvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, IList<string> body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<Properties>> AvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, SubscriptionScopeProperties body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Split the `Reservation`.
/// </summary>
Expand Down Expand Up @@ -257,7 +257,7 @@ public partial interface IReservationOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<Properties>> BeginAvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, IList<string> body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<Properties>> BeginAvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, SubscriptionScopeProperties body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Split the `Reservation`.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ public partial interface IReservationOrderOperations
/// <param name='reservationOrderId'>
/// Order Id of the reservation
/// </param>
/// <param name='expand'>
/// May be used to expand the planInformation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
Expand All @@ -124,7 +127,7 @@ public partial interface IReservationOrderOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ReservationOrderResponse>> GetWithHttpMessagesAsync(string reservationOrderId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<ReservationOrderResponse>> GetWithHttpMessagesAsync(string reservationOrderId, string expand = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Purchase `ReservationOrder`
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
namespace Microsoft.Azure.Management.Reservations.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

public partial class CalculatePriceResponseProperties
Expand Down Expand Up @@ -42,14 +44,15 @@ public CalculatePriceResponseProperties()
/// <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))
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), IList<PaymentDetail> paymentSchedule = default(IList<PaymentDetail>))
{
BillingCurrencyTotal = billingCurrencyTotal;
IsBillingPartnerManaged = isBillingPartnerManaged;
ReservationOrderId = reservationOrderId;
SkuTitle = skuTitle;
SkuDescription = skuDescription;
PricingCurrencyTotal = pricingCurrencyTotal;
PaymentSchedule = paymentSchedule;
CustomInit();
}

Expand Down Expand Up @@ -98,5 +101,10 @@ public CalculatePriceResponseProperties()
[JsonProperty(PropertyName = "pricingCurrencyTotal")]
public CalculatePriceResponsePropertiesPricingCurrencyTotal PricingCurrencyTotal { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "paymentSchedule")]
public IList<PaymentDetail> PaymentSchedule { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ public Catalog()
/// <param name="resourceType">The type of resource the SKU applies
/// to.</param>
/// <param name="name">The name of SKU</param>
/// <param name="billingPlans">The billing plan options available for
/// this SKU.</param>
/// <param name="terms">Available reservation terms for this
/// resource</param>
public Catalog(string resourceType = default(string), string name = default(string), IList<string> terms = default(IList<string>), IList<string> locations = default(IList<string>), IList<SkuProperty> skuProperties = default(IList<SkuProperty>), IList<SkuRestriction> restrictions = default(IList<SkuRestriction>))
public Catalog(string resourceType = default(string), string name = default(string), CatalogBillingPlansItem billingPlans = default(CatalogBillingPlansItem), IList<string> terms = default(IList<string>), IList<string> locations = default(IList<string>), IList<SkuProperty> skuProperties = default(IList<SkuProperty>), IList<SkuRestriction> restrictions = default(IList<SkuRestriction>))
{
ResourceType = resourceType;
Name = name;
BillingPlans = billingPlans;
Terms = terms;
Locations = locations;
SkuProperties = skuProperties;
Expand All @@ -61,6 +64,12 @@ public Catalog()
[JsonProperty(PropertyName = "name")]
public string Name { get; private set; }

/// <summary>
/// Gets or sets the billing plan options available for this SKU.
/// </summary>
[JsonProperty(PropertyName = "billingPlans")]
public CatalogBillingPlansItem BillingPlans { get; set; }

/// <summary>
/// Gets available reservation terms for this resource
/// </summary>
Expand Down
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.Collections;
using System.Collections.Generic;
using System.Linq;

public partial class CatalogBillingPlansItem
{
/// <summary>
/// Initializes a new instance of the CatalogBillingPlansItem class.
/// </summary>
public CatalogBillingPlansItem()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the CatalogBillingPlansItem class.
/// </summary>
/// <param name="p1Y"></param>
/// <param name="p3Y"></param>
/// <param name="name"></param>
public CatalogBillingPlansItem(IList<string> p1Y = default(IList<string>), IList<string> p3Y = default(IList<string>), string name = default(string))
{
P1Y = p1Y;
P3Y = p3Y;
Name = name;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets unmatched properties from the message are deserialized
/// this collection
/// </summary>
//[JsonExtensionData]
//public IDictionary<string, IList<string>> AdditionalProperties { get; set; }

/// <summary>
/// Gets or sets the term for the billing SKU is available for.
/// Possible values include: 'P1Y', 'P3Y'
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }

[JsonProperty(PropertyName = "p1Y")]
public IList<string> P1Y { get; set; }

[JsonProperty(PropertyName = "p3Y")]
public IList<string> P3Y { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
// <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 Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Information about payment related to a reservation order.
/// </summary>
public partial class PaymentDetail
{
/// <summary>
/// Initializes a new instance of the PaymentDetail class.
/// </summary>
public PaymentDetail()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the PaymentDetail class.
/// </summary>
/// <param name="dueDate">Date when the payment needs to be
/// done.</param>
/// <param name="paymentDate">Date when the transaction is completed.
/// Is null when it is scheduled.</param>
/// <param name="pricingCurrencyTotal">Amount in pricing currency. Tax
/// not included.</param>
/// <param name="billingCurrencyTotal">Amount charged in Billing
/// currency. Tax not included. Is null for future payments</param>
/// <param name="billingAccount">Shows the Account that is charged for
/// this payment.</param>
/// <param name="status">Possible values include: 'Succeeded',
/// 'Failed', 'Scheduled', 'Cancelled'</param>
public PaymentDetail(System.DateTime? dueDate = default(System.DateTime?), System.DateTime? paymentDate = default(System.DateTime?), Price pricingCurrencyTotal = default(Price), Price billingCurrencyTotal = default(Price), string billingAccount = default(string), string status = default(string), ExtendedStatusInfo extendedStatusInfo = default(ExtendedStatusInfo))
{
DueDate = dueDate;
PaymentDate = paymentDate;
PricingCurrencyTotal = pricingCurrencyTotal;
BillingCurrencyTotal = billingCurrencyTotal;
BillingAccount = billingAccount;
Status = status;
ExtendedStatusInfo = extendedStatusInfo;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets date when the payment needs to be done.
/// </summary>
[JsonConverter(typeof(DateJsonConverter))]
[JsonProperty(PropertyName = "dueDate")]
public System.DateTime? DueDate { get; set; }

/// <summary>
/// Gets or sets date when the transaction is completed. Is null when
/// it is scheduled.
/// </summary>
[JsonConverter(typeof(DateJsonConverter))]
[JsonProperty(PropertyName = "paymentDate")]
public System.DateTime? PaymentDate { get; set; }

/// <summary>
/// Gets or sets amount in pricing currency. Tax not included.
/// </summary>
[JsonProperty(PropertyName = "pricingCurrencyTotal")]
public Price PricingCurrencyTotal { get; set; }

/// <summary>
/// Gets or sets amount charged in Billing currency. Tax not included.
/// Is null for future payments
/// </summary>
[JsonProperty(PropertyName = "billingCurrencyTotal")]
public Price BillingCurrencyTotal { get; set; }

/// <summary>
/// Gets or sets shows the Account that is charged for this payment.
/// </summary>
[JsonProperty(PropertyName = "billingAccount")]
public string BillingAccount { get; set; }

/// <summary>
/// Gets or sets possible values include: 'Succeeded', 'Failed',
/// 'Scheduled', 'Cancelled'
/// </summary>
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }

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

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// <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
{

/// <summary>
/// Defines values for PaymentStatus.
/// </summary>
public static class PaymentStatus
{
public const string Succeeded = "Succeeded";
public const string Failed = "Failed";
public const string Scheduled = "Scheduled";
public const string Cancelled = "Cancelled";
}
}
Loading