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
11 changes: 5 additions & 6 deletions src/SDKs/Storage/Management.Storage/Generated/IOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.Storage
{
using Azure;
using Management;
using Rest;
using Rest.Azure;
using Microsoft.Azure;
using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
Expand Down Expand Up @@ -44,4 +44,3 @@ public partial interface IOperations
Task<AzureOperationResponse<IEnumerable<Operation>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}

47 changes: 47 additions & 0 deletions src/SDKs/Storage/Management.Storage/Generated/ISKUsOperations.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// 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.

namespace Microsoft.Azure.Management.Storage
{
using Microsoft.Azure;
using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// SKUsOperations operations.
/// </summary>
public partial interface ISKUsOperations
{
/// <summary>
/// Lists the available SKUs supported by Microsoft.Storage for given
/// subscription.
/// </summary>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IEnumerable<Sku>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.Storage
{
using Azure;
using Management;
using Rest;
using Rest.Azure;
using Microsoft.Azure;
using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
Expand Down Expand Up @@ -386,4 +386,3 @@ public partial interface IStorageAccountsOperations
Task<AzureOperationResponse<StorageAccount>> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.Storage
{
using Azure;
using Management;
using Rest;
using Rest.Azure;
using Microsoft.Azure;
using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using Newtonsoft.Json;

Expand All @@ -28,12 +28,12 @@ public partial interface IStorageManagementClient : System.IDisposable
/// <summary>
/// Gets or sets json serialization settings.
/// </summary>
Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; }
JsonSerializerSettings SerializationSettings { get; }

/// <summary>
/// Gets or sets json deserialization settings.
/// </summary>
Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; }
JsonSerializerSettings DeserializationSettings { get; }

/// <summary>
/// Credentials needed for the client to connect to Azure.
Expand Down Expand Up @@ -75,6 +75,11 @@ public partial interface IStorageManagementClient : System.IDisposable
/// </summary>
IOperations Operations { get; }

/// <summary>
/// Gets the ISKUsOperations.
/// </summary>
ISKUsOperations SKUs { get; }

/// <summary>
/// Gets the IStorageAccountsOperations.
/// </summary>
Expand All @@ -87,4 +92,3 @@ public partial interface IStorageManagementClient : System.IDisposable

}
}

Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.Storage
{
using Azure;
using Management;
using Rest;
using Rest.Azure;
using Microsoft.Azure;
using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
Expand Down Expand Up @@ -45,4 +45,3 @@ public partial interface IUsageOperations
Task<AzureOperationResponse<IEnumerable<Usage>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}

40 changes: 34 additions & 6 deletions src/SDKs/Storage/Management.Storage/Generated/Models/AccessTier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.Storage.Models
{
using Azure;
using Management;
using Storage;
using Microsoft.Azure;
using Microsoft.Azure.Management;
using Microsoft.Azure.Management.Storage;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Runtime;
Expand All @@ -19,13 +19,41 @@ namespace Microsoft.Azure.Management.Storage.Models
/// <summary>
/// Defines values for AccessTier.
/// </summary>
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
[JsonConverter(typeof(StringEnumConverter))]
public enum AccessTier
{
[EnumMember(Value = "Hot")]
Hot,
[EnumMember(Value = "Cool")]
Cool
}
}
internal static class AccessTierEnumExtension
{
internal static string ToSerializedValue(this AccessTier? value) =>
value == null ? null : ((AccessTier)value).ToSerializedValue();

internal static string ToSerializedValue(this AccessTier value)
{
switch( value )
{
case AccessTier.Hot:
return "Hot";
case AccessTier.Cool:
return "Cool";
}
return null;
}

internal static AccessTier? ParseAccessTier(this string value)
{
switch( value )
{
case "Hot":
return AccessTier.Hot;
case "Cool":
return AccessTier.Cool;
}
return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.Storage.Models
{
using Azure;
using Management;
using Storage;
using Rest;
using Microsoft.Azure;
using Microsoft.Azure.Management;
using Microsoft.Azure.Management.Storage;
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

Expand All @@ -23,7 +23,10 @@ public partial class AccountSasParameters
/// <summary>
/// Initializes a new instance of the AccountSasParameters class.
/// </summary>
public AccountSasParameters() { }
public AccountSasParameters()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the AccountSasParameters class.
Expand Down Expand Up @@ -62,8 +65,14 @@ public AccountSasParameters() { }
SharedAccessStartTime = sharedAccessStartTime;
SharedAccessExpiryTime = sharedAccessExpiryTime;
KeyToSign = keyToSign;
CustomInit();
}

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

/// <summary>
/// Gets or sets the signed services accessible with the account SAS.
/// Possible values include: Blob (b), Queue (q), Table (t), File (f).
Expand Down Expand Up @@ -147,4 +156,3 @@ public virtual void Validate()
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.Storage.Models
{
using Azure;
using Management;
using Storage;
using Microsoft.Azure;
using Microsoft.Azure.Management;
using Microsoft.Azure.Management.Storage;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Runtime;
Expand All @@ -19,13 +19,41 @@ namespace Microsoft.Azure.Management.Storage.Models
/// <summary>
/// Defines values for AccountStatus.
/// </summary>
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
[JsonConverter(typeof(StringEnumConverter))]
public enum AccountStatus
{
[EnumMember(Value = "available")]
Available,
[EnumMember(Value = "unavailable")]
Unavailable
}
}
internal static class AccountStatusEnumExtension
{
internal static string ToSerializedValue(this AccountStatus? value) =>
value == null ? null : ((AccountStatus)value).ToSerializedValue();

internal static string ToSerializedValue(this AccountStatus value)
{
switch( value )
{
case AccountStatus.Available:
return "available";
case AccountStatus.Unavailable:
return "unavailable";
}
return null;
}

internal static AccountStatus? ParseAccountStatus(this string value)
{
switch( value )
{
case "available":
return AccountStatus.Available;
case "unavailable":
return AccountStatus.Unavailable;
}
return null;
}
}
}
Loading