Skip to content

Commit

Permalink
.NET SDK Resource Provider:'Storage'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5547'
REST Spec PR Author 'huizlAzure'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Apr 4, 2019
1 parent 8627629 commit f7d5101
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SDKs/Storage/Management.Storage/Generated/Models/Sku.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public Sku()
/// creation; optional for update. Note that in older versions, SKU
/// name was called accountType. Possible values include:
/// 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS',
/// 'Premium_LRS', 'Premium_ZRS'</param>
/// 'Premium_LRS', 'Premium_ZRS', 'Standard_GZRS',
/// 'Standard_RAGZRS'</param>
/// <param name="tier">Gets the SKU tier. This is based on the SKU
/// name. Possible values include: 'Standard', 'Premium'</param>
/// <param name="resourceType">The type of the resource, usually it is
Expand Down Expand Up @@ -74,7 +75,7 @@ public Sku(string name, SkuTier? tier = default(SkuTier?), string resourceType =
/// for update. Note that in older versions, SKU name was called
/// accountType. Possible values include: 'Standard_LRS',
/// 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS',
/// 'Premium_ZRS'
/// 'Premium_ZRS', 'Standard_GZRS', 'Standard_RAGZRS'
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ public static class SkuName
public const string StandardZRS = "Standard_ZRS";
public const string PremiumLRS = "Premium_LRS";
public const string PremiumZRS = "Premium_ZRS";
public const string StandardGZRS = "Standard_GZRS";
public const string StandardRAGZRS = "Standard_RAGZRS";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ public partial class StorageManagementClient : ServiceClient<StorageManagementCl
/// </summary>
public virtual IBlobContainersOperations BlobContainers { get; private set; }

/// <summary>
/// Initializes a new instance of the StorageManagementClient class.
/// </summary>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling StorageManagementClient.Dispose(). False: will not dispose provided httpClient</param>
protected StorageManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
{
Initialize();
}

/// <summary>
/// Initializes a new instance of the StorageManagementClient class.
/// </summary>
Expand Down Expand Up @@ -204,6 +217,33 @@ public StorageManagementClient(ServiceClientCredentials credentials, params Dele
}
}

/// <summary>
/// Initializes a new instance of the StorageManagementClient class.
/// </summary>
/// <param name='credentials'>
/// Required. Credentials needed for the client to connect to Azure.
/// </param>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling StorageManagementClient.Dispose(). False: will not dispose provided httpClient</param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
public StorageManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
{
if (credentials == null)
{
throw new System.ArgumentNullException("credentials");
}
Credentials = credentials;
if (Credentials != null)
{
Credentials.InitializeServiceClient(this);
}
}

/// <summary>
/// Initializes a new instance of the StorageManagementClient class.
/// </summary>
Expand Down

0 comments on commit f7d5101

Please sign in to comment.