Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Closed
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
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, SubscriptionScopeProperties body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<Properties>> AvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, IList<string> 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, SubscriptionScopeProperties body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<Properties>> BeginAvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, IList<string> 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 @@ -35,7 +35,7 @@ public Catalog()
/// this SKU.</param>
/// <param name="terms">Available reservation terms for this
/// resource</param>
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>))
public Catalog(string resourceType = default(string), string name = default(string), IDictionary<string, IList<string>> billingPlans = default(IDictionary<string, IList<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>))
{
ResourceType = resourceType;
Name = name;
Expand Down Expand Up @@ -68,7 +68,7 @@ public Catalog()
/// Gets or sets the billing plan options available for this SKU.
/// </summary>
[JsonProperty(PropertyName = "billingPlans")]
public CatalogBillingPlansItem BillingPlans { get; set; }
public IDictionary<string, IList<string>> BillingPlans { get; set; }

/// <summary>
/// Gets available reservation terms for this resource
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace Microsoft.Azure.Management.Reservations.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Linq;

public partial class ScopeProperties
Expand All @@ -29,10 +28,7 @@ public ScopeProperties()
/// </summary>
public ScopeProperties(string scope = default(string), bool? valid = default(bool?))
{
Scope = new List<string>
{
scope
};
Scope = scope;
Valid = valid;
CustomInit();
}
Expand All @@ -44,8 +40,8 @@ public ScopeProperties()

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "scopes")]
public List<string> Scope { get; set; }
[JsonProperty(PropertyName = "scope")]
public string Scope { get; set; }

/// <summary>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public SubscriptionScopeProperties()
/// Initializes a new instance of the SubscriptionScopeProperties
/// class.
/// </summary>
public SubscriptionScopeProperties(ScopeProperties scopes = default(ScopeProperties))
public SubscriptionScopeProperties(IList<ScopeProperties> scopes = default(IList<ScopeProperties>))
{
Scopes = scopes;
CustomInit();
Expand All @@ -43,8 +43,8 @@ public SubscriptionScopeProperties()

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "properties")]
public ScopeProperties Scopes { get; set; }
[JsonProperty(PropertyName = "scopes")]
public IList<ScopeProperties> Scopes { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ internal ReservationOperations(AzureReservationAPIClient client)
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public async Task<AzureOperationResponse<Properties>> AvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, SubscriptionScopeProperties body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<Properties>> AvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, IList<string> body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send request
AzureOperationResponse<Properties> _response = await BeginAvailableScopesWithHttpMessagesAsync(reservationOrderId, reservationId, body, customHeaders, cancellationToken).ConfigureAwait(false);
Expand Down Expand Up @@ -760,7 +760,7 @@ internal ReservationOperations(AzureReservationAPIClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<Properties>> BeginAvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, SubscriptionScopeProperties body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<Properties>> BeginAvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, IList<string> body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (reservationOrderId == null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static partial class ReservationOperationsExtensions
/// </param>
/// <param name='body'>
/// </param>
public static Properties AvailableScopes(this IReservationOperations operations, string reservationOrderId, string reservationId, SubscriptionScopeProperties body)
public static Properties AvailableScopes(this IReservationOperations operations, string reservationOrderId, string reservationId, IList<string> body)
{
return operations.AvailableScopesAsync(reservationOrderId, reservationId, body).GetAwaiter().GetResult();
}
Expand All @@ -67,7 +67,7 @@ public static Properties AvailableScopes(this IReservationOperations operations,
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<Properties> AvailableScopesAsync(this IReservationOperations operations, string reservationOrderId, string reservationId, SubscriptionScopeProperties body, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<Properties> AvailableScopesAsync(this IReservationOperations operations, string reservationOrderId, string reservationId, IList<string> body, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.AvailableScopesWithHttpMessagesAsync(reservationOrderId, reservationId, body, null, cancellationToken).ConfigureAwait(false))
{
Expand Down Expand Up @@ -379,7 +379,7 @@ public static IPage<ReservationResponse> ListRevisions(this IReservationOperatio
/// </param>
/// <param name='body'>
/// </param>
public static Properties BeginAvailableScopes(this IReservationOperations operations, string reservationOrderId, string reservationId, SubscriptionScopeProperties body)
public static Properties BeginAvailableScopes(this IReservationOperations operations, string reservationOrderId, string reservationId, IList<string> body)
{
return operations.BeginAvailableScopesAsync(reservationOrderId, reservationId, body).GetAwaiter().GetResult();
}
Expand All @@ -405,7 +405,7 @@ public static Properties BeginAvailableScopes(this IReservationOperations operat
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<Properties> BeginAvailableScopesAsync(this IReservationOperations operations, string reservationOrderId, string reservationId, SubscriptionScopeProperties body, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<Properties> BeginAvailableScopesAsync(this IReservationOperations operations, string reservationOrderId, string reservationId, IList<string> body, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginAvailableScopesWithHttpMessagesAsync(reservationOrderId, reservationId, body, null, cancellationToken).ConfigureAwait(false))
{
Expand Down