Skip to content

Commit fffd54f

Browse files
adxsdknetdsgouda
authored andcommitted
.NET SDK Resource Provider:'Storage' (#5689)
REST Spec PR 'Azure/azure-rest-api-specs#5547' REST Spec PR Author 'huizlAzure' REST Spec PR Last commit
1 parent 2e226b8 commit fffd54f

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

src/SDKs/Storage/Management.Storage/Generated/Models/Sku.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public Sku()
3636
/// creation; optional for update. Note that in older versions, SKU
3737
/// name was called accountType. Possible values include:
3838
/// 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS',
39-
/// 'Premium_LRS', 'Premium_ZRS'</param>
39+
/// 'Premium_LRS', 'Premium_ZRS', 'Standard_GZRS',
40+
/// 'Standard_RAGZRS'</param>
4041
/// <param name="tier">Gets the SKU tier. This is based on the SKU
4142
/// name. Possible values include: 'Standard', 'Premium'</param>
4243
/// <param name="resourceType">The type of the resource, usually it is
@@ -74,7 +75,7 @@ public Sku()
7475
/// for update. Note that in older versions, SKU name was called
7576
/// accountType. Possible values include: 'Standard_LRS',
7677
/// 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS',
77-
/// 'Premium_ZRS'
78+
/// 'Premium_ZRS', 'Standard_GZRS', 'Standard_RAGZRS'
7879
/// </summary>
7980
[JsonProperty(PropertyName = "name")]
8081
public string Name { get; set; }

src/SDKs/Storage/Management.Storage/Generated/Models/SkuName.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ public static class SkuName
2222
public const string StandardZRS = "Standard_ZRS";
2323
public const string PremiumLRS = "Premium_LRS";
2424
public const string PremiumZRS = "Premium_ZRS";
25+
public const string StandardGZRS = "Standard_GZRS";
26+
public const string StandardRAGZRS = "Standard_RAGZRS";
2527
}
2628
}

src/SDKs/Storage/Management.Storage/Generated/StorageManagementClient.cs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,19 @@ public partial class StorageManagementClient : ServiceClient<StorageManagementCl
109109
/// </summary>
110110
public virtual IBlobContainersOperations BlobContainers { get; private set; }
111111

112+
/// <summary>
113+
/// Initializes a new instance of the StorageManagementClient class.
114+
/// </summary>
115+
/// <param name='httpClient'>
116+
/// HttpClient to be used
117+
/// </param>
118+
/// <param name='disposeHttpClient'>
119+
/// True: will dispose the provided httpClient on calling StorageManagementClient.Dispose(). False: will not dispose provided httpClient</param>
120+
protected StorageManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
121+
{
122+
Initialize();
123+
}
124+
112125
/// <summary>
113126
/// Initializes a new instance of the StorageManagementClient class.
114127
/// </summary>
@@ -204,6 +217,33 @@ public StorageManagementClient(ServiceClientCredentials credentials, params Dele
204217
}
205218
}
206219

220+
/// <summary>
221+
/// Initializes a new instance of the StorageManagementClient class.
222+
/// </summary>
223+
/// <param name='credentials'>
224+
/// Required. Credentials needed for the client to connect to Azure.
225+
/// </param>
226+
/// <param name='httpClient'>
227+
/// HttpClient to be used
228+
/// </param>
229+
/// <param name='disposeHttpClient'>
230+
/// True: will dispose the provided httpClient on calling StorageManagementClient.Dispose(). False: will not dispose provided httpClient</param>
231+
/// <exception cref="System.ArgumentNullException">
232+
/// Thrown when a required parameter is null
233+
/// </exception>
234+
public StorageManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
235+
{
236+
if (credentials == null)
237+
{
238+
throw new System.ArgumentNullException("credentials");
239+
}
240+
Credentials = credentials;
241+
if (Credentials != null)
242+
{
243+
Credentials.InitializeServiceClient(this);
244+
}
245+
}
246+
207247
/// <summary>
208248
/// Initializes a new instance of the StorageManagementClient class.
209249
/// </summary>

0 commit comments

Comments
 (0)