Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoPr-Storage-huizlAzure-REST Spec PrNumber 5547 #5689

Merged
merged 1 commit into from
Apr 10, 2019
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
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()
/// 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