diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/AccountsOperations.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/AccountsOperations.cs
index 99b0ce294ee0..13330ddc867f 100644
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/AccountsOperations.cs
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/AccountsOperations.cs
@@ -56,7 +56,7 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
/// It's also the resource type for billing.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -91,6 +91,21 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (accountName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
@@ -118,11 +133,28 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
account.Validate();
}
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-04-18";
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -133,7 +165,6 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
tracingParameters.Add("account", account);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters);
}
@@ -144,9 +175,9 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -314,7 +345,7 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
/// Updates a Cognitive Services account
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -349,6 +380,21 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (accountName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
@@ -372,11 +418,28 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "account");
}
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-04-18";
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -387,7 +450,6 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
tracingParameters.Add("account", account);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters);
}
@@ -398,9 +460,9 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -550,7 +612,7 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
/// Deletes a Cognitive Services account from the resource group.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -579,6 +641,21 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (accountName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
@@ -598,11 +675,28 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$");
}
}
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-04-18";
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -612,7 +706,6 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters);
}
@@ -623,9 +716,9 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -733,7 +826,7 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
/// Returns a Cognitive Services account specified by the parameters.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -765,6 +858,21 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (accountName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
@@ -784,11 +892,28 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$");
}
}
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-04-18";
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -798,7 +923,6 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "GetProperties", tracingParameters);
}
@@ -809,9 +933,9 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -938,7 +1062,7 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
/// group
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// Headers that will be added to request.
@@ -967,11 +1091,43 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-04-18";
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -980,7 +1136,6 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters);
}
@@ -990,9 +1145,9 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1140,11 +1295,28 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
///
public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-04-18";
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1152,7 +1324,6 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
}
@@ -1161,9 +1332,9 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1289,7 +1460,7 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
/// Lists the account keys for the specified Cognitive Services account.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -1321,6 +1492,21 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (accountName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
@@ -1340,11 +1526,28 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$");
}
}
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-04-18";
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1354,7 +1557,6 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListKeys", tracingParameters);
}
@@ -1365,9 +1567,9 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1494,7 +1696,7 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
/// account.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -1529,6 +1731,21 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (accountName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
@@ -1548,11 +1765,28 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$");
}
}
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-04-18";
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
RegenerateKeyParameters parameters = new RegenerateKeyParameters();
parameters.KeyName = keyName;
// Tracing
@@ -1564,7 +1798,6 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "RegenerateKey", tracingParameters);
@@ -1576,9 +1809,9 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1710,7 +1943,7 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
/// List available SKUs for the requested Cognitive Services account
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -1742,6 +1975,21 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (accountName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
@@ -1761,11 +2009,28 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$");
}
}
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-04-18";
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1775,7 +2040,6 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListSkus", tracingParameters);
}
@@ -1786,9 +2050,9 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1914,7 +2178,7 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
/// Get usages for the requested Cognitive Services account
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -1951,6 +2215,21 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (accountName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
@@ -1970,11 +2249,28 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$");
}
}
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-04-18";
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1984,7 +2280,6 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("filter", filter);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "GetUsages", tracingParameters);
@@ -1996,9 +2291,9 @@ internal AccountsOperations(CognitiveServicesManagementClient client)
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (filter != null)
{
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/AccountsOperationsExtensions.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/AccountsOperationsExtensions.cs
index f80a1853481d..2cc4e27f8b68 100644
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/AccountsOperationsExtensions.cs
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/AccountsOperationsExtensions.cs
@@ -30,7 +30,7 @@ public static partial class AccountsOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -52,7 +52,7 @@ public static CognitiveServicesAccount Create(this IAccountsOperations operation
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -78,7 +78,7 @@ public static CognitiveServicesAccount Create(this IAccountsOperations operation
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -98,7 +98,7 @@ public static CognitiveServicesAccount Update(this IAccountsOperations operation
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -124,7 +124,7 @@ public static CognitiveServicesAccount Update(this IAccountsOperations operation
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -141,7 +141,7 @@ public static void Delete(this IAccountsOperations operations, string resourceGr
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -161,7 +161,7 @@ public static void Delete(this IAccountsOperations operations, string resourceGr
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -178,7 +178,7 @@ public static CognitiveServicesAccount GetProperties(this IAccountsOperations op
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -202,7 +202,7 @@ public static CognitiveServicesAccount GetProperties(this IAccountsOperations op
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
public static IPage ListByResourceGroup(this IAccountsOperations operations, string resourceGroupName)
{
@@ -217,7 +217,7 @@ public static IPage ListByResourceGroup(this IAccounts
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The cancellation token.
@@ -265,7 +265,7 @@ public static IPage List(this IAccountsOperations oper
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -282,7 +282,7 @@ public static CognitiveServicesAccountKeys ListKeys(this IAccountsOperations ope
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -306,7 +306,7 @@ public static CognitiveServicesAccountKeys ListKeys(this IAccountsOperations ope
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -327,7 +327,7 @@ public static CognitiveServicesAccountKeys RegenerateKey(this IAccountsOperation
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -353,7 +353,7 @@ public static CognitiveServicesAccountKeys RegenerateKey(this IAccountsOperation
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -370,7 +370,7 @@ public static CognitiveServicesAccountEnumerateSkusResult ListSkus(this IAccount
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -393,7 +393,7 @@ public static CognitiveServicesAccountEnumerateSkusResult ListSkus(this IAccount
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -415,7 +415,7 @@ public static CognitiveServicesAccountEnumerateSkusResult ListSkus(this IAccount
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/CognitiveServicesManagementClient.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/CognitiveServicesManagementClient.cs
index 6a61f071cee8..0ac9ed7531cc 100644
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/CognitiveServicesManagementClient.cs
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/CognitiveServicesManagementClient.cs
@@ -49,13 +49,12 @@ public partial class CognitiveServicesManagementClient : ServiceClient
- /// Azure Subscription ID.
+ /// The ID of the target subscription.
///
public string SubscriptionId { get; set; }
///
- /// Version of the API to be used with the client request. Current version is
- /// 2017-04-18
+ /// The API version to use for this operation.
///
public string ApiVersion { get; private set; }
@@ -92,6 +91,16 @@ public partial class CognitiveServicesManagementClient : ServiceClient
public virtual IOperations Operations { get; private set; }
+ ///
+ /// Gets the IPrivateEndpointConnectionsOperations.
+ ///
+ public virtual IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; private set; }
+
+ ///
+ /// Gets the IPrivateLinkResourcesOperations.
+ ///
+ public virtual IPrivateLinkResourcesOperations PrivateLinkResources { get; private set; }
+
///
/// Initializes a new instance of the CognitiveServicesManagementClient class.
///
@@ -336,6 +345,8 @@ private void Initialize()
Accounts = new AccountsOperations(this);
ResourceSkus = new ResourceSkusOperations(this);
Operations = new Operations(this);
+ PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this);
+ PrivateLinkResources = new PrivateLinkResourcesOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2017-04-18";
AcceptLanguage = "en-US";
@@ -411,6 +422,24 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SubscriptionId");
}
+ if (SubscriptionId != null)
+ {
+ if (SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "SubscriptionId", 1);
+ }
+ }
+ if (ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion");
+ }
+ if (ApiVersion != null)
+ {
+ if (ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "ApiVersion", 1);
+ }
+ }
if (location == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "location");
@@ -427,7 +456,6 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "type");
}
- string apiVersion = "2017-04-18";
CheckSkuAvailabilityParameter parameters = new CheckSkuAvailabilityParameter();
if (skus != null || kind != null || type != null)
{
@@ -442,7 +470,6 @@ private void Initialize()
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("location", location);
tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -454,9 +481,9 @@ private void Initialize()
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(SubscriptionId));
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -625,6 +652,24 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SubscriptionId");
}
+ if (SubscriptionId != null)
+ {
+ if (SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "SubscriptionId", 1);
+ }
+ }
+ if (ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion");
+ }
+ if (ApiVersion != null)
+ {
+ if (ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "ApiVersion", 1);
+ }
+ }
if (subdomainName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "subdomainName");
@@ -633,7 +678,6 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "type");
}
- string apiVersion = "2017-04-18";
CheckDomainAvailabilityParameter parameters = new CheckDomainAvailabilityParameter();
if (subdomainName != null || type != null)
{
@@ -647,7 +691,6 @@ private void Initialize()
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "CheckDomainAvailability", tracingParameters);
@@ -657,9 +700,9 @@ private void Initialize()
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/IAccountsOperations.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/IAccountsOperations.cs
index df1a6cc3215c..cdddcd2dad46 100644
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/IAccountsOperations.cs
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/IAccountsOperations.cs
@@ -29,7 +29,7 @@ public partial interface IAccountsOperations
/// intelligent APIs. It's also the resource type for billing.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -57,7 +57,7 @@ public partial interface IAccountsOperations
/// Updates a Cognitive Services account
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -85,7 +85,7 @@ public partial interface IAccountsOperations
/// Deletes a Cognitive Services account from the resource group.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -107,7 +107,7 @@ public partial interface IAccountsOperations
/// Returns a Cognitive Services account specified by the parameters.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -133,7 +133,7 @@ public partial interface IAccountsOperations
/// resource group
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The headers that will be added to request.
@@ -176,7 +176,7 @@ public partial interface IAccountsOperations
/// account.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -202,7 +202,7 @@ public partial interface IAccountsOperations
/// Services account.
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -231,7 +231,7 @@ public partial interface IAccountsOperations
/// List available SKUs for the requested Cognitive Services account
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
@@ -256,7 +256,7 @@ public partial interface IAccountsOperations
/// Get usages for the requested Cognitive Services account
///
///
- /// The name of the resource group within the user's subscription.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of Cognitive Services account.
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/ICognitiveServicesManagementClient.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/ICognitiveServicesManagementClient.cs
index 72a1db034c84..c360894c2c7e 100644
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/ICognitiveServicesManagementClient.cs
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/ICognitiveServicesManagementClient.cs
@@ -45,13 +45,12 @@ public partial interface ICognitiveServicesManagementClient : System.IDisposable
ServiceClientCredentials Credentials { get; }
///
- /// Azure Subscription ID.
+ /// The ID of the target subscription.
///
string SubscriptionId { get; set; }
///
- /// Version of the API to be used with the client request. Current
- /// version is 2017-04-18
+ /// The API version to use for this operation.
///
string ApiVersion { get; }
@@ -89,6 +88,16 @@ public partial interface ICognitiveServicesManagementClient : System.IDisposable
///
IOperations Operations { get; }
+ ///
+ /// Gets the IPrivateEndpointConnectionsOperations.
+ ///
+ IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; }
+
+ ///
+ /// Gets the IPrivateLinkResourcesOperations.
+ ///
+ IPrivateLinkResourcesOperations PrivateLinkResources { get; }
+
///
/// Check available SKUs.
///
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/IPrivateEndpointConnectionsOperations.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/IPrivateEndpointConnectionsOperations.cs
new file mode 100644
index 000000000000..dc88fbdb140f
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/IPrivateEndpointConnectionsOperations.cs
@@ -0,0 +1,117 @@
+//
+// 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.CognitiveServices
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// PrivateEndpointConnectionsOperations operations.
+ ///
+ public partial interface IPrivateEndpointConnectionsOperations
+ {
+ ///
+ /// Gets the specified private endpoint connection associated with the
+ /// Cognitive Services account.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the
+ /// Cognitive Services Account
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Update the state of specified private endpoint connection
+ /// associated with the Cognitive Services account.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the
+ /// Cognitive Services Account
+ ///
+ ///
+ /// The private endpoint connection properties.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string privateEndpointConnectionName, PrivateEndpointConnection properties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes the specified private endpoint connection associated with
+ /// the Cognitive Services account.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the
+ /// Cognitive Services Account
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/IPrivateLinkResourcesOperations.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/IPrivateLinkResourcesOperations.cs
new file mode 100644
index 000000000000..fb3442701fc7
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/IPrivateLinkResourcesOperations.cs
@@ -0,0 +1,53 @@
+//
+// 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.CognitiveServices
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// PrivateLinkResourcesOperations operations.
+ ///
+ public partial interface IPrivateLinkResourcesOperations
+ {
+ ///
+ /// Gets the private link resources that need to be created for a
+ /// Cognitive Services account.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/AzureEntityResource.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/AzureEntityResource.cs
new file mode 100644
index 000000000000..d3d4f48fd874
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/AzureEntityResource.cs
@@ -0,0 +1,59 @@
+//
+// 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.CognitiveServices.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The resource model definition for a Azure Resource Manager resource
+ /// with an etag.
+ ///
+ public partial class AzureEntityResource : Resource
+ {
+ ///
+ /// Initializes a new instance of the AzureEntityResource class.
+ ///
+ public AzureEntityResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AzureEntityResource class.
+ ///
+ /// Fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ /// The name of the resource
+ /// The type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
+ /// Resource Etag.
+ public AzureEntityResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string))
+ : base(id, name, type)
+ {
+ Etag = etag;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets resource Etag.
+ ///
+ [JsonProperty(PropertyName = "etag")]
+ public string Etag { get; private set; }
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccount.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccount.cs
index bdf3c0741a73..bac4e93433aa 100644
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccount.cs
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccount.cs
@@ -143,6 +143,10 @@ public CognitiveServicesAccount()
///
public virtual void Validate()
{
+ if (Properties != null)
+ {
+ Properties.Validate();
+ }
if (Sku != null)
{
Sku.Validate();
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccountApiProperties.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccountApiProperties.cs
index 38644a0544a5..5e36ffd769ed 100644
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccountApiProperties.cs
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccountApiProperties.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.CognitiveServices.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -80,5 +81,36 @@ public CognitiveServicesAccountApiProperties()
[JsonProperty(PropertyName = "storageAccountConnectionString")]
public string StorageAccountConnectionString { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (EventHubConnectionString != null)
+ {
+ if (EventHubConnectionString.Length > 1000)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "EventHubConnectionString", 1000);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(EventHubConnectionString, "^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "EventHubConnectionString", "^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$");
+ }
+ }
+ if (StorageAccountConnectionString != null)
+ {
+ if (StorageAccountConnectionString.Length > 1000)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "StorageAccountConnectionString", 1000);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(StorageAccountConnectionString, "^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "StorageAccountConnectionString", "^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$");
+ }
+ }
+ }
}
}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs
index d765da742422..518ce952293a 100644
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs
@@ -47,9 +47,15 @@ public CognitiveServicesAccountProperties()
/// resource.
/// The storage accounts for this
/// resource.
+ /// The private endpoint
+ /// connection associated with the Cognitive Services account.
+ /// Whether or not public endpoint
+ /// access is allowed for this account. Value is optional but if passed
+ /// in, must be 'Enabled' or 'Disabled'. Possible values include:
+ /// 'Enabled', 'Disabled'
/// The api properties for special
/// APIs.
- public CognitiveServicesAccountProperties(string provisioningState = default(string), string endpoint = default(string), string internalId = default(string), string customSubDomainName = default(string), NetworkRuleSet networkAcls = default(NetworkRuleSet), Encryption encryption = default(Encryption), IList userOwnedStorage = default(IList), CognitiveServicesAccountApiProperties apiProperties = default(CognitiveServicesAccountApiProperties))
+ public CognitiveServicesAccountProperties(string provisioningState = default(string), string endpoint = default(string), string internalId = default(string), string customSubDomainName = default(string), NetworkRuleSet networkAcls = default(NetworkRuleSet), Encryption encryption = default(Encryption), IList userOwnedStorage = default(IList), IList privateEndpointConnections = default(IList), string publicNetworkAccess = default(string), CognitiveServicesAccountApiProperties apiProperties = default(CognitiveServicesAccountApiProperties))
{
ProvisioningState = provisioningState;
Endpoint = endpoint;
@@ -58,6 +64,8 @@ public CognitiveServicesAccountProperties()
NetworkAcls = networkAcls;
Encryption = encryption;
UserOwnedStorage = userOwnedStorage;
+ PrivateEndpointConnections = privateEndpointConnections;
+ PublicNetworkAccess = publicNetworkAccess;
ApiProperties = apiProperties;
CustomInit();
}
@@ -113,11 +121,49 @@ public CognitiveServicesAccountProperties()
[JsonProperty(PropertyName = "userOwnedStorage")]
public IList UserOwnedStorage { get; set; }
+ ///
+ /// Gets or sets the private endpoint connection associated with the
+ /// Cognitive Services account.
+ ///
+ [JsonProperty(PropertyName = "privateEndpointConnections")]
+ public IList PrivateEndpointConnections { get; set; }
+
+ ///
+ /// Gets or sets whether or not public endpoint access is allowed for
+ /// this account. Value is optional but if passed in, must be 'Enabled'
+ /// or 'Disabled'. Possible values include: 'Enabled', 'Disabled'
+ ///
+ [JsonProperty(PropertyName = "publicNetworkAccess")]
+ public string PublicNetworkAccess { get; set; }
+
///
/// Gets or sets the api properties for special APIs.
///
[JsonProperty(PropertyName = "apiProperties")]
public CognitiveServicesAccountApiProperties ApiProperties { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (PrivateEndpointConnections != null)
+ {
+ foreach (var element in PrivateEndpointConnections)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ if (ApiProperties != null)
+ {
+ ApiProperties.Validate();
+ }
+ }
}
}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/IPRule.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/IpRule.cs
similarity index 100%
rename from sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/IPRule.cs
rename to sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/IpRule.cs
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpoint.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpoint.cs
new file mode 100644
index 000000000000..0b31d1bba0fe
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpoint.cs
@@ -0,0 +1,51 @@
+//
+// 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.CognitiveServices.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The Private Endpoint resource.
+ ///
+ public partial class PrivateEndpoint
+ {
+ ///
+ /// Initializes a new instance of the PrivateEndpoint class.
+ ///
+ public PrivateEndpoint()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateEndpoint class.
+ ///
+ /// The ARM identifier for Private Endpoint
+ public PrivateEndpoint(string id = default(string))
+ {
+ Id = id;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the ARM identifier for Private Endpoint
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; private set; }
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpointConnection.cs
new file mode 100644
index 000000000000..3d46b3b349c0
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpointConnection.cs
@@ -0,0 +1,71 @@
+//
+// 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.CognitiveServices.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The Private Endpoint Connection resource.
+ ///
+ public partial class PrivateEndpointConnection : Resource
+ {
+ ///
+ /// Initializes a new instance of the PrivateEndpointConnection class.
+ ///
+ public PrivateEndpointConnection()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateEndpointConnection class.
+ ///
+ /// Fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ /// The name of the resource
+ /// The type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
+ /// Resource properties.
+ public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointConnectionProperties properties = default(PrivateEndpointConnectionProperties))
+ : base(id, name, type)
+ {
+ Properties = properties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets resource properties.
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public PrivateEndpointConnectionProperties Properties { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Properties != null)
+ {
+ Properties.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpointConnectionProperties.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpointConnectionProperties.cs
new file mode 100644
index 000000000000..cb34fd7a1439
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpointConnectionProperties.cs
@@ -0,0 +1,89 @@
+//
+// 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.CognitiveServices.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Properties of the PrivateEndpointConnectProperties.
+ ///
+ public partial class PrivateEndpointConnectionProperties
+ {
+ ///
+ /// Initializes a new instance of the
+ /// PrivateEndpointConnectionProperties class.
+ ///
+ public PrivateEndpointConnectionProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// PrivateEndpointConnectionProperties class.
+ ///
+ /// A collection of
+ /// information about the state of the connection between service
+ /// consumer and provider.
+ /// The resource of private end
+ /// point.
+ /// The private link resource group ids.
+ public PrivateEndpointConnectionProperties(PrivateLinkServiceConnectionState privateLinkServiceConnectionState, PrivateEndpoint privateEndpoint = default(PrivateEndpoint), IList groupIds = default(IList))
+ {
+ PrivateEndpoint = privateEndpoint;
+ PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ GroupIds = groupIds;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the resource of private end point.
+ ///
+ [JsonProperty(PropertyName = "privateEndpoint")]
+ public PrivateEndpoint PrivateEndpoint { get; set; }
+
+ ///
+ /// Gets or sets a collection of information about the state of the
+ /// connection between service consumer and provider.
+ ///
+ [JsonProperty(PropertyName = "privateLinkServiceConnectionState")]
+ public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; }
+
+ ///
+ /// Gets or sets the private link resource group ids.
+ ///
+ [JsonProperty(PropertyName = "groupIds")]
+ public IList GroupIds { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (PrivateLinkServiceConnectionState == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "PrivateLinkServiceConnectionState");
+ }
+ }
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs
new file mode 100644
index 000000000000..3db218c90902
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs
@@ -0,0 +1,24 @@
+//
+// 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.CognitiveServices.Models
+{
+
+ ///
+ /// Defines values for PrivateEndpointServiceConnectionStatus.
+ ///
+ public static class PrivateEndpointServiceConnectionStatus
+ {
+ public const string Pending = "Pending";
+ public const string Approved = "Approved";
+ public const string Rejected = "Rejected";
+ public const string Disconnected = "Disconnected";
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkResource.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkResource.cs
new file mode 100644
index 000000000000..e20747e80969
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkResource.cs
@@ -0,0 +1,58 @@
+//
+// 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.CognitiveServices.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A private link resource
+ ///
+ public partial class PrivateLinkResource : Resource
+ {
+ ///
+ /// Initializes a new instance of the PrivateLinkResource class.
+ ///
+ public PrivateLinkResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateLinkResource class.
+ ///
+ /// Fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ /// The name of the resource
+ /// The type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
+ /// Resource properties.
+ public PrivateLinkResource(string id = default(string), string name = default(string), string type = default(string), PrivateLinkResourceProperties properties = default(PrivateLinkResourceProperties))
+ : base(id, name, type)
+ {
+ Properties = properties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets resource properties.
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public PrivateLinkResourceProperties Properties { get; set; }
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkResourceListResult.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkResourceListResult.cs
new file mode 100644
index 000000000000..abfda2212134
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkResourceListResult.cs
@@ -0,0 +1,55 @@
+//
+// 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.CognitiveServices.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// A list of private link resources
+ ///
+ public partial class PrivateLinkResourceListResult
+ {
+ ///
+ /// Initializes a new instance of the PrivateLinkResourceListResult
+ /// class.
+ ///
+ public PrivateLinkResourceListResult()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateLinkResourceListResult
+ /// class.
+ ///
+ /// Array of private link resources
+ public PrivateLinkResourceListResult(IList value = default(IList))
+ {
+ Value = value;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets array of private link resources
+ ///
+ [JsonProperty(PropertyName = "value")]
+ public IList Value { get; set; }
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkResourceProperties.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkResourceProperties.cs
new file mode 100644
index 000000000000..f74fa4bf25dc
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkResourceProperties.cs
@@ -0,0 +1,82 @@
+//
+// 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.CognitiveServices.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Properties of a private link resource.
+ ///
+ public partial class PrivateLinkResourceProperties
+ {
+ ///
+ /// Initializes a new instance of the PrivateLinkResourceProperties
+ /// class.
+ ///
+ public PrivateLinkResourceProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateLinkResourceProperties
+ /// class.
+ ///
+ /// The private link resource group id.
+ /// The private link resource display
+ /// name.
+ /// The private link resource required
+ /// member names.
+ /// The private link resource Private
+ /// link DNS zone name.
+ public PrivateLinkResourceProperties(string groupId = default(string), string displayName = default(string), IList requiredMembers = default(IList), IList requiredZoneNames = default(IList))
+ {
+ GroupId = groupId;
+ DisplayName = displayName;
+ RequiredMembers = requiredMembers;
+ RequiredZoneNames = requiredZoneNames;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the private link resource group id.
+ ///
+ [JsonProperty(PropertyName = "groupId")]
+ public string GroupId { get; private set; }
+
+ ///
+ /// Gets the private link resource display name.
+ ///
+ [JsonProperty(PropertyName = "displayName")]
+ public string DisplayName { get; private set; }
+
+ ///
+ /// Gets the private link resource required member names.
+ ///
+ [JsonProperty(PropertyName = "requiredMembers")]
+ public IList RequiredMembers { get; private set; }
+
+ ///
+ /// Gets or sets the private link resource Private link DNS zone name.
+ ///
+ [JsonProperty(PropertyName = "requiredZoneNames")]
+ public IList RequiredZoneNames { get; set; }
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkServiceConnectionState.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkServiceConnectionState.cs
new file mode 100644
index 000000000000..f47e7b1785a3
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PrivateLinkServiceConnectionState.cs
@@ -0,0 +1,78 @@
+//
+// 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.CognitiveServices.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A collection of information about the state of the connection between
+ /// service consumer and provider.
+ ///
+ public partial class PrivateLinkServiceConnectionState
+ {
+ ///
+ /// Initializes a new instance of the PrivateLinkServiceConnectionState
+ /// class.
+ ///
+ public PrivateLinkServiceConnectionState()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateLinkServiceConnectionState
+ /// class.
+ ///
+ /// Indicates whether the connection has been
+ /// Approved/Rejected/Removed by the owner of the service. Possible
+ /// values include: 'Pending', 'Approved', 'Rejected',
+ /// 'Disconnected'
+ /// The reason for approval/rejection of the
+ /// connection.
+ /// A message indicating if changes on the
+ /// service provider require any updates on the consumer.
+ public PrivateLinkServiceConnectionState(string status = default(string), string description = default(string), string actionRequired = default(string))
+ {
+ Status = status;
+ Description = description;
+ ActionRequired = actionRequired;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets indicates whether the connection has been
+ /// Approved/Rejected/Removed by the owner of the service. Possible
+ /// values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public string Status { get; set; }
+
+ ///
+ /// Gets or sets the reason for approval/rejection of the connection.
+ ///
+ [JsonProperty(PropertyName = "description")]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or sets a message indicating if changes on the service
+ /// provider require any updates on the consumer.
+ ///
+ [JsonProperty(PropertyName = "actionRequired")]
+ public string ActionRequired { get; set; }
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/ProxyResource.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/ProxyResource.cs
new file mode 100644
index 000000000000..82855a45ea04
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/ProxyResource.cs
@@ -0,0 +1,50 @@
+//
+// 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.CognitiveServices.Models
+{
+ using System.Linq;
+
+ ///
+ /// The resource model definition for a ARM proxy resource. It will have
+ /// everything other than required location and tags
+ ///
+ public partial class ProxyResource : Resource
+ {
+ ///
+ /// Initializes a new instance of the ProxyResource class.
+ ///
+ public ProxyResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ProxyResource class.
+ ///
+ /// Fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ /// The name of the resource
+ /// The type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
+ public ProxyResource(string id = default(string), string name = default(string), string type = default(string))
+ : base(id, name, type)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PublicNetworkAccess.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PublicNetworkAccess.cs
new file mode 100644
index 000000000000..fe891ce2d0d6
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/PublicNetworkAccess.cs
@@ -0,0 +1,22 @@
+//
+// 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.CognitiveServices.Models
+{
+
+ ///
+ /// Defines values for PublicNetworkAccess.
+ ///
+ public static class PublicNetworkAccess
+ {
+ public const string Enabled = "Enabled";
+ public const string Disabled = "Disabled";
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/Resource.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/Resource.cs
new file mode 100644
index 000000000000..da7056a32edc
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/Resource.cs
@@ -0,0 +1,72 @@
+//
+// 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.CognitiveServices.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ public partial class Resource : IResource
+ {
+ ///
+ /// Initializes a new instance of the Resource class.
+ ///
+ public Resource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Resource class.
+ ///
+ /// Fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ /// The name of the resource
+ /// The type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
+ public Resource(string id = default(string), string name = default(string), string type = default(string))
+ {
+ Id = id;
+ Name = name;
+ Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; private set; }
+
+ ///
+ /// Gets the name of the resource
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; private set; }
+
+ ///
+ /// Gets the type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; private set; }
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/TrackedResource.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/TrackedResource.cs
new file mode 100644
index 000000000000..9427f61e32c1
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Models/TrackedResource.cs
@@ -0,0 +1,83 @@
+//
+// 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.CognitiveServices.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The resource model definition for a ARM tracked top level resource
+ ///
+ public partial class TrackedResource : Resource
+ {
+ ///
+ /// Initializes a new instance of the TrackedResource class.
+ ///
+ public TrackedResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the TrackedResource class.
+ ///
+ /// The geo-location where the resource
+ /// lives
+ /// Fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ /// The name of the resource
+ /// The type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
+ /// Resource tags.
+ public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary))
+ : base(id, name, type)
+ {
+ Tags = tags;
+ Location = location;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets resource tags.
+ ///
+ [JsonProperty(PropertyName = "tags")]
+ public IDictionary Tags { get; set; }
+
+ ///
+ /// Gets or sets the geo-location where the resource lives
+ ///
+ [JsonProperty(PropertyName = "location")]
+ public string Location { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Location");
+ }
+ }
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Operations.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Operations.cs
index 097bce3c221a..911f742eeb78 100644
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Operations.cs
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/Operations.cs
@@ -65,12 +65,28 @@ internal Operations(CognitiveServicesManagementClient client)
///
/// Thrown when unable to deserialize the response
///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
///
/// A response object containing the response body and response headers.
///
public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- string apiVersion = "2017-04-18";
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -78,7 +94,6 @@ internal Operations(CognitiveServicesManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
}
@@ -86,9 +101,9 @@ internal Operations(CognitiveServicesManagementClient client)
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.CognitiveServices/operations").ToString();
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateEndpointConnectionsOperations.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateEndpointConnectionsOperations.cs
new file mode 100644
index 000000000000..c59c62071fe0
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateEndpointConnectionsOperations.cs
@@ -0,0 +1,804 @@
+//
+// 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.CognitiveServices
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// PrivateEndpointConnectionsOperations operations.
+ ///
+ internal partial class PrivateEndpointConnectionsOperations : IServiceOperations, IPrivateEndpointConnectionsOperations
+ {
+ ///
+ /// Initializes a new instance of the PrivateEndpointConnectionsOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal PrivateEndpointConnectionsOperations(CognitiveServicesManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the CognitiveServicesManagementClient
+ ///
+ public CognitiveServicesManagementClient Client { get; private set; }
+
+ ///
+ /// Gets the specified private endpoint connection associated with the
+ /// Cognitive Services account.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the Cognitive
+ /// Services Account
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ if (accountName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
+ }
+ if (accountName != null)
+ {
+ if (accountName.Length > 64)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "accountName", 64);
+ }
+ if (accountName.Length < 2)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "accountName", 2);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$");
+ }
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ if (privateEndpointConnectionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "privateEndpointConnectionName");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("accountName", accountName);
+ tracingParameters.Add("privateEndpointConnectionName", privateEndpointConnectionName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{privateEndpointConnectionName}", System.Uri.EscapeDataString(privateEndpointConnectionName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Update the state of specified private endpoint connection associated with
+ /// the Cognitive Services account.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the Cognitive
+ /// Services Account
+ ///
+ ///
+ /// The private endpoint connection properties.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string privateEndpointConnectionName, PrivateEndpointConnection properties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ if (accountName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
+ }
+ if (accountName != null)
+ {
+ if (accountName.Length > 64)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "accountName", 64);
+ }
+ if (accountName.Length < 2)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "accountName", 2);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$");
+ }
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ if (privateEndpointConnectionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "privateEndpointConnectionName");
+ }
+ if (properties == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "properties");
+ }
+ if (properties != null)
+ {
+ properties.Validate();
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("accountName", accountName);
+ tracingParameters.Add("privateEndpointConnectionName", privateEndpointConnectionName);
+ tracingParameters.Add("properties", properties);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{privateEndpointConnectionName}", System.Uri.EscapeDataString(privateEndpointConnectionName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(properties != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(properties, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Deletes the specified private endpoint connection associated with the
+ /// Cognitive Services account.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the Cognitive
+ /// Services Account
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ if (accountName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
+ }
+ if (accountName != null)
+ {
+ if (accountName.Length > 64)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "accountName", 64);
+ }
+ if (accountName.Length < 2)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "accountName", 2);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$");
+ }
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ if (privateEndpointConnectionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "privateEndpointConnectionName");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("accountName", accountName);
+ tracingParameters.Add("privateEndpointConnectionName", privateEndpointConnectionName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{privateEndpointConnectionName}", System.Uri.EscapeDataString(privateEndpointConnectionName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("DELETE");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200 && (int)_statusCode != 204)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateEndpointConnectionsOperationsExtensions.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateEndpointConnectionsOperationsExtensions.cs
new file mode 100644
index 000000000000..25f03d61a281
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateEndpointConnectionsOperationsExtensions.cs
@@ -0,0 +1,178 @@
+//
+// 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.CognitiveServices
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for PrivateEndpointConnectionsOperations.
+ ///
+ public static partial class PrivateEndpointConnectionsOperationsExtensions
+ {
+ ///
+ /// Gets the specified private endpoint connection associated with the
+ /// Cognitive Services account.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the Cognitive
+ /// Services Account
+ ///
+ public static PrivateEndpointConnection Get(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string privateEndpointConnectionName)
+ {
+ return operations.GetAsync(resourceGroupName, accountName, privateEndpointConnectionName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets the specified private endpoint connection associated with the
+ /// Cognitive Services account.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the Cognitive
+ /// Services Account
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Update the state of specified private endpoint connection associated with
+ /// the Cognitive Services account.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the Cognitive
+ /// Services Account
+ ///
+ ///
+ /// The private endpoint connection properties.
+ ///
+ public static PrivateEndpointConnection CreateOrUpdate(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string privateEndpointConnectionName, PrivateEndpointConnection properties)
+ {
+ return operations.CreateOrUpdateAsync(resourceGroupName, accountName, privateEndpointConnectionName, properties).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Update the state of specified private endpoint connection associated with
+ /// the Cognitive Services account.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the Cognitive
+ /// Services Account
+ ///
+ ///
+ /// The private endpoint connection properties.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CreateOrUpdateAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string privateEndpointConnectionName, PrivateEndpointConnection properties, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, accountName, privateEndpointConnectionName, properties, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Deletes the specified private endpoint connection associated with the
+ /// Cognitive Services account.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the Cognitive
+ /// Services Account
+ ///
+ public static void Delete(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string privateEndpointConnectionName)
+ {
+ operations.DeleteAsync(resourceGroupName, accountName, privateEndpointConnectionName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Deletes the specified private endpoint connection associated with the
+ /// Cognitive Services account.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The name of the private endpoint connection associated with the Cognitive
+ /// Services Account
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task DeleteAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateLinkResourcesOperations.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateLinkResourcesOperations.cs
new file mode 100644
index 000000000000..ec86daeb0404
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateLinkResourcesOperations.cs
@@ -0,0 +1,295 @@
+//
+// 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.CognitiveServices
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// PrivateLinkResourcesOperations operations.
+ ///
+ internal partial class PrivateLinkResourcesOperations : IServiceOperations, IPrivateLinkResourcesOperations
+ {
+ ///
+ /// Initializes a new instance of the PrivateLinkResourcesOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal PrivateLinkResourcesOperations(CognitiveServicesManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the CognitiveServicesManagementClient
+ ///
+ public CognitiveServicesManagementClient Client { get; private set; }
+
+ ///
+ /// Gets the private link resources that need to be created for a Cognitive
+ /// Services account.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ if (accountName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
+ }
+ if (accountName != null)
+ {
+ if (accountName.Length > 64)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "accountName", 64);
+ }
+ if (accountName.Length < 2)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "accountName", 2);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$");
+ }
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("accountName", accountName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateLinkResources").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateLinkResourcesOperationsExtensions.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateLinkResourcesOperationsExtensions.cs
new file mode 100644
index 000000000000..a4f86c4f14e1
--- /dev/null
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/PrivateLinkResourcesOperationsExtensions.cs
@@ -0,0 +1,67 @@
+//
+// 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.CognitiveServices
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for PrivateLinkResourcesOperations.
+ ///
+ public static partial class PrivateLinkResourcesOperationsExtensions
+ {
+ ///
+ /// Gets the private link resources that need to be created for a Cognitive
+ /// Services account.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ public static PrivateLinkResourceListResult List(this IPrivateLinkResourcesOperations operations, string resourceGroupName, string accountName)
+ {
+ return operations.ListAsync(resourceGroupName, accountName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets the private link resources that need to be created for a Cognitive
+ /// Services account.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of Cognitive Services account.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListAsync(this IPrivateLinkResourcesOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/ResourceSkusOperations.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/ResourceSkusOperations.cs
index 11b3ecd33dd3..29227fb57ffc 100644
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/ResourceSkusOperations.cs
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/ResourceSkusOperations.cs
@@ -77,11 +77,28 @@ internal ResourceSkusOperations(CognitiveServicesManagementClient client)
///
public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-04-18";
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -89,7 +106,6 @@ internal ResourceSkusOperations(CognitiveServicesManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
}
@@ -98,9 +114,9 @@ internal ResourceSkusOperations(CognitiveServicesManagementClient client)
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (apiVersion != null)
+ if (Client.ApiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/SdkInfo_CognitiveServicesManagementClient.cs b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/SdkInfo_CognitiveServicesManagementClient.cs
index 6cb899bd50ac..20770fa6cc88 100644
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/SdkInfo_CognitiveServicesManagementClient.cs
+++ b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/SdkInfo_CognitiveServicesManagementClient.cs
@@ -19,20 +19,15 @@ public static IEnumerable> ApiInfo_CognitiveServic
{
return new Tuple[]
{
-
+ new Tuple("CognitiveServices", "Accounts", "2017-04-18"),
+ new Tuple("CognitiveServices", "CheckDomainAvailability", "2017-04-18"),
+ new Tuple("CognitiveServices", "CheckSkuAvailability", "2017-04-18"),
+ new Tuple("CognitiveServices", "Operations", "2017-04-18"),
+ new Tuple("CognitiveServices", "PrivateEndpointConnections", "2017-04-18"),
+ new Tuple("CognitiveServices", "PrivateLinkResources", "2017-04-18"),
+ new Tuple("CognitiveServices", "ResourceSkus", "2017-04-18"),
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "latest";
- public static readonly String AutoRestBootStrapperVersion = "autorest@3.0.6187";
- 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\\sdk";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "f0e5030929b9bbeacc13249c309b5b14cbbdedef";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-
diff --git a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/code-model-v1 b/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/code-model-v1
deleted file mode 100644
index 0451e4e56397..000000000000
--- a/sdk/cognitiveservices/Microsoft.Azure.Management.CognitiveServices/src/Generated/code-model-v1
+++ /dev/null
@@ -1,10181 +0,0 @@
-{
- "$id": "1",
- "modelTypes": [
- {
- "$id": "2",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "3",
- "isReadOnly": false,
- "realPath": [
- "isSubdomainAvailable"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "4",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "5",
- "fixed": false,
- "raw": "Indicates the given SKU is available or not."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "6",
- "fixed": false,
- "raw": "isSubdomainAvailable"
- },
- "serializedName": "isSubdomainAvailable",
- "modelType": {
- "$id": "7",
- "$type": "PrimaryType",
- "knownPrimaryType": "boolean",
- "name": {
- "$id": "8",
- "fixed": false,
- "raw": "Boolean"
- },
- "deprecated": false
- }
- },
- {
- "$id": "9",
- "isReadOnly": false,
- "realPath": [
- "reason"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "10",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "11",
- "fixed": false,
- "raw": "Reason why the SKU is not available."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "12",
- "fixed": false,
- "raw": "reason"
- },
- "serializedName": "reason",
- "modelType": {
- "$id": "13",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "14",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "15",
- "isReadOnly": false,
- "realPath": [
- "subdomainName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "16",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "17",
- "fixed": false,
- "raw": "The subdomain name to use."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "18",
- "fixed": false,
- "raw": "subdomainName"
- },
- "serializedName": "subdomainName",
- "modelType": {
- "$id": "19",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "20",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "21",
- "isReadOnly": false,
- "realPath": [
- "type"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "22",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "23",
- "fixed": false,
- "raw": "The Type of the resource."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "24",
- "fixed": false,
- "raw": "type"
- },
- "serializedName": "type",
- "modelType": {
- "$id": "25",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "26",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "CheckDomainAvailabilityResult",
- "documentation": "Check Domain availability result.",
- "containsConstantProperties": false,
- "name": {
- "$id": "27",
- "fixed": false,
- "raw": "CheckDomainAvailabilityResult"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CheckDomainAvailabilityResult",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CheckDomainAvailabilityResult"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "28",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "29",
- "isReadOnly": false,
- "realPath": [
- "value"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "30",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "31",
- "fixed": false,
- "raw": "An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78)."
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "32",
- "fixed": false,
- "raw": "value"
- },
- "serializedName": "value",
- "modelType": {
- "$id": "33",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "34",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "IpRule",
- "documentation": "A rule governing the accessibility from a specific ip address or ip range.",
- "containsConstantProperties": false,
- "name": {
- "$id": "35",
- "fixed": false,
- "raw": "IpRule"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "IpRule",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/IpRule"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "36",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "37",
- "isReadOnly": false,
- "realPath": [
- "id"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "38",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "39",
- "fixed": false,
- "raw": "Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'."
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "40",
- "fixed": false,
- "raw": "id"
- },
- "serializedName": "id",
- "modelType": {
- "$id": "41",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "42",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "43",
- "isReadOnly": false,
- "realPath": [
- "state"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "44",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "45",
- "fixed": false,
- "raw": "Gets the state of virtual network rule."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "46",
- "fixed": false,
- "raw": "state"
- },
- "serializedName": "state",
- "modelType": {
- "$id": "47",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "48",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "49",
- "isReadOnly": false,
- "realPath": [
- "ignoreMissingVnetServiceEndpoint"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "50",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "51",
- "fixed": false,
- "raw": "Ignore missing vnet service endpoint or not."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "52",
- "fixed": false,
- "raw": "ignoreMissingVnetServiceEndpoint"
- },
- "serializedName": "ignoreMissingVnetServiceEndpoint",
- "modelType": {
- "$id": "53",
- "$type": "PrimaryType",
- "knownPrimaryType": "boolean",
- "name": {
- "$id": "54",
- "fixed": false,
- "raw": "Boolean"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "VirtualNetworkRule",
- "documentation": "A rule governing the accessibility from a specific virtual network.",
- "containsConstantProperties": false,
- "name": {
- "$id": "55",
- "fixed": false,
- "raw": "VirtualNetworkRule"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "VirtualNetworkRule",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/VirtualNetworkRule"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "56",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "57",
- "isReadOnly": false,
- "realPath": [
- "defaultAction"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "58",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "59",
- "fixed": false,
- "raw": "The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "NetworkRuleAction",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/NetworkRuleSet-defaultAction"
- ]
- },
- "x-ms-enum": {
- "name": "NetworkRuleAction",
- "modelAsString": true,
- "oldModelAsString": true
- }
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "60",
- "fixed": false,
- "raw": "defaultAction"
- },
- "serializedName": "defaultAction",
- "modelType": {
- "$id": "61",
- "$type": "EnumType",
- "values": [
- {
- "$id": "62",
- "name": "Allow",
- "serializedName": "Allow"
- },
- {
- "$id": "63",
- "name": "Deny",
- "serializedName": "Deny"
- }
- ],
- "oldModelAsString": true,
- "modelAsString": true,
- "underlyingType": {
- "$id": "64",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "65",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "66",
- "fixed": false,
- "raw": "NetworkRuleAction"
- },
- "deprecated": false
- }
- },
- {
- "$id": "67",
- "isReadOnly": false,
- "realPath": [
- "ipRules"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "68",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "69",
- "fixed": false,
- "raw": "The list of IP address rules."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "70",
- "fixed": false,
- "raw": "ipRules"
- },
- "serializedName": "ipRules",
- "modelType": {
- "$id": "71",
- "$type": "SequenceType",
- "elementType": {
- "$ref": "28"
- },
- "name": {
- "$id": "72",
- "fixed": false
- },
- "deprecated": false
- }
- },
- {
- "$id": "73",
- "isReadOnly": false,
- "realPath": [
- "virtualNetworkRules"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "74",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "75",
- "fixed": false,
- "raw": "The list of virtual network rules."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "76",
- "fixed": false,
- "raw": "virtualNetworkRules"
- },
- "serializedName": "virtualNetworkRules",
- "modelType": {
- "$id": "77",
- "$type": "SequenceType",
- "elementType": {
- "$ref": "36"
- },
- "name": {
- "$id": "78",
- "fixed": false
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "NetworkRuleSet",
- "documentation": "A set of rules governing the network accessibility.",
- "containsConstantProperties": false,
- "name": {
- "$id": "79",
- "fixed": false,
- "raw": "NetworkRuleSet"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "NetworkRuleSet",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/NetworkRuleSet"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "80",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "81",
- "isReadOnly": false,
- "realPath": [
- "keyName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "82",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "83",
- "fixed": false,
- "raw": "Name of the Key from KeyVault"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "84",
- "fixed": false,
- "raw": "keyName"
- },
- "serializedName": "keyName",
- "modelType": {
- "$id": "85",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "86",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "87",
- "isReadOnly": false,
- "realPath": [
- "keyVersion"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "88",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "89",
- "fixed": false,
- "raw": "Version of the Key from KeyVault"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "90",
- "fixed": false,
- "raw": "keyVersion"
- },
- "serializedName": "keyVersion",
- "modelType": {
- "$id": "91",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "92",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "93",
- "isReadOnly": false,
- "realPath": [
- "keyVaultUri"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "94",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "95",
- "fixed": false,
- "raw": "Uri of KeyVault"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "96",
- "fixed": false,
- "raw": "keyVaultUri"
- },
- "serializedName": "keyVaultUri",
- "modelType": {
- "$id": "97",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "98",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "KeyVaultProperties",
- "documentation": "Properties to configure keyVault Properties",
- "containsConstantProperties": false,
- "name": {
- "$id": "99",
- "fixed": false,
- "raw": "KeyVaultProperties"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "KeyVaultProperties",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/KeyVaultProperties"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "100",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "101",
- "isReadOnly": false,
- "realPath": [
- "keyVaultProperties"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "102",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "103",
- "fixed": false,
- "raw": "Properties of KeyVault"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "104",
- "fixed": false,
- "raw": "keyVaultProperties"
- },
- "serializedName": "keyVaultProperties",
- "modelType": {
- "$ref": "80"
- }
- },
- {
- "$id": "105",
- "isReadOnly": false,
- "realPath": [
- "keySource"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "106",
- "fixed": false,
- "raw": "Microsoft.KeyVault"
- },
- "deprecated": false,
- "documentation": {
- "$id": "107",
- "fixed": false,
- "raw": "Enumerates the possible value of keySource for Encryption"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "keySource",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/Encryption-keySource"
- ]
- },
- "x-ms-enum": {
- "name": "keySource",
- "modelAsString": true,
- "oldModelAsString": true
- }
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "108",
- "fixed": false,
- "raw": "keySource"
- },
- "serializedName": "keySource",
- "modelType": {
- "$id": "109",
- "$type": "EnumType",
- "values": [
- {
- "$id": "110",
- "name": "Microsoft.CognitiveServices",
- "serializedName": "Microsoft.CognitiveServices"
- },
- {
- "$id": "111",
- "name": "Microsoft.KeyVault",
- "serializedName": "Microsoft.KeyVault"
- }
- ],
- "oldModelAsString": true,
- "modelAsString": true,
- "underlyingType": {
- "$id": "112",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "113",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "114",
- "fixed": false,
- "raw": "keySource"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "Encryption",
- "documentation": "Properties to configure Encryption",
- "containsConstantProperties": false,
- "name": {
- "$id": "115",
- "fixed": false,
- "raw": "Encryption"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "Encryption",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/Encryption"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "116",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "117",
- "isReadOnly": false,
- "realPath": [
- "resourceId"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "118",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "119",
- "fixed": false,
- "raw": "Full resource id of a Microsoft.Storage resource."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "120",
- "fixed": false,
- "raw": "resourceId"
- },
- "serializedName": "resourceId",
- "modelType": {
- "$id": "121",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "122",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "UserOwnedStorage",
- "documentation": "The user owned storage for Cognitive Services account.",
- "containsConstantProperties": false,
- "name": {
- "$id": "123",
- "fixed": false,
- "raw": "UserOwnedStorage"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "UserOwnedStorage",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/UserOwnedStorage"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "124",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "125",
- "isReadOnly": false,
- "realPath": [
- "qnaRuntimeEndpoint"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "126",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "127",
- "fixed": false,
- "raw": "(QnAMaker Only) The runtime endpoint of QnAMaker."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "128",
- "fixed": false,
- "raw": "qnaRuntimeEndpoint"
- },
- "serializedName": "qnaRuntimeEndpoint",
- "modelType": {
- "$id": "129",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "130",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "131",
- "isReadOnly": false,
- "realPath": [
- "statisticsEnabled"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "132",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "133",
- "fixed": false,
- "raw": "(Bing Search Only) The flag to enable statistics of Bing Search."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "134",
- "fixed": false,
- "raw": "statisticsEnabled"
- },
- "serializedName": "statisticsEnabled",
- "modelType": {
- "$id": "135",
- "$type": "PrimaryType",
- "knownPrimaryType": "boolean",
- "name": {
- "$id": "136",
- "fixed": false,
- "raw": "Boolean"
- },
- "deprecated": false
- }
- },
- {
- "$id": "137",
- "isReadOnly": false,
- "realPath": [
- "eventHubConnectionString"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "138",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "139",
- "fixed": false,
- "raw": "(Personalization Only) The flag to enable statistics of Bing Search."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "140",
- "fixed": false,
- "raw": "eventHubConnectionString"
- },
- "serializedName": "eventHubConnectionString",
- "modelType": {
- "$id": "141",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "142",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "143",
- "isReadOnly": false,
- "realPath": [
- "storageAccountConnectionString"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "144",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "145",
- "fixed": false,
- "raw": "(Personalization Only) The storage account connection string."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "146",
- "fixed": false,
- "raw": "storageAccountConnectionString"
- },
- "serializedName": "storageAccountConnectionString",
- "modelType": {
- "$id": "147",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "148",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "CognitiveServicesAccountApiProperties",
- "documentation": "The api properties for special APIs.",
- "containsConstantProperties": false,
- "name": {
- "$id": "149",
- "fixed": false,
- "raw": "CognitiveServicesAccountApiProperties"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CognitiveServicesAccountApiProperties",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CognitiveServicesAccountApiProperties"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "150",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "151",
- "isReadOnly": true,
- "realPath": [
- "provisioningState"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "152",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "153",
- "fixed": false,
- "raw": "Gets the status of the cognitive services account at the time the operation was called."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "ProvisioningState",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CognitiveServicesAccountProperties-provisioningState"
- ]
- },
- "x-ms-enum": {
- "name": "ProvisioningState",
- "modelAsString": true,
- "oldModelAsString": true
- }
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "154",
- "fixed": false,
- "raw": "provisioningState"
- },
- "serializedName": "provisioningState",
- "modelType": {
- "$id": "155",
- "$type": "EnumType",
- "values": [
- {
- "$id": "156",
- "name": "Creating",
- "serializedName": "Creating"
- },
- {
- "$id": "157",
- "name": "ResolvingDNS",
- "serializedName": "ResolvingDNS"
- },
- {
- "$id": "158",
- "name": "Moving",
- "serializedName": "Moving"
- },
- {
- "$id": "159",
- "name": "Deleting",
- "serializedName": "Deleting"
- },
- {
- "$id": "160",
- "name": "Succeeded",
- "serializedName": "Succeeded"
- },
- {
- "$id": "161",
- "name": "Failed",
- "serializedName": "Failed"
- }
- ],
- "oldModelAsString": true,
- "modelAsString": true,
- "underlyingType": {
- "$id": "162",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "163",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "164",
- "fixed": false,
- "raw": "ProvisioningState"
- },
- "deprecated": false
- }
- },
- {
- "$id": "165",
- "isReadOnly": true,
- "realPath": [
- "endpoint"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "166",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "167",
- "fixed": false,
- "raw": "Endpoint of the created account."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "168",
- "fixed": false,
- "raw": "endpoint"
- },
- "serializedName": "endpoint",
- "modelType": {
- "$id": "169",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "170",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "171",
- "isReadOnly": true,
- "realPath": [
- "internalId"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "172",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "173",
- "fixed": false,
- "raw": "The internal identifier."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "174",
- "fixed": false,
- "raw": "internalId"
- },
- "serializedName": "internalId",
- "modelType": {
- "$id": "175",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "176",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "177",
- "isReadOnly": false,
- "realPath": [
- "customSubDomainName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "178",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "179",
- "fixed": false,
- "raw": "Optional subdomain name used for token-based authentication."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "180",
- "fixed": false,
- "raw": "customSubDomainName"
- },
- "serializedName": "customSubDomainName",
- "modelType": {
- "$id": "181",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "182",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "183",
- "isReadOnly": false,
- "realPath": [
- "networkAcls"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "184",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "185",
- "fixed": false,
- "raw": "A collection of rules governing the accessibility from specific network locations."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "186",
- "fixed": false,
- "raw": "networkAcls"
- },
- "serializedName": "networkAcls",
- "modelType": {
- "$ref": "56"
- }
- },
- {
- "$id": "187",
- "isReadOnly": false,
- "realPath": [
- "encryption"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "188",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "189",
- "fixed": false,
- "raw": "The encryption properties for this resource."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "190",
- "fixed": false,
- "raw": "encryption"
- },
- "serializedName": "encryption",
- "modelType": {
- "$ref": "100"
- }
- },
- {
- "$id": "191",
- "isReadOnly": false,
- "realPath": [
- "userOwnedStorage"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "192",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "193",
- "fixed": false,
- "raw": "The storage accounts for this resource."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "194",
- "fixed": false,
- "raw": "userOwnedStorage"
- },
- "serializedName": "userOwnedStorage",
- "modelType": {
- "$id": "195",
- "$type": "SequenceType",
- "elementType": {
- "$ref": "116"
- },
- "name": {
- "$id": "196",
- "fixed": false
- },
- "deprecated": false
- }
- },
- {
- "$id": "197",
- "isReadOnly": false,
- "realPath": [
- "apiProperties"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "198",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "199",
- "fixed": false,
- "raw": "The api properties for special APIs."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "200",
- "fixed": false,
- "raw": "apiProperties"
- },
- "serializedName": "apiProperties",
- "modelType": {
- "$ref": "124"
- }
- }
- ],
- "serializedName": "CognitiveServicesAccountProperties",
- "documentation": "Properties of Cognitive Services account.",
- "containsConstantProperties": false,
- "name": {
- "$id": "201",
- "fixed": false,
- "raw": "CognitiveServicesAccountProperties"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CognitiveServicesAccountProperties",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CognitiveServicesAccountProperties"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "202",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "203",
- "isReadOnly": false,
- "realPath": [
- "name"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "204",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "205",
- "fixed": false,
- "raw": "Gets or sets the sku name. Required for account creation, optional for update."
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "206",
- "fixed": false,
- "raw": "name"
- },
- "serializedName": "name",
- "modelType": {
- "$id": "207",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "208",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "209",
- "isReadOnly": true,
- "realPath": [
- "tier"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "210",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "211",
- "fixed": false,
- "raw": "Gets the sku tier. This is based on the SKU name."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "SkuTier",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/Sku-tier"
- ]
- },
- "x-ms-enum": {
- "name": "SkuTier",
- "modelAsString": false,
- "oldModelAsString": false
- }
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "212",
- "fixed": false,
- "raw": "tier"
- },
- "serializedName": "tier",
- "modelType": {
- "$id": "213",
- "$type": "EnumType",
- "values": [
- {
- "$id": "214",
- "name": "Free",
- "serializedName": "Free"
- },
- {
- "$id": "215",
- "name": "Standard",
- "serializedName": "Standard"
- },
- {
- "$id": "216",
- "name": "Premium",
- "serializedName": "Premium"
- }
- ],
- "oldModelAsString": false,
- "modelAsString": false,
- "underlyingType": {
- "$id": "217",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "218",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "219",
- "fixed": false,
- "raw": "SkuTier"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "Sku",
- "documentation": "The SKU of the cognitive services account.",
- "containsConstantProperties": false,
- "name": {
- "$id": "220",
- "fixed": false,
- "raw": "Sku"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "Sku",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/Sku"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "221",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "222",
- "isReadOnly": false,
- "realPath": [
- "principalId"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "223",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "224",
- "fixed": false,
- "raw": "Azure Active Directory principal ID associated with this Identity."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "225",
- "fixed": false,
- "raw": "principalId"
- },
- "serializedName": "principalId",
- "modelType": {
- "$id": "226",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "227",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "228",
- "isReadOnly": false,
- "realPath": [
- "clientId"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "229",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "230",
- "fixed": false,
- "raw": "Client App Id associated with this identity."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "231",
- "fixed": false,
- "raw": "clientId"
- },
- "serializedName": "clientId",
- "modelType": {
- "$id": "232",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "233",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "UserAssignedIdentity",
- "documentation": "User-assigned managed identity.",
- "containsConstantProperties": false,
- "name": {
- "$id": "234",
- "fixed": false,
- "raw": "UserAssignedIdentity"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "UserAssignedIdentity",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/UserAssignedIdentity"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "235",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "236",
- "isReadOnly": false,
- "realPath": [
- "type"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "237",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "238",
- "fixed": false,
- "raw": "Type of managed service identity."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "IdentityType",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/Identity-type"
- ]
- },
- "x-ms-enum": {
- "name": "IdentityType",
- "modelAsString": false,
- "oldModelAsString": false
- }
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "239",
- "fixed": false,
- "raw": "type"
- },
- "serializedName": "type",
- "modelType": {
- "$id": "240",
- "$type": "EnumType",
- "values": [
- {
- "$id": "241",
- "name": "None",
- "serializedName": "None"
- },
- {
- "$id": "242",
- "name": "SystemAssigned",
- "serializedName": "SystemAssigned"
- },
- {
- "$id": "243",
- "name": "UserAssigned",
- "serializedName": "UserAssigned"
- }
- ],
- "oldModelAsString": false,
- "modelAsString": false,
- "underlyingType": {
- "$id": "244",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "245",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "246",
- "fixed": false,
- "raw": "IdentityType"
- },
- "deprecated": false
- }
- },
- {
- "$id": "247",
- "isReadOnly": true,
- "realPath": [
- "tenantId"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "248",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "249",
- "fixed": false,
- "raw": "Tenant of managed service identity."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "250",
- "fixed": false,
- "raw": "tenantId"
- },
- "serializedName": "tenantId",
- "modelType": {
- "$id": "251",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "252",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "253",
- "isReadOnly": true,
- "realPath": [
- "principalId"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "254",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "255",
- "fixed": false,
- "raw": "Principal Id of managed service identity."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "256",
- "fixed": false,
- "raw": "principalId"
- },
- "serializedName": "principalId",
- "modelType": {
- "$id": "257",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "258",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "259",
- "isReadOnly": false,
- "realPath": [
- "userAssignedIdentities"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "260",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "261",
- "fixed": false,
- "raw": "The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "262",
- "fixed": false,
- "raw": "userAssignedIdentities"
- },
- "serializedName": "userAssignedIdentities",
- "modelType": {
- "$id": "263",
- "$type": "DictionaryType",
- "valueType": {
- "$ref": "221"
- },
- "supportsAdditionalProperties": false,
- "name": {
- "$id": "264",
- "fixed": false
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "Identity",
- "documentation": "Managed service identity.",
- "containsConstantProperties": false,
- "name": {
- "$id": "265",
- "fixed": false,
- "raw": "Identity"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "Identity",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/Identity"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "266",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "267",
- "isReadOnly": true,
- "realPath": [
- "etag"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "268",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "269",
- "fixed": false,
- "raw": "Entity Tag"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "270",
- "fixed": false,
- "raw": "etag"
- },
- "serializedName": "etag",
- "modelType": {
- "$id": "271",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "272",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "273",
- "isReadOnly": true,
- "realPath": [
- "id"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "274",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "275",
- "fixed": false,
- "raw": "The id of the created account"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "276",
- "fixed": false,
- "raw": "id"
- },
- "serializedName": "id",
- "modelType": {
- "$id": "277",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "278",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "279",
- "isReadOnly": false,
- "realPath": [
- "kind"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "280",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "281",
- "fixed": false,
- "raw": "The Kind of the resource."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "282",
- "fixed": false,
- "raw": "kind"
- },
- "serializedName": "kind",
- "modelType": {
- "$id": "283",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "284",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "285",
- "isReadOnly": false,
- "realPath": [
- "location"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "286",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "287",
- "fixed": false,
- "raw": "The location of the resource"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "288",
- "fixed": false,
- "raw": "location"
- },
- "serializedName": "location",
- "modelType": {
- "$id": "289",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "290",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "291",
- "isReadOnly": true,
- "realPath": [
- "name"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "292",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "293",
- "fixed": false,
- "raw": "The name of the created account"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "294",
- "fixed": false,
- "raw": "name"
- },
- "serializedName": "name",
- "modelType": {
- "$id": "295",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "296",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "297",
- "isReadOnly": false,
- "realPath": [
- "properties"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "298",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "299",
- "fixed": false,
- "raw": "Properties of Cognitive Services account."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "300",
- "fixed": false,
- "raw": "properties"
- },
- "serializedName": "properties",
- "modelType": {
- "$ref": "150"
- }
- },
- {
- "$id": "301",
- "isReadOnly": false,
- "realPath": [
- "sku"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "302",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "303",
- "fixed": false,
- "raw": "The SKU of Cognitive Services account."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "304",
- "fixed": false,
- "raw": "sku"
- },
- "serializedName": "sku",
- "modelType": {
- "$ref": "202"
- }
- },
- {
- "$id": "305",
- "isReadOnly": false,
- "realPath": [
- "tags"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "306",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "307",
- "fixed": false,
- "raw": "Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 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."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "308",
- "fixed": false,
- "raw": "tags"
- },
- "serializedName": "tags",
- "modelType": {
- "$id": "309",
- "$type": "DictionaryType",
- "valueType": {
- "$id": "310",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "311",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "supportsAdditionalProperties": false,
- "name": {
- "$id": "312",
- "fixed": false
- },
- "deprecated": false
- }
- },
- {
- "$id": "313",
- "isReadOnly": true,
- "realPath": [
- "type"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "314",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "315",
- "fixed": false,
- "raw": "Resource type"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "316",
- "fixed": false,
- "raw": "type"
- },
- "serializedName": "type",
- "modelType": {
- "$id": "317",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "318",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "319",
- "isReadOnly": false,
- "realPath": [
- "identity"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "320",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "321",
- "fixed": false,
- "raw": "The identity of Cognitive Services account."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "322",
- "fixed": false,
- "raw": "identity"
- },
- "serializedName": "identity",
- "modelType": {
- "$ref": "235"
- }
- }
- ],
- "serializedName": "CognitiveServicesAccount",
- "documentation": "Cognitive Services Account is an Azure resource representing the provisioned account, its type, location and SKU.",
- "containsConstantProperties": false,
- "name": {
- "$id": "323",
- "fixed": false,
- "raw": "CognitiveServicesAccount"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CognitiveServicesAccount",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CognitiveServicesAccount"
- ]
- },
- "x-ms-azure-resource": true
- },
- "deprecated": false
- },
- {
- "$id": "324",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "325",
- "isReadOnly": false,
- "realPath": [
- "nextLink"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "326",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "327",
- "fixed": false,
- "raw": "The link used to get the next page of accounts."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "328",
- "fixed": false,
- "raw": "nextLink"
- },
- "serializedName": "nextLink",
- "modelType": {
- "$id": "329",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "330",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "331",
- "isReadOnly": true,
- "realPath": [
- "value"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "332",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "333",
- "fixed": false,
- "raw": "Gets the list of Cognitive Services accounts and their properties."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "334",
- "fixed": false,
- "raw": "value"
- },
- "serializedName": "value",
- "modelType": {
- "$id": "335",
- "$type": "SequenceType",
- "elementType": {
- "$ref": "266"
- },
- "name": {
- "$id": "336",
- "fixed": false
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "CognitiveServicesAccountListResult",
- "documentation": "The list of cognitive services accounts operation response.",
- "containsConstantProperties": false,
- "name": {
- "$id": "337",
- "fixed": false,
- "raw": "CognitiveServicesAccountListResult"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CognitiveServicesAccountListResult",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CognitiveServicesAccountListResult"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "338",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "339",
- "isReadOnly": false,
- "realPath": [
- "key1"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "340",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "341",
- "fixed": false,
- "raw": "Gets the value of key 1."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "342",
- "fixed": false,
- "raw": "key1"
- },
- "serializedName": "key1",
- "modelType": {
- "$id": "343",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "344",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "345",
- "isReadOnly": false,
- "realPath": [
- "key2"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "346",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "347",
- "fixed": false,
- "raw": "Gets the value of key 2."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "348",
- "fixed": false,
- "raw": "key2"
- },
- "serializedName": "key2",
- "modelType": {
- "$id": "349",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "350",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "CognitiveServicesAccountKeys",
- "documentation": "The access keys for the cognitive services account.",
- "containsConstantProperties": false,
- "name": {
- "$id": "351",
- "fixed": false,
- "raw": "CognitiveServicesAccountKeys"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CognitiveServicesAccountKeys",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CognitiveServicesAccountKeys"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "352",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "353",
- "isReadOnly": false,
- "realPath": [
- "keyName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "354",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "355",
- "fixed": false,
- "raw": "key name to generate (Key1|Key2)"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "KeyName",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/RegenerateKeyParameters-keyName"
- ]
- },
- "x-ms-enum": {
- "name": "KeyName",
- "modelAsString": false,
- "oldModelAsString": false
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "356",
- "fixed": false,
- "raw": "keyName"
- },
- "serializedName": "keyName",
- "modelType": {
- "$id": "357",
- "$type": "EnumType",
- "values": [
- {
- "$id": "358",
- "name": "Key1",
- "serializedName": "Key1"
- },
- {
- "$id": "359",
- "name": "Key2",
- "serializedName": "Key2"
- }
- ],
- "oldModelAsString": false,
- "modelAsString": false,
- "underlyingType": {
- "$id": "360",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "361",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "362",
- "fixed": false,
- "raw": "KeyName"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "RegenerateKeyParameters",
- "documentation": "Regenerate key parameters.",
- "containsConstantProperties": false,
- "name": {
- "$id": "363",
- "fixed": false,
- "raw": "RegenerateKeyParameters"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "RegenerateKeyParameters",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/RegenerateKeyParameters"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "364",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "365",
- "isReadOnly": false,
- "realPath": [
- "resourceType"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "366",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "367",
- "fixed": false,
- "raw": "Resource Namespace and Type"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "368",
- "fixed": false,
- "raw": "resourceType"
- },
- "serializedName": "resourceType",
- "modelType": {
- "$id": "369",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "370",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "371",
- "isReadOnly": false,
- "realPath": [
- "sku"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "372",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "373",
- "fixed": false,
- "raw": "The SKU of Cognitive Services account."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "374",
- "fixed": false,
- "raw": "sku"
- },
- "serializedName": "sku",
- "modelType": {
- "$ref": "202"
- }
- }
- ],
- "serializedName": "CognitiveServicesResourceAndSku",
- "documentation": "Cognitive Services resource type and SKU.",
- "containsConstantProperties": false,
- "name": {
- "$id": "375",
- "fixed": false,
- "raw": "CognitiveServicesResourceAndSku"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CognitiveServicesResourceAndSku",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CognitiveServicesResourceAndSku"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "376",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "377",
- "isReadOnly": true,
- "realPath": [
- "value"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "378",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "379",
- "fixed": false,
- "raw": "Gets the list of Cognitive Services accounts and their properties."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "380",
- "fixed": false,
- "raw": "value"
- },
- "serializedName": "value",
- "modelType": {
- "$id": "381",
- "$type": "SequenceType",
- "elementType": {
- "$ref": "364"
- },
- "name": {
- "$id": "382",
- "fixed": false
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "CognitiveServicesAccountEnumerateSkusResult",
- "documentation": "The list of cognitive services accounts operation response.",
- "containsConstantProperties": false,
- "name": {
- "$id": "383",
- "fixed": false,
- "raw": "CognitiveServicesAccountEnumerateSkusResult"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CognitiveServicesAccountEnumerateSkusResult",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CognitiveServicesAccountEnumerateSkusResult"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "384",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "385",
- "isReadOnly": true,
- "realPath": [
- "value"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "386",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "387",
- "fixed": false,
- "raw": "The name of the metric."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "388",
- "fixed": false,
- "raw": "value"
- },
- "serializedName": "value",
- "modelType": {
- "$id": "389",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "390",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "391",
- "isReadOnly": true,
- "realPath": [
- "localizedValue"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "392",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "393",
- "fixed": false,
- "raw": "The friendly name of the metric."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "394",
- "fixed": false,
- "raw": "localizedValue"
- },
- "serializedName": "localizedValue",
- "modelType": {
- "$id": "395",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "396",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "MetricName",
- "documentation": "A metric name.",
- "containsConstantProperties": false,
- "name": {
- "$id": "397",
- "fixed": false,
- "raw": "MetricName"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "MetricName",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/MetricName"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "398",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "399",
- "isReadOnly": false,
- "realPath": [
- "unit"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "400",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "401",
- "fixed": false,
- "raw": "The unit of the metric."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "UnitType",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/UnitType"
- ]
- },
- "x-ms-enum": {
- "modelAsString": true,
- "name": "UnitType",
- "oldModelAsString": true
- }
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "402",
- "fixed": false,
- "raw": "unit"
- },
- "serializedName": "unit",
- "modelType": {
- "$id": "403",
- "$type": "EnumType",
- "values": [
- {
- "$id": "404",
- "name": "Count",
- "serializedName": "Count"
- },
- {
- "$id": "405",
- "name": "Bytes",
- "serializedName": "Bytes"
- },
- {
- "$id": "406",
- "name": "Seconds",
- "serializedName": "Seconds"
- },
- {
- "$id": "407",
- "name": "Percent",
- "serializedName": "Percent"
- },
- {
- "$id": "408",
- "name": "CountPerSecond",
- "serializedName": "CountPerSecond"
- },
- {
- "$id": "409",
- "name": "BytesPerSecond",
- "serializedName": "BytesPerSecond"
- },
- {
- "$id": "410",
- "name": "Milliseconds",
- "serializedName": "Milliseconds"
- }
- ],
- "oldModelAsString": true,
- "modelAsString": true,
- "underlyingType": {
- "$id": "411",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "412",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "413",
- "fixed": false,
- "raw": "UnitType"
- },
- "deprecated": false
- }
- },
- {
- "$id": "414",
- "isReadOnly": true,
- "realPath": [
- "name"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "415",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "416",
- "fixed": false,
- "raw": "The name information for the metric."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "417",
- "fixed": false,
- "raw": "name"
- },
- "serializedName": "name",
- "modelType": {
- "$ref": "384"
- }
- },
- {
- "$id": "418",
- "isReadOnly": true,
- "realPath": [
- "quotaPeriod"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "419",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "420",
- "fixed": false,
- "raw": "The quota period used to summarize the usage values."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "421",
- "fixed": false,
- "raw": "quotaPeriod"
- },
- "serializedName": "quotaPeriod",
- "modelType": {
- "$id": "422",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "423",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "424",
- "isReadOnly": true,
- "realPath": [
- "limit"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "425",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "426",
- "fixed": false,
- "raw": "Maximum value for this metric."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "427",
- "fixed": false,
- "raw": "limit"
- },
- "serializedName": "limit",
- "modelType": {
- "$id": "428",
- "$type": "PrimaryType",
- "format": "double",
- "knownPrimaryType": "double",
- "name": {
- "$id": "429",
- "fixed": false,
- "raw": "Double"
- },
- "deprecated": false
- }
- },
- {
- "$id": "430",
- "isReadOnly": true,
- "realPath": [
- "currentValue"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "431",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "432",
- "fixed": false,
- "raw": "Current value for this metric."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "433",
- "fixed": false,
- "raw": "currentValue"
- },
- "serializedName": "currentValue",
- "modelType": {
- "$id": "434",
- "$type": "PrimaryType",
- "format": "double",
- "knownPrimaryType": "double",
- "name": {
- "$id": "435",
- "fixed": false,
- "raw": "Double"
- },
- "deprecated": false
- }
- },
- {
- "$id": "436",
- "isReadOnly": true,
- "realPath": [
- "nextResetTime"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "437",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "438",
- "fixed": false,
- "raw": "Next reset time for current quota."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "439",
- "fixed": false,
- "raw": "nextResetTime"
- },
- "serializedName": "nextResetTime",
- "modelType": {
- "$id": "440",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "441",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "442",
- "isReadOnly": false,
- "realPath": [
- "status"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "443",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "444",
- "fixed": false,
- "raw": "Cognitive Services account quota usage status."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "QuotaUsageStatus",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/Usage-status"
- ]
- },
- "x-ms-enum": {
- "name": "QuotaUsageStatus",
- "modelAsString": true,
- "oldModelAsString": true
- }
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "445",
- "fixed": false,
- "raw": "status"
- },
- "serializedName": "status",
- "modelType": {
- "$id": "446",
- "$type": "EnumType",
- "values": [
- {
- "$id": "447",
- "name": "Included",
- "serializedName": "Included"
- },
- {
- "$id": "448",
- "name": "Blocked",
- "serializedName": "Blocked"
- },
- {
- "$id": "449",
- "name": "InOverage",
- "serializedName": "InOverage"
- },
- {
- "$id": "450",
- "name": "Unknown",
- "serializedName": "Unknown"
- }
- ],
- "oldModelAsString": true,
- "modelAsString": true,
- "underlyingType": {
- "$id": "451",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "452",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "453",
- "fixed": false,
- "raw": "QuotaUsageStatus"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "Usage",
- "documentation": "The usage data for a usage request.",
- "containsConstantProperties": false,
- "name": {
- "$id": "454",
- "fixed": false,
- "raw": "Usage"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "Usage",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/Usage"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "455",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "456",
- "isReadOnly": true,
- "realPath": [
- "value"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "457",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "458",
- "fixed": false,
- "raw": "The list of usages for Cognitive Service account."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "459",
- "fixed": false,
- "raw": "value"
- },
- "serializedName": "value",
- "modelType": {
- "$id": "460",
- "$type": "SequenceType",
- "elementType": {
- "$ref": "398"
- },
- "name": {
- "$id": "461",
- "fixed": false
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "UsagesResult",
- "documentation": "The response to a list usage request.",
- "containsConstantProperties": false,
- "name": {
- "$id": "462",
- "fixed": false,
- "raw": "UsagesResult"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "UsagesResult",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/UsagesResult"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "463",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "464",
- "isReadOnly": false,
- "realPath": [
- "code"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "465",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "466",
- "fixed": false,
- "raw": "error code"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "467",
- "fixed": false,
- "raw": "code"
- },
- "serializedName": "code",
- "modelType": {
- "$id": "468",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "469",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "470",
- "isReadOnly": false,
- "realPath": [
- "message"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "471",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "472",
- "fixed": false,
- "raw": "error message"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "473",
- "fixed": false,
- "raw": "message"
- },
- "serializedName": "message",
- "modelType": {
- "$id": "474",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "475",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "ErrorBody",
- "documentation": "Cognitive Services error body.",
- "containsConstantProperties": false,
- "name": {
- "$id": "476",
- "fixed": false,
- "raw": "ErrorBody"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "ErrorBody",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/ErrorBody"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "477",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "478",
- "isReadOnly": false,
- "realPath": [
- "error"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "479",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "480",
- "fixed": false,
- "raw": "The error body."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "481",
- "fixed": false,
- "raw": "error"
- },
- "serializedName": "error",
- "modelType": {
- "$ref": "463"
- }
- }
- ],
- "serializedName": "Error",
- "documentation": "Cognitive Services error object.",
- "containsConstantProperties": false,
- "name": {
- "$id": "482",
- "fixed": false,
- "raw": "Error"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "Error",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/Error"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "483",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "484",
- "isReadOnly": false,
- "realPath": [
- "description"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "485",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "486",
- "fixed": false,
- "raw": "The description of the operation."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "487",
- "fixed": false,
- "raw": "description"
- },
- "serializedName": "description",
- "modelType": {
- "$id": "488",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "489",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "490",
- "isReadOnly": false,
- "realPath": [
- "operation"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "491",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "492",
- "fixed": false,
- "raw": "The action that users can perform, based on their permission level."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "493",
- "fixed": false,
- "raw": "operation"
- },
- "serializedName": "operation",
- "modelType": {
- "$id": "494",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "495",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "496",
- "isReadOnly": false,
- "realPath": [
- "provider"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "497",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "498",
- "fixed": false,
- "raw": "Service provider: Microsoft Cognitive Services."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "499",
- "fixed": false,
- "raw": "provider"
- },
- "serializedName": "provider",
- "modelType": {
- "$id": "500",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "501",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "502",
- "isReadOnly": false,
- "realPath": [
- "resource"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "503",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "504",
- "fixed": false,
- "raw": "Resource on which the operation is performed."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "505",
- "fixed": false,
- "raw": "resource"
- },
- "serializedName": "resource",
- "modelType": {
- "$id": "506",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "507",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "OperationDisplayInfo",
- "documentation": "The operation supported by Cognitive Services.",
- "containsConstantProperties": false,
- "name": {
- "$id": "508",
- "fixed": false,
- "raw": "OperationDisplayInfo"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "OperationDisplayInfo",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/OperationDisplayInfo"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "509",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "510",
- "isReadOnly": false,
- "realPath": [
- "name"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "511",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "512",
- "fixed": false,
- "raw": "Operation name: {provider}/{resource}/{operation}."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "513",
- "fixed": false,
- "raw": "name"
- },
- "serializedName": "name",
- "modelType": {
- "$id": "514",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "515",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "516",
- "isReadOnly": false,
- "realPath": [
- "display"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "517",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "518",
- "fixed": false,
- "raw": "The operation supported by Cognitive Services."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "519",
- "fixed": false,
- "raw": "display"
- },
- "serializedName": "display",
- "modelType": {
- "$ref": "483"
- }
- },
- {
- "$id": "520",
- "isReadOnly": false,
- "realPath": [
- "origin"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "521",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "522",
- "fixed": false,
- "raw": "The origin of the operation."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "523",
- "fixed": false,
- "raw": "origin"
- },
- "serializedName": "origin",
- "modelType": {
- "$id": "524",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "525",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "526",
- "isReadOnly": false,
- "realPath": [
- "properties"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "527",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "528",
- "fixed": false,
- "raw": "Additional properties."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "529",
- "fixed": false,
- "raw": "properties"
- },
- "serializedName": "properties",
- "modelType": {
- "$id": "530",
- "$type": "PrimaryType",
- "knownPrimaryType": "object",
- "name": {
- "$id": "531",
- "fixed": false,
- "raw": "Object"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "OperationEntity",
- "documentation": "The operation supported by Cognitive Services.",
- "containsConstantProperties": false,
- "name": {
- "$id": "532",
- "fixed": false,
- "raw": "OperationEntity"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "OperationEntity",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/OperationEntity"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "533",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "534",
- "isReadOnly": false,
- "realPath": [
- "nextLink"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "535",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "536",
- "fixed": false,
- "raw": "The link used to get the next page of operations."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "537",
- "fixed": false,
- "raw": "nextLink"
- },
- "serializedName": "nextLink",
- "modelType": {
- "$id": "538",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "539",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "540",
- "isReadOnly": false,
- "realPath": [
- "value"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "541",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "542",
- "fixed": false,
- "raw": "The list of operations."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "543",
- "fixed": false,
- "raw": "value"
- },
- "serializedName": "value",
- "modelType": {
- "$id": "544",
- "$type": "SequenceType",
- "elementType": {
- "$ref": "509"
- },
- "name": {
- "$id": "545",
- "fixed": false
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "OperationEntityListResult",
- "documentation": "The list of cognitive services accounts operation response.",
- "containsConstantProperties": false,
- "name": {
- "$id": "546",
- "fixed": false,
- "raw": "OperationEntityListResult"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "OperationEntityListResult",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/OperationEntityListResult"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "547",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "548",
- "isReadOnly": false,
- "realPath": [
- "skus"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "549",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "550",
- "fixed": false,
- "raw": "The SKU of the resource."
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "551",
- "fixed": false,
- "raw": "skus"
- },
- "serializedName": "skus",
- "modelType": {
- "$id": "552",
- "$type": "SequenceType",
- "elementType": {
- "$id": "553",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "554",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "555",
- "fixed": false
- },
- "deprecated": false
- }
- },
- {
- "$id": "556",
- "isReadOnly": false,
- "realPath": [
- "kind"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "557",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "558",
- "fixed": false,
- "raw": "The Kind of the resource."
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "559",
- "fixed": false,
- "raw": "kind"
- },
- "serializedName": "kind",
- "modelType": {
- "$id": "560",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "561",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "562",
- "isReadOnly": false,
- "realPath": [
- "type"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "563",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "564",
- "fixed": false,
- "raw": "The Type of the resource."
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "565",
- "fixed": false,
- "raw": "type"
- },
- "serializedName": "type",
- "modelType": {
- "$id": "566",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "567",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "CheckSkuAvailabilityParameter",
- "documentation": "Check SKU availability parameter.",
- "containsConstantProperties": false,
- "name": {
- "$id": "568",
- "fixed": false,
- "raw": "CheckSkuAvailabilityParameter"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CheckSkuAvailabilityParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CheckSkuAvailabilityParameter"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "569",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "570",
- "isReadOnly": false,
- "realPath": [
- "kind"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "571",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "572",
- "fixed": false,
- "raw": "The Kind of the resource."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "573",
- "fixed": false,
- "raw": "kind"
- },
- "serializedName": "kind",
- "modelType": {
- "$id": "574",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "575",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "576",
- "isReadOnly": false,
- "realPath": [
- "type"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "577",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "578",
- "fixed": false,
- "raw": "The Type of the resource."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "579",
- "fixed": false,
- "raw": "type"
- },
- "serializedName": "type",
- "modelType": {
- "$id": "580",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "581",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "582",
- "isReadOnly": false,
- "realPath": [
- "skuName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "583",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "584",
- "fixed": false,
- "raw": "The SKU of Cognitive Services account."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "585",
- "fixed": false,
- "raw": "skuName"
- },
- "serializedName": "skuName",
- "modelType": {
- "$id": "586",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "587",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "588",
- "isReadOnly": false,
- "realPath": [
- "skuAvailable"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "589",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "590",
- "fixed": false,
- "raw": "Indicates the given SKU is available or not."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "591",
- "fixed": false,
- "raw": "skuAvailable"
- },
- "serializedName": "skuAvailable",
- "modelType": {
- "$id": "592",
- "$type": "PrimaryType",
- "knownPrimaryType": "boolean",
- "name": {
- "$id": "593",
- "fixed": false,
- "raw": "Boolean"
- },
- "deprecated": false
- }
- },
- {
- "$id": "594",
- "isReadOnly": false,
- "realPath": [
- "reason"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "595",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "596",
- "fixed": false,
- "raw": "Reason why the SKU is not available."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "597",
- "fixed": false,
- "raw": "reason"
- },
- "serializedName": "reason",
- "modelType": {
- "$id": "598",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "599",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "600",
- "isReadOnly": false,
- "realPath": [
- "message"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "601",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "602",
- "fixed": false,
- "raw": "Additional error message."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "603",
- "fixed": false,
- "raw": "message"
- },
- "serializedName": "message",
- "modelType": {
- "$id": "604",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "605",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "CheckSkuAvailabilityResult",
- "documentation": "Check SKU availability result.",
- "containsConstantProperties": false,
- "name": {
- "$id": "606",
- "fixed": false,
- "raw": "CheckSkuAvailabilityResult"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CheckSkuAvailabilityResult",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CheckSkuAvailabilityResult"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "607",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "608",
- "isReadOnly": false,
- "realPath": [
- "value"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "609",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "610",
- "fixed": false,
- "raw": "Check SKU availability result list."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "611",
- "fixed": false,
- "raw": "value"
- },
- "serializedName": "value",
- "modelType": {
- "$id": "612",
- "$type": "SequenceType",
- "elementType": {
- "$ref": "569"
- },
- "name": {
- "$id": "613",
- "fixed": false
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "CheckSkuAvailabilityResultList",
- "documentation": "Check SKU availability result list.",
- "containsConstantProperties": false,
- "name": {
- "$id": "614",
- "fixed": false,
- "raw": "CheckSkuAvailabilityResultList"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CheckSkuAvailabilityResultList",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CheckSkuAvailabilityResultList"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "615",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "616",
- "isReadOnly": false,
- "realPath": [
- "subdomainName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "617",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "618",
- "fixed": false,
- "raw": "The subdomain name to use."
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "619",
- "fixed": false,
- "raw": "subdomainName"
- },
- "serializedName": "subdomainName",
- "modelType": {
- "$id": "620",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "621",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "622",
- "isReadOnly": false,
- "realPath": [
- "type"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "623",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "624",
- "fixed": false,
- "raw": "The Type of the resource."
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "625",
- "fixed": false,
- "raw": "type"
- },
- "serializedName": "type",
- "modelType": {
- "$id": "626",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "627",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "CheckDomainAvailabilityParameter",
- "documentation": "Check Domain availability parameter.",
- "containsConstantProperties": false,
- "name": {
- "$id": "628",
- "fixed": false,
- "raw": "CheckDomainAvailabilityParameter"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "CheckDomainAvailabilityParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/CheckDomainAvailabilityParameter"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "629",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "630",
- "isReadOnly": true,
- "realPath": [
- "locations"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "631",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "632",
- "fixed": false,
- "raw": "Locations where the SKU is restricted"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "633",
- "fixed": false,
- "raw": "locations"
- },
- "serializedName": "locations",
- "modelType": {
- "$id": "634",
- "$type": "SequenceType",
- "elementType": {
- "$id": "635",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "636",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "637",
- "fixed": false
- },
- "deprecated": false
- }
- },
- {
- "$id": "638",
- "isReadOnly": true,
- "realPath": [
- "zones"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "639",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "640",
- "fixed": false,
- "raw": "List of availability zones where the SKU is restricted."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "641",
- "fixed": false,
- "raw": "zones"
- },
- "serializedName": "zones",
- "modelType": {
- "$id": "642",
- "$type": "SequenceType",
- "elementType": {
- "$id": "643",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "644",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "645",
- "fixed": false
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "ResourceSkuRestrictionInfo",
- "containsConstantProperties": false,
- "name": {
- "$id": "646",
- "fixed": false,
- "raw": "ResourceSkuRestrictionInfo"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "ResourceSkuRestrictionInfo",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/ResourceSkuRestrictionInfo"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "647",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "648",
- "isReadOnly": true,
- "realPath": [
- "type"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "649",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "650",
- "fixed": false,
- "raw": "The type of restrictions."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "ResourceSkuRestrictionsType",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/ResourceSkuRestrictions-type"
- ]
- },
- "x-ms-enum": {
- "name": "ResourceSkuRestrictionsType",
- "modelAsString": false,
- "oldModelAsString": false
- }
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "651",
- "fixed": false,
- "raw": "type"
- },
- "serializedName": "type",
- "modelType": {
- "$id": "652",
- "$type": "EnumType",
- "values": [
- {
- "$id": "653",
- "name": "Location",
- "serializedName": "Location"
- },
- {
- "$id": "654",
- "name": "Zone",
- "serializedName": "Zone"
- }
- ],
- "oldModelAsString": false,
- "modelAsString": false,
- "underlyingType": {
- "$id": "655",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "656",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "657",
- "fixed": false,
- "raw": "ResourceSkuRestrictionsType"
- },
- "deprecated": false
- }
- },
- {
- "$id": "658",
- "isReadOnly": true,
- "realPath": [
- "values"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "659",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "660",
- "fixed": false,
- "raw": "The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "661",
- "fixed": false,
- "raw": "values"
- },
- "serializedName": "values",
- "modelType": {
- "$id": "662",
- "$type": "SequenceType",
- "elementType": {
- "$id": "663",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "664",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "665",
- "fixed": false
- },
- "deprecated": false
- }
- },
- {
- "$id": "666",
- "isReadOnly": true,
- "realPath": [
- "restrictionInfo"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "667",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "668",
- "fixed": false,
- "raw": "The information about the restriction where the SKU cannot be used."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "669",
- "fixed": false,
- "raw": "restrictionInfo"
- },
- "serializedName": "restrictionInfo",
- "modelType": {
- "$ref": "629"
- }
- },
- {
- "$id": "670",
- "isReadOnly": true,
- "realPath": [
- "reasonCode"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "671",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "672",
- "fixed": false,
- "raw": "The reason for restriction."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "ResourceSkuRestrictionsReasonCode",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/ResourceSkuRestrictions-reasonCode"
- ]
- },
- "x-ms-enum": {
- "name": "ResourceSkuRestrictionsReasonCode",
- "modelAsString": true,
- "oldModelAsString": true
- }
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "673",
- "fixed": false,
- "raw": "reasonCode"
- },
- "serializedName": "reasonCode",
- "modelType": {
- "$id": "674",
- "$type": "EnumType",
- "values": [
- {
- "$id": "675",
- "name": "QuotaId",
- "serializedName": "QuotaId"
- },
- {
- "$id": "676",
- "name": "NotAvailableForSubscription",
- "serializedName": "NotAvailableForSubscription"
- }
- ],
- "oldModelAsString": true,
- "modelAsString": true,
- "underlyingType": {
- "$id": "677",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "678",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "679",
- "fixed": false,
- "raw": "ResourceSkuRestrictionsReasonCode"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "ResourceSkuRestrictions",
- "documentation": "Describes restrictions of a SKU.",
- "containsConstantProperties": false,
- "name": {
- "$id": "680",
- "fixed": false,
- "raw": "ResourceSkuRestrictions"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "ResourceSkuRestrictions",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/ResourceSkuRestrictions"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "681",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "682",
- "isReadOnly": true,
- "realPath": [
- "resourceType"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "683",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "684",
- "fixed": false,
- "raw": "The type of resource the SKU applies to."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "685",
- "fixed": false,
- "raw": "resourceType"
- },
- "serializedName": "resourceType",
- "modelType": {
- "$id": "686",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "687",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "688",
- "isReadOnly": true,
- "realPath": [
- "name"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "689",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "690",
- "fixed": false,
- "raw": "The name of SKU."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "691",
- "fixed": false,
- "raw": "name"
- },
- "serializedName": "name",
- "modelType": {
- "$id": "692",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "693",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "694",
- "isReadOnly": true,
- "realPath": [
- "tier"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "695",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "696",
- "fixed": false,
- "raw": "Specifies the tier of Cognitive Services account."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "697",
- "fixed": false,
- "raw": "tier"
- },
- "serializedName": "tier",
- "modelType": {
- "$id": "698",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "699",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "700",
- "isReadOnly": true,
- "realPath": [
- "kind"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "701",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "702",
- "fixed": false,
- "raw": "The Kind of resources that are supported in this SKU."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "703",
- "fixed": false,
- "raw": "kind"
- },
- "serializedName": "kind",
- "modelType": {
- "$id": "704",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "705",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "706",
- "isReadOnly": true,
- "realPath": [
- "locations"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "707",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "708",
- "fixed": false,
- "raw": "The set of locations that the SKU is available."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "709",
- "fixed": false,
- "raw": "locations"
- },
- "serializedName": "locations",
- "modelType": {
- "$id": "710",
- "$type": "SequenceType",
- "elementType": {
- "$id": "711",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "712",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- },
- "name": {
- "$id": "713",
- "fixed": false
- },
- "deprecated": false
- }
- },
- {
- "$id": "714",
- "isReadOnly": true,
- "realPath": [
- "restrictions"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "715",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "716",
- "fixed": false,
- "raw": "The restrictions because of which SKU cannot be used. This is empty if there are no restrictions."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "717",
- "fixed": false,
- "raw": "restrictions"
- },
- "serializedName": "restrictions",
- "modelType": {
- "$id": "718",
- "$type": "SequenceType",
- "elementType": {
- "$ref": "647"
- },
- "name": {
- "$id": "719",
- "fixed": false
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "ResourceSku",
- "documentation": "Describes an available Cognitive Services SKU.",
- "containsConstantProperties": false,
- "name": {
- "$id": "720",
- "fixed": false,
- "raw": "ResourceSku"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "ResourceSku",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/ResourceSku"
- ]
- }
- },
- "deprecated": false
- },
- {
- "$id": "721",
- "$type": "CompositeType",
- "properties": [
- {
- "$id": "722",
- "isReadOnly": false,
- "realPath": [
- "value"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "723",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "724",
- "fixed": false,
- "raw": "The list of skus available for the subscription."
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "725",
- "fixed": false,
- "raw": "value"
- },
- "serializedName": "value",
- "modelType": {
- "$id": "726",
- "$type": "SequenceType",
- "elementType": {
- "$ref": "681"
- },
- "name": {
- "$id": "727",
- "fixed": false
- },
- "deprecated": false
- }
- },
- {
- "$id": "728",
- "isReadOnly": false,
- "realPath": [
- "nextLink"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "729",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "730",
- "fixed": false,
- "raw": "The uri to fetch the next page of Skus."
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "731",
- "fixed": false,
- "raw": "nextLink"
- },
- "serializedName": "nextLink",
- "modelType": {
- "$id": "732",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "733",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "serializedName": "ResourceSkusResult",
- "documentation": "The Get Skus operation response.",
- "containsConstantProperties": false,
- "name": {
- "$id": "734",
- "fixed": false,
- "raw": "ResourceSkusResult"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "ResourceSkusResult",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/schemas/ResourceSkusResult"
- ]
- }
- },
- "deprecated": false
- }
- ],
- "errorTypes": [
- {
- "$ref": "477"
- }
- ],
- "enumTypes": [
- {
- "$ref": "213"
- },
- {
- "$ref": "155"
- },
- {
- "$ref": "61"
- },
- {
- "$ref": "109"
- },
- {
- "$ref": "240"
- },
- {
- "$ref": "357"
- },
- {
- "$ref": "403"
- },
- {
- "$ref": "446"
- },
- {
- "$ref": "652"
- },
- {
- "$ref": "674"
- }
- ],
- "name": "CognitiveServicesManagementClient",
- "namespace": "Microsoft.Azure.Management.CognitiveServices",
- "modelsName": "Models",
- "apiVersion": "2017-04-18",
- "baseUrl": "https://management.azure.com",
- "documentation": "Cognitive Services Management Client",
- "properties": [
- {
- "$id": "735",
- "isReadOnly": false,
- "realPath": [
- "subscriptionId"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "736",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "737",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "738",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "739",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "740",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "741",
- "isReadOnly": false,
- "realPath": [
- "api-version"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "742",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "743",
- "fixed": false,
- "raw": "Version of the API to be used with the client request. Current version is 2017-04-18"
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "apiVersionParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/apiVersionParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "744",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "745",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "746",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "747",
- "isReadOnly": false,
- "realPath": [
- "location"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "748",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "749",
- "fixed": false,
- "raw": "Resource location."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "locationParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/locationParameter"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "750",
- "fixed": false,
- "raw": "location"
- },
- "serializedName": "location",
- "modelType": {
- "$id": "751",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "752",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "753",
- "isReadOnly": false,
- "realPath": [
- "$filter"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "754",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "755",
- "fixed": false,
- "raw": "An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names)."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "usageFilterParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/usageFilterParameter"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "756",
- "fixed": false,
- "raw": "$filter"
- },
- "serializedName": "$filter",
- "modelType": {
- "$id": "757",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "758",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "759",
- "isReadOnly": false,
- "realPath": [
- "resourceGroupName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "760",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "761",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1ki89oe·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1ki89oe·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "762",
- "fixed": false,
- "raw": "resourceGroupName"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "763",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "764",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "765",
- "isReadOnly": false,
- "realPath": [
- "accountName"
- ],
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "766",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "767",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1bewaxu·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1bewaxu·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "768",
- "fixed": false,
- "raw": "accountName"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "769",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "770",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "771",
- "isReadOnly": false,
- "realPath": [
- "resourceGroupName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "772",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "773",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·19ebe4s·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·19ebe4s·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "774",
- "fixed": false,
- "raw": "ResourceGroupName1"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "775",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "776",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "777",
- "isReadOnly": false,
- "realPath": [
- "accountName"
- ],
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "778",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "779",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1cb0gcx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1cb0gcx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "780",
- "fixed": false,
- "raw": "AccountName1"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "781",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "782",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "783",
- "isReadOnly": false,
- "realPath": [
- "resourceGroupName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "784",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "785",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·2o12jx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·2o12jx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "786",
- "fixed": false,
- "raw": "ResourceGroupName2"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "787",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "788",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "789",
- "isReadOnly": false,
- "realPath": [
- "accountName"
- ],
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "790",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "791",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·fxyg3e·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·fxyg3e·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "792",
- "fixed": false,
- "raw": "AccountName2"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "793",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "794",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "795",
- "isReadOnly": false,
- "realPath": [
- "resourceGroupName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "796",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "797",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·15co9gx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·15co9gx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "798",
- "fixed": false,
- "raw": "ResourceGroupName3"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "799",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "800",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "801",
- "isReadOnly": false,
- "realPath": [
- "accountName"
- ],
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "802",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "803",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·quuaqf·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·quuaqf·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "804",
- "fixed": false,
- "raw": "AccountName3"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "805",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "806",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "807",
- "isReadOnly": false,
- "realPath": [
- "resourceGroupName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "808",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "809",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·j4irxz·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts·get·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·j4irxz·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts·get·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "810",
- "fixed": false,
- "raw": "ResourceGroupName4"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "811",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "812",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "813",
- "isReadOnly": false,
- "realPath": [
- "resourceGroupName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "814",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "815",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1cy245e·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1cy245e·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "816",
- "fixed": false,
- "raw": "ResourceGroupName5"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "817",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "818",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "819",
- "isReadOnly": false,
- "realPath": [
- "accountName"
- ],
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "820",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "821",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·j4axsj·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·j4axsj·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "822",
- "fixed": false,
- "raw": "AccountName4"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "823",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "824",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "825",
- "isReadOnly": false,
- "realPath": [
- "resourceGroupName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "826",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "827",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·ld9150·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·ld9150·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "828",
- "fixed": false,
- "raw": "ResourceGroupName6"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "829",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "830",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "831",
- "isReadOnly": false,
- "realPath": [
- "accountName"
- ],
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "832",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "833",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·60buey·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·60buey·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "834",
- "fixed": false,
- "raw": "AccountName5"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "835",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "836",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "837",
- "isReadOnly": false,
- "realPath": [
- "resourceGroupName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "838",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "839",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·ll7d0j·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·ll7d0j·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "840",
- "fixed": false,
- "raw": "ResourceGroupName7"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "841",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "842",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "843",
- "isReadOnly": false,
- "realPath": [
- "accountName"
- ],
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "844",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "845",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·156v833·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·156v833·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "846",
- "fixed": false,
- "raw": "AccountName6"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "847",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "848",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "849",
- "isReadOnly": false,
- "realPath": [
- "resourceGroupName"
- ],
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "850",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "851",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1cqqkfk·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1cqqkfk·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "852",
- "fixed": false,
- "raw": "ResourceGroupName8"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "853",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "854",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "855",
- "isReadOnly": false,
- "realPath": [
- "accountName"
- ],
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "856",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "857",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1i7cjkm·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1i7cjkm·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "858",
- "fixed": false,
- "raw": "AccountName7"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "859",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "860",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "operations": [
- {
- "$id": "861",
- "methods": [
- {
- "$id": "862",
- "parameters": [
- {
- "$id": "863",
- "clientProperty": {
- "$ref": "759"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "864",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "865",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1ki89oe·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1ki89oe·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "866",
- "fixed": false,
- "raw": "resourceGroupName"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "867",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "868",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "869",
- "clientProperty": {
- "$ref": "765"
- },
- "location": "path",
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "870",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "871",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1bewaxu·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1bewaxu·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "872",
- "fixed": false,
- "raw": "accountName"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "873",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "874",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "875",
- "location": "body",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "876",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "877",
- "fixed": false,
- "raw": "The parameters to provide for the created account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·zbnl9h·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·requestbody",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/requestBodies/paths·zbnl9h·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·requestbody"
- ]
- },
- "x-ms-requestBody-name": "account"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "878",
- "fixed": false,
- "raw": "account"
- },
- "serializedName": "account",
- "modelType": {
- "$ref": "266"
- }
- },
- {
- "$id": "879",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "880",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "881",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "882",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "883",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "884",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "885",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "886",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "887",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "888",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "889",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "890",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "891",
- "fixed": false,
- "raw": "Create"
- },
- "group": {
- "$id": "892",
- "fixed": false,
- "raw": "Accounts"
- },
- "serializedName": "Accounts_Create",
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
- "isAbsoluteUrl": false,
- "httpMethod": "put",
- "responses": {
- "OK": {
- "$id": "893",
- "body": {
- "$ref": "266"
- },
- "extensions": {
- "$id": "894",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1gqyeds·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1gqyeds·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·responses·200"
- ]
- }
- },
- "isNullable": true
- },
- "Created": {
- "$id": "895",
- "body": {
- "$ref": "266"
- },
- "extensions": {
- "$id": "896",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·jjxf3z·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·responses·201",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·jjxf3z·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·responses·201"
- ]
- }
- },
- "isNullable": true
- },
- "Accepted": {
- "$id": "897",
- "body": {
- "$ref": "266"
- },
- "extensions": {
- "$id": "898",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·3h41a0·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·responses·202",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·3h41a0·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·responses·202"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "899",
- "body": {
- "$ref": "477"
- },
- "extensions": {
- "$id": "900",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1qv3t5s·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·responses·default",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1qv3t5s·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·put·responses·default"
- ]
- }
- },
- "isNullable": true
- },
- "returnType": {
- "$id": "901",
- "body": {
- "$ref": "266"
- },
- "isNullable": true
- },
- "description": "Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It's also the resource type for billing.",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ],
- "x-ms-requestBody-index": "2"
- },
- "deprecated": false,
- "hidden": false
- },
- {
- "$id": "902",
- "parameters": [
- {
- "$id": "903",
- "clientProperty": {
- "$ref": "759"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "904",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "905",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·19ebe4s·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·19ebe4s·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "906",
- "fixed": false,
- "raw": "resourceGroupName"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "907",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "908",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "909",
- "clientProperty": {
- "$ref": "765"
- },
- "location": "path",
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "910",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "911",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1cb0gcx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1cb0gcx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "912",
- "fixed": false,
- "raw": "accountName"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "913",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "914",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "915",
- "location": "body",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "916",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "917",
- "fixed": false,
- "raw": "The parameters to provide for the created account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·ajs8yv·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·requestbody",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/requestBodies/paths·ajs8yv·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·requestbody"
- ]
- },
- "x-ms-requestBody-name": "account"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "918",
- "fixed": false,
- "raw": "account"
- },
- "serializedName": "account",
- "modelType": {
- "$ref": "266"
- }
- },
- {
- "$id": "919",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "920",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "921",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "922",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "923",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "924",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "925",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "926",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "927",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "928",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "929",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "930",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "931",
- "fixed": false,
- "raw": "Update"
- },
- "group": {
- "$id": "932",
- "fixed": false,
- "raw": "Accounts"
- },
- "serializedName": "Accounts_Update",
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
- "isAbsoluteUrl": false,
- "httpMethod": "patch",
- "responses": {
- "OK": {
- "$id": "933",
- "body": {
- "$ref": "266"
- },
- "extensions": {
- "$id": "934",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1p3l24u·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1p3l24u·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·responses·200"
- ]
- }
- },
- "isNullable": true
- },
- "Accepted": {
- "$id": "935",
- "body": {
- "$ref": "266"
- },
- "extensions": {
- "$id": "936",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1rprnts·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·responses·202",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1rprnts·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·responses·202"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "937",
- "body": {
- "$ref": "477"
- },
- "extensions": {
- "$id": "938",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·7i1b5x·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·responses·default",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·7i1b5x·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·patch·responses·default"
- ]
- }
- },
- "isNullable": true
- },
- "returnType": {
- "$id": "939",
- "body": {
- "$ref": "266"
- },
- "isNullable": true
- },
- "description": "Updates a Cognitive Services account",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ],
- "x-ms-requestBody-index": "2"
- },
- "deprecated": false,
- "hidden": false
- },
- {
- "$id": "940",
- "parameters": [
- {
- "$id": "941",
- "clientProperty": {
- "$ref": "759"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "942",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "943",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·2o12jx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·2o12jx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "944",
- "fixed": false,
- "raw": "resourceGroupName"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "945",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "946",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "947",
- "clientProperty": {
- "$ref": "765"
- },
- "location": "path",
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "948",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "949",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·fxyg3e·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·fxyg3e·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "950",
- "fixed": false,
- "raw": "accountName"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "951",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "952",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "953",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "954",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "955",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "956",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "957",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "958",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "959",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "960",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "961",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "962",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "963",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "964",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "965",
- "fixed": false,
- "raw": "Delete"
- },
- "group": {
- "$id": "966",
- "fixed": false,
- "raw": "Accounts"
- },
- "serializedName": "Accounts_Delete",
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
- "isAbsoluteUrl": false,
- "httpMethod": "delete",
- "responses": {
- "OK": {
- "$id": "967",
- "extensions": {
- "$id": "968",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1nzkg3g·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1nzkg3g·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·responses·200"
- ]
- }
- },
- "isNullable": true
- },
- "Accepted": {
- "$id": "969",
- "extensions": {
- "$id": "970",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1wusk2y·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·responses·202",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1wusk2y·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·responses·202"
- ]
- }
- },
- "isNullable": true
- },
- "NoContent": {
- "$id": "971",
- "extensions": {
- "$id": "972",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·8s63jm·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·responses·204",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·8s63jm·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·responses·204"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "973",
- "body": {
- "$ref": "477"
- },
- "extensions": {
- "$id": "974",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1w11x8j·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·responses·default",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1w11x8j·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·delete·responses·default"
- ]
- }
- },
- "isNullable": true
- },
- "returnType": {
- "$id": "975",
- "isNullable": true
- },
- "description": "Deletes a Cognitive Services account from the resource group. ",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ]
- },
- "deprecated": false,
- "hidden": false
- },
- {
- "$id": "976",
- "parameters": [
- {
- "$id": "977",
- "clientProperty": {
- "$ref": "759"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "978",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "979",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·15co9gx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·15co9gx·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "980",
- "fixed": false,
- "raw": "resourceGroupName"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "981",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "982",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "983",
- "clientProperty": {
- "$ref": "765"
- },
- "location": "path",
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "984",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "985",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·quuaqf·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·quuaqf·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "986",
- "fixed": false,
- "raw": "accountName"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "987",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "988",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "989",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "990",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "991",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "992",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "993",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "994",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "995",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "996",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "997",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "998",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "999",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1000",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "1001",
- "fixed": false,
- "raw": "GetProperties"
- },
- "group": {
- "$id": "1002",
- "fixed": false,
- "raw": "Accounts"
- },
- "serializedName": "Accounts_GetProperties",
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",
- "isAbsoluteUrl": false,
- "httpMethod": "get",
- "responses": {
- "OK": {
- "$id": "1003",
- "body": {
- "$ref": "266"
- },
- "extensions": {
- "$id": "1004",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·19wskzk·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·19wskzk·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·responses·200"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "1005",
- "body": {
- "$ref": "477"
- },
- "extensions": {
- "$id": "1006",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·d4n9l5·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·responses·default",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·d4n9l5·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname·get·responses·default"
- ]
- }
- },
- "isNullable": true
- },
- "returnType": {
- "$id": "1007",
- "body": {
- "$ref": "266"
- },
- "isNullable": true
- },
- "description": "Returns a Cognitive Services account specified by the parameters.",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ]
- },
- "deprecated": false,
- "hidden": false
- },
- {
- "$id": "1008",
- "parameters": [
- {
- "$id": "1009",
- "clientProperty": {
- "$ref": "759"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1010",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1011",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·j4irxz·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts·get·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·j4irxz·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts·get·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1012",
- "fixed": false,
- "raw": "resourceGroupName"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "1013",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1014",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1015",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1016",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1017",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1018",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "1019",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1020",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1021",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1022",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "1023",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "1024",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "1025",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1026",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "1027",
- "fixed": false,
- "raw": "ListByResourceGroup"
- },
- "group": {
- "$id": "1028",
- "fixed": false,
- "raw": "Accounts"
- },
- "serializedName": "Accounts_ListByResourceGroup",
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts",
- "isAbsoluteUrl": false,
- "httpMethod": "get",
- "responses": {
- "OK": {
- "$id": "1029",
- "body": {
- "$ref": "324"
- },
- "extensions": {
- "$id": "1030",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1k6b7z8·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts·get·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1k6b7z8·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts·get·responses·200"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "1031",
- "body": {
- "$ref": "477"
- },
- "extensions": {
- "$id": "1032",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·m7lpll·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts·get·responses·default",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·m7lpll·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts·get·responses·default"
- ]
- }
- },
- "isNullable": true
- },
- "returnType": {
- "$id": "1033",
- "body": {
- "$ref": "324"
- },
- "isNullable": true
- },
- "description": "Returns all the resources of a particular type belonging to a resource group",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ],
- "x-ms-pageable": {
- "nextLinkName": "nextLink"
- }
- },
- "deprecated": false,
- "hidden": false
- },
- {
- "$id": "1034",
- "parameters": [
- {
- "$id": "1035",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1036",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "1037",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "1038",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "1039",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1040",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1041",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1042",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1043",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1044",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "1045",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1046",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "1047",
- "fixed": false,
- "raw": "List"
- },
- "group": {
- "$id": "1048",
- "fixed": false,
- "raw": "Accounts"
- },
- "serializedName": "Accounts_List",
- "url": "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts",
- "isAbsoluteUrl": false,
- "httpMethod": "get",
- "responses": {
- "OK": {
- "$id": "1049",
- "body": {
- "$ref": "324"
- },
- "extensions": {
- "$id": "1050",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·160fmro·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-accounts·get·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·160fmro·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-accounts·get·responses·200"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "1051",
- "body": {
- "$ref": "477"
- },
- "extensions": {
- "$id": "1052",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·ide7qe·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-accounts·get·responses·default",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·ide7qe·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-accounts·get·responses·default"
- ]
- }
- },
- "isNullable": true
- },
- "returnType": {
- "$id": "1053",
- "body": {
- "$ref": "324"
- },
- "isNullable": true
- },
- "description": "Returns all the resources of a particular type belonging to a subscription.",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ],
- "x-ms-pageable": {
- "nextLinkName": "nextLink"
- }
- },
- "deprecated": false,
- "hidden": false
- },
- {
- "$id": "1054",
- "parameters": [
- {
- "$id": "1055",
- "clientProperty": {
- "$ref": "759"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1056",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1057",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1cy245e·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1cy245e·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1058",
- "fixed": false,
- "raw": "resourceGroupName"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "1059",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1060",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1061",
- "clientProperty": {
- "$ref": "765"
- },
- "location": "path",
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "1062",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1063",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·j4axsj·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·j4axsj·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1064",
- "fixed": false,
- "raw": "accountName"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "1065",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1066",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1067",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1068",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "1069",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "1070",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "1071",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1072",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1073",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1074",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1075",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1076",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "1077",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1078",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "1079",
- "fixed": false,
- "raw": "ListKeys"
- },
- "group": {
- "$id": "1080",
- "fixed": false,
- "raw": "Accounts"
- },
- "serializedName": "Accounts_ListKeys",
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys",
- "isAbsoluteUrl": false,
- "httpMethod": "post",
- "responses": {
- "OK": {
- "$id": "1081",
- "body": {
- "$ref": "338"
- },
- "extensions": {
- "$id": "1082",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1laku2t·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1laku2t·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·responses·200"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "1083",
- "body": {
- "$ref": "477"
- },
- "extensions": {
- "$id": "1084",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·h9botk·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·responses·default",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·h9botk·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-listkeys·post·responses·default"
- ]
- }
- },
- "isNullable": true
- },
- "returnType": {
- "$id": "1085",
- "body": {
- "$ref": "338"
- },
- "isNullable": true
- },
- "description": "Lists the account keys for the specified Cognitive Services account.",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ]
- },
- "deprecated": false,
- "hidden": false
- },
- {
- "$id": "1086",
- "parameters": [
- {
- "$id": "1087",
- "clientProperty": {
- "$ref": "759"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1088",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1089",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·ld9150·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·ld9150·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1090",
- "fixed": false,
- "raw": "resourceGroupName"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "1091",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1092",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1093",
- "clientProperty": {
- "$ref": "765"
- },
- "location": "path",
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "1094",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1095",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·60buey·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·60buey·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1096",
- "fixed": false,
- "raw": "accountName"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "1097",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1098",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1099",
- "location": "body",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1100",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1101",
- "fixed": false,
- "raw": "regenerate key parameters."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·hxl5ga·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·requestbody",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/requestBodies/paths·hxl5ga·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·requestbody"
- ]
- },
- "x-ms-client-flatten": true,
- "x-ms-requestBody-name": "parameters"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1102",
- "fixed": false,
- "raw": "parameters"
- },
- "serializedName": "parameters",
- "modelType": {
- "$ref": "352"
- }
- },
- {
- "$id": "1103",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1104",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "1105",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "1106",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "1107",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1108",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1109",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1110",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1111",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1112",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "1113",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1114",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "1115",
- "fixed": false,
- "raw": "RegenerateKey"
- },
- "group": {
- "$id": "1116",
- "fixed": false,
- "raw": "Accounts"
- },
- "serializedName": "Accounts_RegenerateKey",
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey",
- "isAbsoluteUrl": false,
- "httpMethod": "post",
- "responses": {
- "OK": {
- "$id": "1117",
- "body": {
- "$ref": "338"
- },
- "extensions": {
- "$id": "1118",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·3te3wy·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·3te3wy·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·responses·200"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "1119",
- "body": {
- "$ref": "477"
- },
- "extensions": {
- "$id": "1120",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1916uwd·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·responses·default",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1916uwd·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-regeneratekey·post·responses·default"
- ]
- }
- },
- "isNullable": true
- },
- "returnType": {
- "$id": "1121",
- "body": {
- "$ref": "338"
- },
- "isNullable": true
- },
- "description": "Regenerates the specified account key for the specified Cognitive Services account.",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ],
- "x-ms-requestBody-index": "2"
- },
- "deprecated": false,
- "hidden": false
- },
- {
- "$id": "1122",
- "parameters": [
- {
- "$id": "1123",
- "clientProperty": {
- "$ref": "759"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1124",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1125",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·ll7d0j·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·ll7d0j·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1126",
- "fixed": false,
- "raw": "resourceGroupName"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "1127",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1128",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1129",
- "clientProperty": {
- "$ref": "765"
- },
- "location": "path",
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "1130",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1131",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·156v833·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·156v833·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1132",
- "fixed": false,
- "raw": "accountName"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "1133",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1134",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1135",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1136",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "1137",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "1138",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "1139",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1140",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1141",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1142",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1143",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1144",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "1145",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1146",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "1147",
- "fixed": false,
- "raw": "ListSkus"
- },
- "group": {
- "$id": "1148",
- "fixed": false,
- "raw": "Accounts"
- },
- "serializedName": "Accounts_ListSkus",
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus",
- "isAbsoluteUrl": false,
- "httpMethod": "get",
- "responses": {
- "OK": {
- "$id": "1149",
- "body": {
- "$ref": "376"
- },
- "extensions": {
- "$id": "1150",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1nvs6dt·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1nvs6dt·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·responses·200"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "1151",
- "body": {
- "$ref": "477"
- },
- "extensions": {
- "$id": "1152",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·13ccxyt·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·responses·default",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·13ccxyt·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-skus·get·responses·default"
- ]
- }
- },
- "isNullable": true
- },
- "returnType": {
- "$id": "1153",
- "body": {
- "$ref": "376"
- },
- "isNullable": true
- },
- "description": "List available SKUs for the requested Cognitive Services account",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ]
- },
- "deprecated": false,
- "hidden": false
- },
- {
- "$id": "1154",
- "parameters": [
- {
- "$id": "1155",
- "clientProperty": {
- "$ref": "759"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1156",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1157",
- "fixed": false,
- "raw": "The name of the resource group within the user's subscription."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1cqqkfk·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·parameters·0",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1cqqkfk·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·parameters·0"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1158",
- "fixed": false,
- "raw": "resourceGroupName"
- },
- "serializedName": "resourceGroupName",
- "modelType": {
- "$id": "1159",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1160",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1161",
- "clientProperty": {
- "$ref": "765"
- },
- "location": "path",
- "collectionFormat": "none",
- "constraints": {
- "MaxLength": "64",
- "MinLength": "2",
- "Pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"
- },
- "defaultValue": {
- "$id": "1162",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1163",
- "fixed": false,
- "raw": "The name of Cognitive Services account."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1i7cjkm·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·parameters·1",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/paths·1i7cjkm·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·parameters·1"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1164",
- "fixed": false,
- "raw": "accountName"
- },
- "serializedName": "accountName",
- "modelType": {
- "$id": "1165",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1166",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1167",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1168",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "1169",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "1170",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "1171",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1172",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1173",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1174",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1175",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1176",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "1177",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1178",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1179",
- "clientProperty": {
- "$ref": "753"
- },
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1180",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1181",
- "fixed": false,
- "raw": "An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names)."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "usageFilterParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/usageFilterParameter"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": false,
- "isConstant": false,
- "name": {
- "$id": "1182",
- "fixed": false,
- "raw": "$filter"
- },
- "serializedName": "$filter",
- "modelType": {
- "$id": "1183",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1184",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "1185",
- "fixed": false,
- "raw": "GetUsages"
- },
- "group": {
- "$id": "1186",
- "fixed": false,
- "raw": "Accounts"
- },
- "serializedName": "Accounts_GetUsages",
- "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages",
- "isAbsoluteUrl": false,
- "httpMethod": "get",
- "responses": {
- "OK": {
- "$id": "1187",
- "body": {
- "$ref": "455"
- },
- "extensions": {
- "$id": "1188",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·6y7pdv·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·6y7pdv·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·responses·200"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "1189",
- "body": {
- "$ref": "477"
- },
- "extensions": {
- "$id": "1190",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·kzxs8q·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·responses·default",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·kzxs8q·subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsoft-cognitiveservices-accounts-accountname-usages·get·responses·default"
- ]
- }
- },
- "isNullable": true
- },
- "returnType": {
- "$id": "1191",
- "body": {
- "$ref": "455"
- },
- "isNullable": true
- },
- "description": "Get usages for the requested Cognitive Services account",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ]
- },
- "deprecated": false,
- "hidden": false
- }
- ],
- "name": {
- "$id": "1192",
- "fixed": false,
- "raw": "Accounts"
- },
- "typeName": {
- "$id": "1193",
- "fixed": false
- },
- "nameForProperty": "Accounts"
- },
- {
- "$id": "1194",
- "methods": [
- {
- "$id": "1195",
- "parameters": [
- {
- "$id": "1196",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1197",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "1198",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "1199",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "1200",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1201",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1202",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1203",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1204",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1205",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "1206",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1207",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "1208",
- "fixed": false,
- "raw": "List"
- },
- "group": {
- "$id": "1209",
- "fixed": false,
- "raw": "ResourceSkus"
- },
- "serializedName": "ResourceSkus_List",
- "url": "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus",
- "isAbsoluteUrl": false,
- "httpMethod": "get",
- "responses": {
- "OK": {
- "$id": "1210",
- "body": {
- "$ref": "721"
- },
- "extensions": {
- "$id": "1211",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·1dkxlls·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-skus·get·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·1dkxlls·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-skus·get·responses·200"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "1212",
- "isNullable": true
- },
- "returnType": {
- "$id": "1213",
- "body": {
- "$ref": "721"
- },
- "isNullable": true
- },
- "description": "Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription.",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ],
- "x-ms-pageable": {
- "nextLinkName": "nextLink"
- }
- },
- "deprecated": false,
- "hidden": false
- }
- ],
- "name": {
- "$id": "1214",
- "fixed": false,
- "raw": "ResourceSkus"
- },
- "typeName": {
- "$id": "1215",
- "fixed": false
- },
- "nameForProperty": "ResourceSkus"
- },
- {
- "$id": "1216",
- "methods": [
- {
- "$id": "1217",
- "parameters": [
- {
- "$id": "1218",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1219",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "1220",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "1221",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "1222",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1223",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- }
- ],
- "name": {
- "$id": "1224",
- "fixed": false,
- "raw": "List"
- },
- "group": {
- "$id": "1225",
- "fixed": false,
- "raw": "Operations"
- },
- "serializedName": "Operations_List",
- "url": "/providers/Microsoft.CognitiveServices/operations",
- "isAbsoluteUrl": false,
- "httpMethod": "get",
- "responses": {
- "OK": {
- "$id": "1226",
- "body": {
- "$ref": "533"
- },
- "extensions": {
- "$id": "1227",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·gqy2tt·providers-microsoft-cognitiveservices-operations·get·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·gqy2tt·providers-microsoft-cognitiveservices-operations·get·responses·200"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "1228",
- "isNullable": true
- },
- "returnType": {
- "$id": "1229",
- "body": {
- "$ref": "533"
- },
- "isNullable": true
- },
- "description": "Lists all the available Cognitive Services account operations.",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ],
- "x-ms-pageable": {
- "nextLinkName": "nextLink"
- }
- },
- "deprecated": false,
- "hidden": false
- }
- ],
- "name": {
- "$id": "1230",
- "fixed": false,
- "raw": "Operations"
- },
- "typeName": {
- "$id": "1231",
- "fixed": false
- },
- "nameForProperty": "Operations"
- },
- {
- "$id": "1232",
- "methods": [
- {
- "$id": "1233",
- "parameters": [
- {
- "$id": "1234",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1235",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1236",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1237",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "1238",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1239",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1240",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1241",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "1242",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "1243",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "1244",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1245",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1246",
- "clientProperty": {
- "$ref": "747"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1247",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1248",
- "fixed": false,
- "raw": "Resource location."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "locationParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/locationParameter"
- ]
- },
- "x-ms-parameter-location": "method"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1249",
- "fixed": false,
- "raw": "location"
- },
- "serializedName": "location",
- "modelType": {
- "$id": "1250",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1251",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1252",
- "location": "body",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1253",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1254",
- "fixed": false,
- "raw": "Check SKU Availability POST body."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·anyp1k·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-locations-location-checkskuavailability·post·requestbody",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/requestBodies/paths·anyp1k·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-locations-location-checkskuavailability·post·requestbody"
- ]
- },
- "x-ms-client-flatten": true,
- "x-ms-requestBody-name": "parameters"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1255",
- "fixed": false,
- "raw": "parameters"
- },
- "serializedName": "parameters",
- "modelType": {
- "$ref": "547"
- }
- }
- ],
- "name": {
- "$id": "1256",
- "fixed": false,
- "raw": "CheckSkuAvailability"
- },
- "group": {
- "$id": "1257",
- "fixed": false,
- "raw": ""
- },
- "serializedName": "CheckSkuAvailability",
- "url": "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability",
- "isAbsoluteUrl": false,
- "httpMethod": "post",
- "responses": {
- "OK": {
- "$id": "1258",
- "body": {
- "$ref": "607"
- },
- "extensions": {
- "$id": "1259",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·6ue06y·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-locations-location-checkskuavailability·post·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·6ue06y·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-locations-location-checkskuavailability·post·responses·200"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "1260",
- "isNullable": true
- },
- "returnType": {
- "$id": "1261",
- "body": {
- "$ref": "607"
- },
- "isNullable": true
- },
- "description": "Check available SKUs.",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ],
- "x-ms-requestBody-index": "3"
- },
- "deprecated": false,
- "hidden": false
- },
- {
- "$id": "1262",
- "parameters": [
- {
- "$id": "1263",
- "clientProperty": {
- "$ref": "735"
- },
- "location": "path",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1264",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1265",
- "fixed": false,
- "raw": "Azure Subscription ID."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "subscriptionIdParameter",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/parameters/subscriptionIdParameter"
- ]
- }
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1266",
- "fixed": false,
- "raw": "subscriptionId"
- },
- "serializedName": "subscriptionId",
- "modelType": {
- "$id": "1267",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1268",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1269",
- "location": "query",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1270",
- "fixed": false,
- "raw": "2017-04-18"
- },
- "deprecated": false,
- "documentation": {
- "$id": "1271",
- "fixed": false,
- "raw": "The API version to use for the request."
- },
- "isRequired": true,
- "isConstant": true,
- "name": {
- "$id": "1272",
- "fixed": false,
- "raw": "api-version"
- },
- "serializedName": "api-version",
- "modelType": {
- "$id": "1273",
- "$type": "PrimaryType",
- "knownPrimaryType": "string",
- "name": {
- "$id": "1274",
- "fixed": false,
- "raw": "String"
- },
- "deprecated": false
- }
- },
- {
- "$id": "1275",
- "location": "body",
- "collectionFormat": "none",
- "defaultValue": {
- "$id": "1276",
- "fixed": false
- },
- "deprecated": false,
- "documentation": {
- "$id": "1277",
- "fixed": false,
- "raw": "Check Domain Availability parameter."
- },
- "extensions": {
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·jvccq2·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-checkdomainavailability·post·requestbody",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/requestBodies/paths·jvccq2·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-checkdomainavailability·post·requestbody"
- ]
- },
- "x-ms-client-flatten": true,
- "x-ms-requestBody-name": "parameters"
- },
- "isRequired": true,
- "isConstant": false,
- "name": {
- "$id": "1278",
- "fixed": false,
- "raw": "parameters"
- },
- "serializedName": "parameters",
- "modelType": {
- "$ref": "615"
- }
- }
- ],
- "name": {
- "$id": "1279",
- "fixed": false,
- "raw": "CheckDomainAvailability"
- },
- "group": {
- "$id": "1280",
- "fixed": false,
- "raw": ""
- },
- "serializedName": "CheckDomainAvailability",
- "url": "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability",
- "isAbsoluteUrl": false,
- "httpMethod": "post",
- "responses": {
- "OK": {
- "$id": "1281",
- "body": {
- "$ref": "2"
- },
- "extensions": {
- "$id": "1282",
- "x-ms-metadata": {
- "apiVersions": [
- "2017-04-18"
- ],
- "filename": [
- "mem:///141?oai3.shaken.json"
- ],
- "name": "paths·oaw4bo·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-checkdomainavailability·post·responses·200",
- "originalLocations": [
- "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json#/components/responses/paths·oaw4bo·subscriptions-subscriptionid-providers-microsoft-cognitiveservices-checkdomainavailability·post·responses·200"
- ]
- }
- },
- "isNullable": true
- }
- },
- "defaultResponse": {
- "$id": "1283",
- "isNullable": true
- },
- "returnType": {
- "$id": "1284",
- "body": {
- "$ref": "2"
- },
- "isNullable": true
- },
- "description": "Check whether a domain is available.",
- "requestContentType": "application/json; charset=utf-8",
- "responseContentTypes": [
- "application/json"
- ],
- "extensions": {
- "servers": [
- {
- "url": "https://management.azure.com/"
- }
- ],
- "x-ms-requestBody-index": "2"
- },
- "deprecated": false,
- "hidden": false
- }
- ],
- "name": {
- "$id": "1285",
- "fixed": false,
- "raw": ""
- },
- "typeName": {
- "$id": "1286",
- "fixed": false
- },
- "nameForProperty": "CognitiveServicesManagementClient"
- }
- ]
-}
\ No newline at end of file