diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperations.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperations.cs
index 07e127c80a455..ca7189f6debce 100644
--- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperations.cs
+++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperations.cs
@@ -313,6 +313,9 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
/// have a key no greater than 128 characters and value no greater than 256
/// characters.
///
+ ///
+ /// Additional properties for Account. Only provided fileds will be updated.
+ ///
///
/// Headers that will be added to request.
///
@@ -334,7 +337,7 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, Sku sku = default(Sku), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, Sku sku = default(Sku), IDictionary tags = default(IDictionary), object properties = default(object), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -372,10 +375,11 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
sku.Validate();
}
CognitiveServicesAccountUpdateParameters parameters = new CognitiveServicesAccountUpdateParameters();
- if (sku != null || tags != null)
+ if (sku != null || tags != null || properties != null)
{
parameters.Sku = sku;
parameters.Tags = tags;
+ parameters.Properties = properties;
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperationsExtensions.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperationsExtensions.cs
index 42ad2feddc721..bd386335f1c68 100644
--- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperationsExtensions.cs
+++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperationsExtensions.cs
@@ -95,9 +95,12 @@ public static CognitiveServicesAccount Create(this IAccountsOperations operation
/// have a key no greater than 128 characters and value no greater than 256
/// characters.
///
- public static CognitiveServicesAccount Update(this IAccountsOperations operations, string resourceGroupName, string accountName, Sku sku = default(Sku), IDictionary tags = default(IDictionary))
+ ///
+ /// Additional properties for Account. Only provided fileds will be updated.
+ ///
+ public static CognitiveServicesAccount Update(this IAccountsOperations operations, string resourceGroupName, string accountName, Sku sku = default(Sku), IDictionary tags = default(IDictionary), object properties = default(object))
{
- return operations.UpdateAsync(resourceGroupName, accountName, sku, tags).GetAwaiter().GetResult();
+ return operations.UpdateAsync(resourceGroupName, accountName, sku, tags, properties).GetAwaiter().GetResult();
}
///
@@ -122,12 +125,15 @@ public static CognitiveServicesAccount Create(this IAccountsOperations operation
/// have a key no greater than 128 characters and value no greater than 256
/// characters.
///
+ ///
+ /// Additional properties for Account. Only provided fileds will be updated.
+ ///
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, Sku sku = default(Sku), IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, Sku sku = default(Sku), IDictionary tags = default(IDictionary), object properties = default(object), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, sku, tags, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, sku, tags, properties, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/IAccountsOperations.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/IAccountsOperations.cs
index 9f106c3b8b20d..1a592939816fb 100644
--- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/IAccountsOperations.cs
+++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/IAccountsOperations.cs
@@ -72,6 +72,10 @@ public partial interface IAccountsOperations
/// a resource. Each tag must have a key no greater than 128 characters
/// and value no greater than 256 characters.
///
+ ///
+ /// Additional properties for Account. Only provided fileds will be
+ /// updated.
+ ///
///
/// The headers that will be added to request.
///
@@ -87,7 +91,7 @@ public partial interface IAccountsOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, Sku sku = default(Sku), IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, Sku sku = default(Sku), IDictionary tags = default(IDictionary), object properties = default(object), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes a Cognitive Services account from the resource group.
///
diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccount.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccount.cs
index 62feef2b340a8..2a060e0925bc9 100644
--- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccount.cs
+++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccount.cs
@@ -47,6 +47,8 @@ public CognitiveServicesAccount()
/// 'Succeeded', 'Failed'
/// Endpoint of the created account.
/// The internal identifier.
+ /// Optional subdomain name used for
+ /// token-based authentication.
/// The SKU of Cognitive Services account.
/// Gets or sets a list of key value pairs that
/// describe the resource. These tags can be used in viewing and
@@ -55,7 +57,7 @@ public CognitiveServicesAccount()
/// greater than 128 characters and value no greater than 256
/// characters.
/// Resource type
- public CognitiveServicesAccount(string etag = default(string), string id = default(string), string kind = default(string), string location = default(string), string name = default(string), string provisioningState = default(string), string endpoint = default(string), string internalId = default(string), Sku sku = default(Sku), IDictionary tags = default(IDictionary), string type = default(string))
+ public CognitiveServicesAccount(string etag = default(string), string id = default(string), string kind = default(string), string location = default(string), string name = default(string), string provisioningState = default(string), string endpoint = default(string), string internalId = default(string), string customSubDomainName = default(string), Sku sku = default(Sku), IDictionary tags = default(IDictionary), string type = default(string))
{
Etag = etag;
Id = id;
@@ -65,6 +67,7 @@ public CognitiveServicesAccount()
ProvisioningState = provisioningState;
Endpoint = endpoint;
InternalId = internalId;
+ CustomSubDomainName = customSubDomainName;
Sku = sku;
Tags = tags;
Type = type;
@@ -126,6 +129,13 @@ public CognitiveServicesAccount()
[JsonProperty(PropertyName = "properties.internalId")]
public string InternalId { get; set; }
+ ///
+ /// Gets or sets optional subdomain name used for token-based
+ /// authentication.
+ ///
+ [JsonProperty(PropertyName = "properties.customSubDomainName")]
+ public string CustomSubDomainName { get; set; }
+
///
/// Gets or sets the SKU of Cognitive Services account.
///
diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccountUpdateParameters.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccountUpdateParameters.cs
index 2e979facb0660..3367287010418 100644
--- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccountUpdateParameters.cs
+++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccountUpdateParameters.cs
@@ -40,10 +40,13 @@ public CognitiveServicesAccountUpdateParameters()
/// tags can be provided for a resource. Each tag must have a key no
/// greater than 128 characters and value no greater than 256
/// characters.
- public CognitiveServicesAccountUpdateParameters(Sku sku = default(Sku), IDictionary tags = default(IDictionary))
+ /// Additional properties for Account. Only
+ /// provided fileds will be updated.
+ public CognitiveServicesAccountUpdateParameters(Sku sku = default(Sku), IDictionary tags = default(IDictionary), object properties = default(object))
{
Sku = sku;
Tags = tags;
+ Properties = properties;
CustomInit();
}
@@ -68,6 +71,13 @@ public CognitiveServicesAccountUpdateParameters()
[JsonProperty(PropertyName = "tags")]
public IDictionary Tags { get; set; }
+ ///
+ /// Gets or sets additional properties for Account. Only provided
+ /// fileds will be updated.
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public object Properties { get; set; }
+
///
/// Validate the object.
///
diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/SdkInfo_CognitiveServicesManagementClient.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/SdkInfo_CognitiveServicesManagementClient.cs
index 4f78150a3d412..14cb92cbea3b2 100644
--- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/SdkInfo_CognitiveServicesManagementClient.cs
+++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/SdkInfo_CognitiveServicesManagementClient.cs
@@ -26,16 +26,5 @@ public static IEnumerable> ApiInfo_CognitiveServic
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "latest";
- public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\Github\\azure-sdk-for-net\\src\\SDKs";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "a5fd13fd813e416fc4500310537491482ad401b3";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-