@azure/arm-cognitiveservices
Advanced tools
Comparing version 2.4.2 to 3.0.0
@@ -56,8 +56,6 @@ /* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -71,8 +69,6 @@ | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -181,2 +177,8 @@ var CloudError = msRestAzure.CloudErrorMapper; | ||
} | ||
}, | ||
properties: { | ||
serializedName: "properties", | ||
type: { | ||
name: "Object" | ||
} | ||
} | ||
@@ -243,2 +245,8 @@ } | ||
}, | ||
customSubDomainName: { | ||
serializedName: "properties.customSubDomainName", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
sku: { | ||
@@ -923,26 +931,24 @@ serializedName: "sku", | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
var Mappers = /*#__PURE__*/Object.freeze({ | ||
BaseResource: BaseResource, | ||
CognitiveServicesAccount: CognitiveServicesAccount, | ||
CognitiveServicesAccountCreateParameters: CognitiveServicesAccountCreateParameters, | ||
Sku: Sku, | ||
CognitiveServicesAccount: CognitiveServicesAccount, | ||
BaseResource: BaseResource, | ||
CognitiveServicesAccountEnumerateSkusResult: CognitiveServicesAccountEnumerateSkusResult, | ||
CognitiveServicesAccountKeys: CognitiveServicesAccountKeys, | ||
CognitiveServicesAccountListResult: CognitiveServicesAccountListResult, | ||
CognitiveServicesAccountUpdateParameters: CognitiveServicesAccountUpdateParameters, | ||
CognitiveServicesResourceAndSku: CognitiveServicesResourceAndSku, | ||
ErrorBody: ErrorBody, | ||
ErrorModel: ErrorModel, | ||
ErrorBody: ErrorBody, | ||
CognitiveServicesAccountUpdateParameters: CognitiveServicesAccountUpdateParameters, | ||
CognitiveServicesAccountListResult: CognitiveServicesAccountListResult, | ||
CognitiveServicesAccountKeys: CognitiveServicesAccountKeys, | ||
MetricName: MetricName, | ||
RegenerateKeyParameters: RegenerateKeyParameters, | ||
CognitiveServicesAccountEnumerateSkusResult: CognitiveServicesAccountEnumerateSkusResult, | ||
CognitiveServicesResourceAndSku: CognitiveServicesResourceAndSku, | ||
UsagesResult: UsagesResult, | ||
Sku: Sku, | ||
Usage: Usage, | ||
MetricName: MetricName | ||
UsagesResult: UsagesResult | ||
}); | ||
@@ -1205,2 +1211,6 @@ | ||
"tags" | ||
], | ||
properties: [ | ||
"options", | ||
"properties" | ||
] | ||
@@ -1458,16 +1468,14 @@ }, | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
var Mappers$1 = /*#__PURE__*/Object.freeze({ | ||
ResourceSkusResult: ResourceSkusResult, | ||
CloudError: CloudError, | ||
ResourceSku: ResourceSku, | ||
ResourceSkuRestrictionInfo: ResourceSkuRestrictionInfo, | ||
ResourceSkuRestrictions: ResourceSkuRestrictions, | ||
ResourceSkuRestrictionInfo: ResourceSkuRestrictionInfo, | ||
CloudError: CloudError | ||
ResourceSkusResult: ResourceSkusResult | ||
}); | ||
@@ -1553,15 +1561,13 @@ | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
var Mappers$2 = /*#__PURE__*/Object.freeze({ | ||
OperationEntityListResult: OperationEntityListResult, | ||
CloudError: CloudError, | ||
OperationDisplayInfo: OperationDisplayInfo, | ||
OperationEntity: OperationEntity, | ||
OperationDisplayInfo: OperationDisplayInfo, | ||
CloudError: CloudError | ||
OperationEntityListResult: OperationEntityListResult | ||
}); | ||
@@ -1644,8 +1650,6 @@ | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -1655,4 +1659,4 @@ | ||
CheckSkuAvailabilityParameter: CheckSkuAvailabilityParameter, | ||
CheckSkuAvailabilityResult: CheckSkuAvailabilityResult, | ||
CheckSkuAvailabilityResultList: CheckSkuAvailabilityResultList, | ||
CheckSkuAvailabilityResult: CheckSkuAvailabilityResult, | ||
CloudError: CloudError | ||
@@ -1744,3 +1748,3 @@ }); | ||
var packageName = "@azure/arm-cognitiveservices"; | ||
var packageVersion = "2.4.2"; | ||
var packageVersion = "3.0.0"; | ||
var CognitiveServicesManagementClientContext = /** @class */ (function (_super) { | ||
@@ -1747,0 +1751,0 @@ __extends(CognitiveServicesManagementClientContext, _super); |
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@azure/ms-rest-azure-js"),require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-azure-js","@azure/ms-rest-js"],r):r((e.Azure=e.Azure||{},e.Azure.ArmCognitiveservices={}),e.msRestAzure,e.msRest)}(this,function(e,n,r){"use strict";var a=function(e,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(e,r)};function t(e,r){function t(){this.constructor=e}a(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var i=function(){return(i=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e}).apply(this,arguments)},s=Object.freeze({}),o=n.CloudErrorMapper,p=n.BaseResourceMapper,u={serializedName:"Sku",type:{name:"Composite",className:"Sku",modelProperties:{name:{required:!0,serializedName:"name",type:{name:"String"}},tier:{readOnly:!0,serializedName:"tier",type:{name:"Enum",allowedValues:["Free","Standard","Premium"]}}}}},m={serializedName:"CognitiveServicesAccountCreateParameters",type:{name:"Composite",className:"CognitiveServicesAccountCreateParameters",modelProperties:{sku:{required:!0,serializedName:"sku",type:{name:"Composite",className:"Sku"}},kind:{required:!0,serializedName:"kind",type:{name:"String"}},location:{required:!0,serializedName:"location",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},properties:{required:!0,serializedName:"properties",type:{name:"Object"}}}}},c={serializedName:"CognitiveServicesAccountUpdateParameters",type:{name:"Composite",className:"CognitiveServicesAccountUpdateParameters",modelProperties:{sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},l={serializedName:"CognitiveServicesAccount",type:{name:"Composite",className:"CognitiveServicesAccount",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},id:{readOnly:!0,serializedName:"id",type:{name:"String"}},kind:{serializedName:"kind",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},name:{readOnly:!0,serializedName:"name",type:{name:"String"}},provisioningState:{readOnly:!0,serializedName:"properties.provisioningState",type:{name:"String"}},endpoint:{serializedName:"properties.endpoint",type:{name:"String"}},internalId:{serializedName:"properties.internalId",type:{name:"String"}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},type:{readOnly:!0,serializedName:"type",type:{name:"String"}}}}},d={serializedName:"CognitiveServicesAccountKeys",type:{name:"Composite",className:"CognitiveServicesAccountKeys",modelProperties:{key1:{serializedName:"key1",type:{name:"String"}},key2:{serializedName:"key2",type:{name:"String"}}}}},y={serializedName:"RegenerateKeyParameters",type:{name:"Composite",className:"RegenerateKeyParameters",modelProperties:{keyName:{required:!0,serializedName:"keyName",type:{name:"Enum",allowedValues:["Key1","Key2"]}}}}},N={serializedName:"CognitiveServicesResourceAndSku",type:{name:"Composite",className:"CognitiveServicesResourceAndSku",modelProperties:{resourceType:{serializedName:"resourceType",type:{name:"String"}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}}}}},g={serializedName:"CognitiveServicesAccountEnumerateSkusResult",type:{name:"Composite",className:"CognitiveServicesAccountEnumerateSkusResult",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CognitiveServicesResourceAndSku"}}}}}}},S={serializedName:"MetricName",type:{name:"Composite",className:"MetricName",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"String"}},localizedValue:{readOnly:!0,serializedName:"localizedValue",type:{name:"String"}}}}},v={serializedName:"Usage",type:{name:"Composite",className:"Usage",modelProperties:{unit:{serializedName:"unit",type:{name:"String"}},name:{readOnly:!0,serializedName:"name",type:{name:"Composite",className:"MetricName"}},quotaPeriod:{readOnly:!0,serializedName:"quotaPeriod",type:{name:"String"}},limit:{readOnly:!0,serializedName:"limit",type:{name:"Number"}},currentValue:{readOnly:!0,serializedName:"currentValue",type:{name:"Number"}},nextResetTime:{readOnly:!0,serializedName:"nextResetTime",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}}}}},z={serializedName:"UsagesResult",type:{name:"Composite",className:"UsagesResult",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Usage"}}}}}}},h={serializedName:"ErrorBody",type:{name:"Composite",className:"ErrorBody",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"String"}},message:{required:!0,serializedName:"message",type:{name:"String"}}}}},k={serializedName:"Error",type:{name:"Composite",className:"ErrorModel",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorBody"}}}}},C={serializedName:"OperationDisplayInfo",type:{name:"Composite",className:"OperationDisplayInfo",modelProperties:{description:{serializedName:"description",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}}}}},P={serializedName:"OperationEntity",type:{name:"Composite",className:"OperationEntity",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplayInfo"}},origin:{serializedName:"origin",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Object"}}}}},f={serializedName:"CheckSkuAvailabilityParameter",type:{name:"Composite",className:"CheckSkuAvailabilityParameter",modelProperties:{skus:{required:!0,serializedName:"skus",type:{name:"Sequence",element:{type:{name:"String"}}}},kind:{required:!0,serializedName:"kind",type:{name:"String"}},type:{required:!0,serializedName:"type",type:{name:"String"}}}}},b={serializedName:"CheckSkuAvailabilityResult",type:{name:"Composite",className:"CheckSkuAvailabilityResult",modelProperties:{kind:{serializedName:"kind",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}},skuName:{serializedName:"skuName",type:{name:"String"}},skuAvailable:{serializedName:"skuAvailable",type:{name:"Boolean"}},reason:{serializedName:"reason",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},R={serializedName:"CheckSkuAvailabilityResultList",type:{name:"Composite",className:"CheckSkuAvailabilityResultList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CheckSkuAvailabilityResult"}}}}}}},M={serializedName:"ResourceSkuRestrictionInfo",type:{name:"Composite",className:"ResourceSkuRestrictionInfo",modelProperties:{locations:{readOnly:!0,serializedName:"locations",type:{name:"Sequence",element:{type:{name:"String"}}}},zones:{readOnly:!0,serializedName:"zones",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},O={serializedName:"ResourceSkuRestrictions",type:{name:"Composite",className:"ResourceSkuRestrictions",modelProperties:{type:{readOnly:!0,serializedName:"type",type:{name:"Enum",allowedValues:["Location","Zone"]}},values:{readOnly:!0,serializedName:"values",type:{name:"Sequence",element:{type:{name:"String"}}}},restrictionInfo:{readOnly:!0,serializedName:"restrictionInfo",type:{name:"Composite",className:"ResourceSkuRestrictionInfo"}},reasonCode:{readOnly:!0,serializedName:"reasonCode",type:{name:"String"}}}}},q={serializedName:"ResourceSku",type:{name:"Composite",className:"ResourceSku",modelProperties:{resourceType:{readOnly:!0,serializedName:"resourceType",type:{name:"String"}},name:{readOnly:!0,serializedName:"name",type:{name:"String"}},tier:{readOnly:!0,serializedName:"tier",type:{name:"String"}},kind:{readOnly:!0,serializedName:"kind",type:{name:"String"}},locations:{readOnly:!0,serializedName:"locations",type:{name:"Sequence",element:{type:{name:"String"}}}},restrictions:{readOnly:!0,serializedName:"restrictions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ResourceSkuRestrictions"}}}}}}},A={serializedName:"CognitiveServicesAccountListResult",type:{name:"Composite",className:"CognitiveServicesAccountListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{readOnly:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"CognitiveServicesAccount"}}}}}}},E={serializedName:"ResourceSkusResult",type:{name:"Composite",className:"ResourceSkusResult",modelProperties:{value:{required:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"ResourceSku"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},G={serializedName:"OperationEntityListResult",type:{name:"Composite",className:"OperationEntityListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationEntity"}}}}}}},L=Object.freeze({CloudError:o,BaseResource:p,Sku:u,CognitiveServicesAccountCreateParameters:m,CognitiveServicesAccountUpdateParameters:c,CognitiveServicesAccount:l,CognitiveServicesAccountKeys:d,RegenerateKeyParameters:y,CognitiveServicesResourceAndSku:N,CognitiveServicesAccountEnumerateSkusResult:g,MetricName:S,Usage:v,UsagesResult:z,ErrorBody:h,ErrorModel:k,OperationDisplayInfo:C,OperationEntity:P,CheckSkuAvailabilityParameter:f,CheckSkuAvailabilityResult:b,CheckSkuAvailabilityResultList:R,ResourceSkuRestrictionInfo:M,ResourceSkuRestrictions:O,ResourceSku:q,CognitiveServicesAccountListResult:A,ResourceSkusResult:E,OperationEntityListResult:G}),I=Object.freeze({CognitiveServicesAccountCreateParameters:m,Sku:u,CognitiveServicesAccount:l,BaseResource:p,ErrorModel:k,ErrorBody:h,CognitiveServicesAccountUpdateParameters:c,CognitiveServicesAccountListResult:A,CognitiveServicesAccountKeys:d,RegenerateKeyParameters:y,CognitiveServicesAccountEnumerateSkusResult:g,CognitiveServicesResourceAndSku:N,UsagesResult:z,Usage:v,MetricName:S}),T={parameterPath:"acceptLanguage",mapper:{serializedName:"accept-language",defaultValue:"en-US",type:{name:"String"}}},x={parameterPath:"accountName",mapper:{required:!0,serializedName:"accountName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/},type:{name:"String"}}},U={parameterPath:"apiVersion",mapper:{required:!0,serializedName:"api-version",type:{name:"String"}}},j={parameterPath:"nextPageLink",mapper:{required:!0,serializedName:"nextLink",type:{name:"String"}},skipEncoding:!0},w={parameterPath:"resourceGroupName",mapper:{required:!0,serializedName:"resourceGroupName",type:{name:"String"}}},B={parameterPath:"subscriptionId",mapper:{required:!0,serializedName:"subscriptionId",type:{name:"String"}}},K=function(){function e(e){this.client=e}return e.prototype.create=function(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,parameters:t,options:a},_,i)},e.prototype.update=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},D,a)},e.prototype.deleteMethod=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},Z,a)},e.prototype.getProperties=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},$,a)},e.prototype.listByResourceGroup=function(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,options:r},F,t)},e.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},H,r)},e.prototype.listKeys=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},J,a)},e.prototype.regenerateKey=function(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,keyName:t,options:a},Q,i)},e.prototype.listSkus=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},W,a)},e.prototype.getUsages=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},X,a)},e.prototype.listByResourceGroupNext=function(e,r,t){return this.client.sendOperationRequest({nextPageLink:e,options:r},Y,t)},e.prototype.listNext=function(e,r,t){return this.client.sendOperationRequest({nextPageLink:e,options:r},ee,t)},e}(),V=new r.Serializer(I),_={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],requestBody:{parameterPath:"parameters",mapper:i({},m,{required:!0})},responses:{200:{bodyMapper:l},201:{bodyMapper:l},default:{bodyMapper:k}},serializer:V},D={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],requestBody:{parameterPath:{sku:["options","sku"],tags:["options","tags"]},mapper:i({},c,{required:!0})},responses:{200:{bodyMapper:l},default:{bodyMapper:k}},serializer:V},Z={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],responses:{200:{},204:{},default:{bodyMapper:k}},serializer:V},$={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:l},default:{bodyMapper:k}},serializer:V},F={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts",urlParameters:[w,B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:A},default:{bodyMapper:k}},serializer:V},H={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts",urlParameters:[B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:A},default:{bodyMapper:k}},serializer:V},J={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:d},default:{bodyMapper:k}},serializer:V},Q={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],requestBody:{parameterPath:{keyName:"keyName"},mapper:i({},y,{required:!0})},responses:{200:{bodyMapper:d},default:{bodyMapper:k}},serializer:V},W={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:g},default:{bodyMapper:k}},serializer:V},X={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages",urlParameters:[w,x,B],queryParameters:[U,{parameterPath:["options","filter"],mapper:{serializedName:"$filter",type:{name:"String"}}}],headerParameters:[T],responses:{200:{bodyMapper:z},default:{bodyMapper:k}},serializer:V},Y={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[j],headerParameters:[T],responses:{200:{bodyMapper:A},default:{bodyMapper:k}},serializer:V},ee={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[j],headerParameters:[T],responses:{200:{bodyMapper:A},default:{bodyMapper:k}},serializer:V},re=Object.freeze({ResourceSkusResult:E,ResourceSku:q,ResourceSkuRestrictions:O,ResourceSkuRestrictionInfo:M,CloudError:o}),te=function(){function e(e){this.client=e}return e.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},ie,r)},e.prototype.listNext=function(e,r,t){return this.client.sendOperationRequest({nextPageLink:e,options:r},se,t)},e}(),ae=new r.Serializer(re),ie={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus",urlParameters:[B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:E},default:{bodyMapper:o}},serializer:ae},se={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[j],headerParameters:[T],responses:{200:{bodyMapper:E},default:{bodyMapper:o}},serializer:ae},ne=Object.freeze({OperationEntityListResult:G,OperationEntity:P,OperationDisplayInfo:C,CloudError:o}),oe=function(){function e(e){this.client=e}return e.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},ue,r)},e.prototype.listNext=function(e,r,t){return this.client.sendOperationRequest({nextPageLink:e,options:r},me,t)},e}(),pe=new r.Serializer(ne),ue={httpMethod:"GET",path:"providers/Microsoft.CognitiveServices/operations",queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:G},default:{bodyMapper:o}},serializer:pe},me={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[j],headerParameters:[T],responses:{200:{bodyMapper:G},default:{bodyMapper:o}},serializer:pe},ce=Object.freeze({CheckSkuAvailabilityParameter:f,CheckSkuAvailabilityResultList:R,CheckSkuAvailabilityResult:b,CloudError:o}),le=function(){function e(e){this.client=e}return e.prototype.list=function(e,r,t,a,i,s){return this.client.sendOperationRequest({location:e,skus:r,kind:t,type:a,options:i},ye,s)},e}(),de=new r.Serializer(ce),ye={httpMethod:"POST",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability",urlParameters:[B,{parameterPath:"location",mapper:{required:!0,serializedName:"location",type:{name:"String"}}}],queryParameters:[U],headerParameters:[T],requestBody:{parameterPath:{skus:"skus",kind:"kind",type:"type"},mapper:i({},f,{required:!0})},responses:{200:{bodyMapper:R},default:{bodyMapper:o}},serializer:de},Ne=function(s){function e(e,r,t){var a=this;if(null==e)throw new Error("'credentials' cannot be null.");if(null==r)throw new Error("'subscriptionId' cannot be null.");if(t||(t={}),!t.userAgent){var i=n.getDefaultUserAgentValue();t.userAgent="@azure/arm-cognitiveservices/2.4.2 "+i}return(a=s.call(this,e,t)||this).apiVersion="2017-04-18",a.acceptLanguage="en-US",a.longRunningOperationRetryTimeout=30,a.baseUri=t.baseUri||a.baseUri||"https://management.azure.com",a.requestContentType="application/json; charset=utf-8",a.credentials=e,a.subscriptionId=r,null!==t.acceptLanguage&&void 0!==t.acceptLanguage&&(a.acceptLanguage=t.acceptLanguage),null!==t.longRunningOperationRetryTimeout&&void 0!==t.longRunningOperationRetryTimeout&&(a.longRunningOperationRetryTimeout=t.longRunningOperationRetryTimeout),a}return t(e,s),e}(n.AzureServiceClient),ge=function(i){function e(e,r,t){var a=i.call(this,e,r,t)||this;return a.accounts=new K(a),a.resourceSkus=new te(a),a.operations=new oe(a),a.checkSkuAvailability=new le(a),a}return t(e,i),e}(Ne);e.CognitiveServicesManagementClient=ge,e.CognitiveServicesManagementClientContext=Ne,e.CognitiveServicesManagementModels=s,e.CognitiveServicesManagementMappers=L,e.Accounts=K,e.ResourceSkus=te,e.Operations=oe,e.CheckSkuAvailability=le,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@azure/ms-rest-azure-js"),require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-azure-js","@azure/ms-rest-js"],r):r((e.Azure=e.Azure||{},e.Azure.ArmCognitiveservices={}),e.msRestAzure,e.msRest)}(this,function(e,s,r){"use strict";var a=function(e,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(e,r)};function t(e,r){function t(){this.constructor=e}a(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var i=function(){return(i=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e}).apply(this,arguments)},n=Object.freeze({}),o=s.CloudErrorMapper,p=s.BaseResourceMapper,m={serializedName:"Sku",type:{name:"Composite",className:"Sku",modelProperties:{name:{required:!0,serializedName:"name",type:{name:"String"}},tier:{readOnly:!0,serializedName:"tier",type:{name:"Enum",allowedValues:["Free","Standard","Premium"]}}}}},u={serializedName:"CognitiveServicesAccountCreateParameters",type:{name:"Composite",className:"CognitiveServicesAccountCreateParameters",modelProperties:{sku:{required:!0,serializedName:"sku",type:{name:"Composite",className:"Sku"}},kind:{required:!0,serializedName:"kind",type:{name:"String"}},location:{required:!0,serializedName:"location",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},properties:{required:!0,serializedName:"properties",type:{name:"Object"}}}}},c={serializedName:"CognitiveServicesAccountUpdateParameters",type:{name:"Composite",className:"CognitiveServicesAccountUpdateParameters",modelProperties:{sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},properties:{serializedName:"properties",type:{name:"Object"}}}}},l={serializedName:"CognitiveServicesAccount",type:{name:"Composite",className:"CognitiveServicesAccount",modelProperties:{etag:{serializedName:"etag",type:{name:"String"}},id:{readOnly:!0,serializedName:"id",type:{name:"String"}},kind:{serializedName:"kind",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},name:{readOnly:!0,serializedName:"name",type:{name:"String"}},provisioningState:{readOnly:!0,serializedName:"properties.provisioningState",type:{name:"String"}},endpoint:{serializedName:"properties.endpoint",type:{name:"String"}},internalId:{serializedName:"properties.internalId",type:{name:"String"}},customSubDomainName:{serializedName:"properties.customSubDomainName",type:{name:"String"}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},type:{readOnly:!0,serializedName:"type",type:{name:"String"}}}}},d={serializedName:"CognitiveServicesAccountKeys",type:{name:"Composite",className:"CognitiveServicesAccountKeys",modelProperties:{key1:{serializedName:"key1",type:{name:"String"}},key2:{serializedName:"key2",type:{name:"String"}}}}},y={serializedName:"RegenerateKeyParameters",type:{name:"Composite",className:"RegenerateKeyParameters",modelProperties:{keyName:{required:!0,serializedName:"keyName",type:{name:"Enum",allowedValues:["Key1","Key2"]}}}}},N={serializedName:"CognitiveServicesResourceAndSku",type:{name:"Composite",className:"CognitiveServicesResourceAndSku",modelProperties:{resourceType:{serializedName:"resourceType",type:{name:"String"}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}}}}},g={serializedName:"CognitiveServicesAccountEnumerateSkusResult",type:{name:"Composite",className:"CognitiveServicesAccountEnumerateSkusResult",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CognitiveServicesResourceAndSku"}}}}}}},S={serializedName:"MetricName",type:{name:"Composite",className:"MetricName",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"String"}},localizedValue:{readOnly:!0,serializedName:"localizedValue",type:{name:"String"}}}}},v={serializedName:"Usage",type:{name:"Composite",className:"Usage",modelProperties:{unit:{serializedName:"unit",type:{name:"String"}},name:{readOnly:!0,serializedName:"name",type:{name:"Composite",className:"MetricName"}},quotaPeriod:{readOnly:!0,serializedName:"quotaPeriod",type:{name:"String"}},limit:{readOnly:!0,serializedName:"limit",type:{name:"Number"}},currentValue:{readOnly:!0,serializedName:"currentValue",type:{name:"Number"}},nextResetTime:{readOnly:!0,serializedName:"nextResetTime",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}}}}},z={serializedName:"UsagesResult",type:{name:"Composite",className:"UsagesResult",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Usage"}}}}}}},h={serializedName:"ErrorBody",type:{name:"Composite",className:"ErrorBody",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"String"}},message:{required:!0,serializedName:"message",type:{name:"String"}}}}},k={serializedName:"Error",type:{name:"Composite",className:"ErrorModel",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorBody"}}}}},C={serializedName:"OperationDisplayInfo",type:{name:"Composite",className:"OperationDisplayInfo",modelProperties:{description:{serializedName:"description",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}}}}},P={serializedName:"OperationEntity",type:{name:"Composite",className:"OperationEntity",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplayInfo"}},origin:{serializedName:"origin",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Object"}}}}},b={serializedName:"CheckSkuAvailabilityParameter",type:{name:"Composite",className:"CheckSkuAvailabilityParameter",modelProperties:{skus:{required:!0,serializedName:"skus",type:{name:"Sequence",element:{type:{name:"String"}}}},kind:{required:!0,serializedName:"kind",type:{name:"String"}},type:{required:!0,serializedName:"type",type:{name:"String"}}}}},R={serializedName:"CheckSkuAvailabilityResult",type:{name:"Composite",className:"CheckSkuAvailabilityResult",modelProperties:{kind:{serializedName:"kind",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}},skuName:{serializedName:"skuName",type:{name:"String"}},skuAvailable:{serializedName:"skuAvailable",type:{name:"Boolean"}},reason:{serializedName:"reason",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},f={serializedName:"CheckSkuAvailabilityResultList",type:{name:"Composite",className:"CheckSkuAvailabilityResultList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CheckSkuAvailabilityResult"}}}}}}},M={serializedName:"ResourceSkuRestrictionInfo",type:{name:"Composite",className:"ResourceSkuRestrictionInfo",modelProperties:{locations:{readOnly:!0,serializedName:"locations",type:{name:"Sequence",element:{type:{name:"String"}}}},zones:{readOnly:!0,serializedName:"zones",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},O={serializedName:"ResourceSkuRestrictions",type:{name:"Composite",className:"ResourceSkuRestrictions",modelProperties:{type:{readOnly:!0,serializedName:"type",type:{name:"Enum",allowedValues:["Location","Zone"]}},values:{readOnly:!0,serializedName:"values",type:{name:"Sequence",element:{type:{name:"String"}}}},restrictionInfo:{readOnly:!0,serializedName:"restrictionInfo",type:{name:"Composite",className:"ResourceSkuRestrictionInfo"}},reasonCode:{readOnly:!0,serializedName:"reasonCode",type:{name:"String"}}}}},q={serializedName:"ResourceSku",type:{name:"Composite",className:"ResourceSku",modelProperties:{resourceType:{readOnly:!0,serializedName:"resourceType",type:{name:"String"}},name:{readOnly:!0,serializedName:"name",type:{name:"String"}},tier:{readOnly:!0,serializedName:"tier",type:{name:"String"}},kind:{readOnly:!0,serializedName:"kind",type:{name:"String"}},locations:{readOnly:!0,serializedName:"locations",type:{name:"Sequence",element:{type:{name:"String"}}}},restrictions:{readOnly:!0,serializedName:"restrictions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ResourceSkuRestrictions"}}}}}}},A={serializedName:"CognitiveServicesAccountListResult",type:{name:"Composite",className:"CognitiveServicesAccountListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{readOnly:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"CognitiveServicesAccount"}}}}}}},E={serializedName:"ResourceSkusResult",type:{name:"Composite",className:"ResourceSkusResult",modelProperties:{value:{required:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"ResourceSku"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},G={serializedName:"OperationEntityListResult",type:{name:"Composite",className:"OperationEntityListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationEntity"}}}}}}},L=Object.freeze({CloudError:o,BaseResource:p,Sku:m,CognitiveServicesAccountCreateParameters:u,CognitiveServicesAccountUpdateParameters:c,CognitiveServicesAccount:l,CognitiveServicesAccountKeys:d,RegenerateKeyParameters:y,CognitiveServicesResourceAndSku:N,CognitiveServicesAccountEnumerateSkusResult:g,MetricName:S,Usage:v,UsagesResult:z,ErrorBody:h,ErrorModel:k,OperationDisplayInfo:C,OperationEntity:P,CheckSkuAvailabilityParameter:b,CheckSkuAvailabilityResult:R,CheckSkuAvailabilityResultList:f,ResourceSkuRestrictionInfo:M,ResourceSkuRestrictions:O,ResourceSku:q,CognitiveServicesAccountListResult:A,ResourceSkusResult:E,OperationEntityListResult:G}),I=Object.freeze({BaseResource:p,CognitiveServicesAccount:l,CognitiveServicesAccountCreateParameters:u,CognitiveServicesAccountEnumerateSkusResult:g,CognitiveServicesAccountKeys:d,CognitiveServicesAccountListResult:A,CognitiveServicesAccountUpdateParameters:c,CognitiveServicesResourceAndSku:N,ErrorBody:h,ErrorModel:k,MetricName:S,RegenerateKeyParameters:y,Sku:m,Usage:v,UsagesResult:z}),T={parameterPath:"acceptLanguage",mapper:{serializedName:"accept-language",defaultValue:"en-US",type:{name:"String"}}},x={parameterPath:"accountName",mapper:{required:!0,serializedName:"accountName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/},type:{name:"String"}}},U={parameterPath:"apiVersion",mapper:{required:!0,serializedName:"api-version",type:{name:"String"}}},j={parameterPath:"nextPageLink",mapper:{required:!0,serializedName:"nextLink",type:{name:"String"}},skipEncoding:!0},w={parameterPath:"resourceGroupName",mapper:{required:!0,serializedName:"resourceGroupName",type:{name:"String"}}},B={parameterPath:"subscriptionId",mapper:{required:!0,serializedName:"subscriptionId",type:{name:"String"}}},K=(D.prototype.create=function(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,parameters:t,options:a},_,i)},D.prototype.update=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},Z,a)},D.prototype.deleteMethod=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},$,a)},D.prototype.getProperties=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},F,a)},D.prototype.listByResourceGroup=function(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,options:r},H,t)},D.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},J,r)},D.prototype.listKeys=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},Q,a)},D.prototype.regenerateKey=function(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,keyName:t,options:a},W,i)},D.prototype.listSkus=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},X,a)},D.prototype.getUsages=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:r,options:t},Y,a)},D.prototype.listByResourceGroupNext=function(e,r,t){return this.client.sendOperationRequest({nextPageLink:e,options:r},ee,t)},D.prototype.listNext=function(e,r,t){return this.client.sendOperationRequest({nextPageLink:e,options:r},re,t)},D);function D(e){this.client=e}var V=new r.Serializer(I),_={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],requestBody:{parameterPath:"parameters",mapper:i({},u,{required:!0})},responses:{200:{bodyMapper:l},201:{bodyMapper:l},default:{bodyMapper:k}},serializer:V},Z={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],requestBody:{parameterPath:{sku:["options","sku"],tags:["options","tags"],properties:["options","properties"]},mapper:i({},c,{required:!0})},responses:{200:{bodyMapper:l},default:{bodyMapper:k}},serializer:V},$={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],responses:{200:{},204:{},default:{bodyMapper:k}},serializer:V},F={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:l},default:{bodyMapper:k}},serializer:V},H={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts",urlParameters:[w,B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:A},default:{bodyMapper:k}},serializer:V},J={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts",urlParameters:[B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:A},default:{bodyMapper:k}},serializer:V},Q={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:d},default:{bodyMapper:k}},serializer:V},W={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],requestBody:{parameterPath:{keyName:"keyName"},mapper:i({},y,{required:!0})},responses:{200:{bodyMapper:d},default:{bodyMapper:k}},serializer:V},X={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus",urlParameters:[w,x,B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:g},default:{bodyMapper:k}},serializer:V},Y={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages",urlParameters:[w,x,B],queryParameters:[U,{parameterPath:["options","filter"],mapper:{serializedName:"$filter",type:{name:"String"}}}],headerParameters:[T],responses:{200:{bodyMapper:z},default:{bodyMapper:k}},serializer:V},ee={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[j],headerParameters:[T],responses:{200:{bodyMapper:A},default:{bodyMapper:k}},serializer:V},re={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[j],headerParameters:[T],responses:{200:{bodyMapper:A},default:{bodyMapper:k}},serializer:V},te=Object.freeze({CloudError:o,ResourceSku:q,ResourceSkuRestrictionInfo:M,ResourceSkuRestrictions:O,ResourceSkusResult:E}),ae=(ie.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},ne,r)},ie.prototype.listNext=function(e,r,t){return this.client.sendOperationRequest({nextPageLink:e,options:r},oe,t)},ie);function ie(e){this.client=e}var se=new r.Serializer(te),ne={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus",urlParameters:[B],queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:E},default:{bodyMapper:o}},serializer:se},oe={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[j],headerParameters:[T],responses:{200:{bodyMapper:E},default:{bodyMapper:o}},serializer:se},pe=Object.freeze({CloudError:o,OperationDisplayInfo:C,OperationEntity:P,OperationEntityListResult:G}),me=(ue.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},le,r)},ue.prototype.listNext=function(e,r,t){return this.client.sendOperationRequest({nextPageLink:e,options:r},de,t)},ue);function ue(e){this.client=e}var ce=new r.Serializer(pe),le={httpMethod:"GET",path:"providers/Microsoft.CognitiveServices/operations",queryParameters:[U],headerParameters:[T],responses:{200:{bodyMapper:G},default:{bodyMapper:o}},serializer:ce},de={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[j],headerParameters:[T],responses:{200:{bodyMapper:G},default:{bodyMapper:o}},serializer:ce},ye=Object.freeze({CheckSkuAvailabilityParameter:b,CheckSkuAvailabilityResult:R,CheckSkuAvailabilityResultList:f,CloudError:o}),Ne=(ge.prototype.list=function(e,r,t,a,i,s){return this.client.sendOperationRequest({location:e,skus:r,kind:t,type:a,options:i},ze,s)},ge);function ge(e){this.client=e}var Se,ve=new r.Serializer(ye),ze={httpMethod:"POST",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability",urlParameters:[B,{parameterPath:"location",mapper:{required:!0,serializedName:"location",type:{name:"String"}}}],queryParameters:[U],headerParameters:[T],requestBody:{parameterPath:{skus:"skus",kind:"kind",type:"type"},mapper:i({},b,{required:!0})},responses:{200:{bodyMapper:f},default:{bodyMapper:o}},serializer:ve},he=(t(ke,Se=s.AzureServiceClient),ke);function ke(e,r,t){var a=this;if(null==e)throw new Error("'credentials' cannot be null.");if(null==r)throw new Error("'subscriptionId' cannot be null.");if(t||(t={}),!t.userAgent){var i=s.getDefaultUserAgentValue();t.userAgent="@azure/arm-cognitiveservices/3.0.0 "+i}return(a=Se.call(this,e,t)||this).apiVersion="2017-04-18",a.acceptLanguage="en-US",a.longRunningOperationRetryTimeout=30,a.baseUri=t.baseUri||a.baseUri||"https://management.azure.com",a.requestContentType="application/json; charset=utf-8",a.credentials=e,a.subscriptionId=r,null!==t.acceptLanguage&&void 0!==t.acceptLanguage&&(a.acceptLanguage=t.acceptLanguage),null!==t.longRunningOperationRetryTimeout&&void 0!==t.longRunningOperationRetryTimeout&&(a.longRunningOperationRetryTimeout=t.longRunningOperationRetryTimeout),a}var Ce,Pe=(t(be,Ce=he),be);function be(e,r,t){var a=Ce.call(this,e,r,t)||this;return a.accounts=new K(a),a.resourceSkus=new ae(a),a.operations=new me(a),a.checkSkuAvailability=new Ne(a),a}e.CognitiveServicesManagementClient=Pe,e.CognitiveServicesManagementClientContext=he,e.CognitiveServicesManagementModels=n,e.CognitiveServicesManagementMappers=L,e.Accounts=K,e.ResourceSkus=ae,e.Operations=me,e.CheckSkuAvailability=Ne,Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -13,3 +13,3 @@ /* | ||
var packageName = "@azure/arm-cognitiveservices"; | ||
var packageVersion = "2.4.2"; | ||
var packageVersion = "3.0.0"; | ||
var CognitiveServicesManagementClientContext = /** @class */ (function (_super) { | ||
@@ -16,0 +16,0 @@ tslib_1.__extends(CognitiveServicesManagementClientContext, _super); |
@@ -1,2 +0,2 @@ | ||
export { CognitiveServicesAccountCreateParameters, Sku, CognitiveServicesAccount, BaseResource, ErrorModel, ErrorBody, CognitiveServicesAccountUpdateParameters, CognitiveServicesAccountListResult, CognitiveServicesAccountKeys, RegenerateKeyParameters, CognitiveServicesAccountEnumerateSkusResult, CognitiveServicesResourceAndSku, UsagesResult, Usage, MetricName } from "../models/mappers"; | ||
export { BaseResource, CognitiveServicesAccount, CognitiveServicesAccountCreateParameters, CognitiveServicesAccountEnumerateSkusResult, CognitiveServicesAccountKeys, CognitiveServicesAccountListResult, CognitiveServicesAccountUpdateParameters, CognitiveServicesResourceAndSku, ErrorBody, ErrorModel, MetricName, RegenerateKeyParameters, Sku, Usage, UsagesResult } from "../models/mappers"; | ||
//# sourceMappingURL=accountsMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { CognitiveServicesAccountCreateParameters, Sku, CognitiveServicesAccount, BaseResource, ErrorModel, ErrorBody, CognitiveServicesAccountUpdateParameters, CognitiveServicesAccountListResult, CognitiveServicesAccountKeys, RegenerateKeyParameters, CognitiveServicesAccountEnumerateSkusResult, CognitiveServicesResourceAndSku, UsagesResult, Usage, MetricName } from "../models/mappers"; | ||
export { BaseResource, CognitiveServicesAccount, CognitiveServicesAccountCreateParameters, CognitiveServicesAccountEnumerateSkusResult, CognitiveServicesAccountKeys, CognitiveServicesAccountListResult, CognitiveServicesAccountUpdateParameters, CognitiveServicesResourceAndSku, ErrorBody, ErrorModel, MetricName, RegenerateKeyParameters, Sku, Usage, UsagesResult } from "../models/mappers"; | ||
//# sourceMappingURL=accountsMappers.js.map |
@@ -1,2 +0,2 @@ | ||
export { CheckSkuAvailabilityParameter, CheckSkuAvailabilityResultList, CheckSkuAvailabilityResult, CloudError } from "../models/mappers"; | ||
export { CheckSkuAvailabilityParameter, CheckSkuAvailabilityResult, CheckSkuAvailabilityResultList, CloudError } from "../models/mappers"; | ||
//# sourceMappingURL=checkSkuAvailabilityMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { CheckSkuAvailabilityParameter, CheckSkuAvailabilityResultList, CheckSkuAvailabilityResult, CloudError } from "../models/mappers"; | ||
export { CheckSkuAvailabilityParameter, CheckSkuAvailabilityResult, CheckSkuAvailabilityResultList, CloudError } from "../models/mappers"; | ||
//# sourceMappingURL=checkSkuAvailabilityMappers.js.map |
@@ -5,18 +5,13 @@ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; | ||
/** | ||
* @interface | ||
* An interface representing Sku. | ||
* The SKU of the cognitive services account. | ||
* | ||
*/ | ||
export interface Sku { | ||
/** | ||
* @member {string} name Gets or sets the sku name. Required for account | ||
* creation, optional for update. | ||
* Gets or sets the sku name. Required for account creation, optional for update. | ||
*/ | ||
name: string; | ||
/** | ||
* @member {SkuTier} [tier] Gets the sku tier. This is based on the SKU name. | ||
* Possible values include: 'Free', 'Standard', 'Premium' | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Gets the sku tier. This is based on the SKU name. Possible values include: 'Free', 'Standard', | ||
* 'Premium' | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -26,30 +21,25 @@ readonly tier?: SkuTier; | ||
/** | ||
* @interface | ||
* An interface representing CognitiveServicesAccountCreateParameters. | ||
* The parameters to provide for the account. | ||
* | ||
*/ | ||
export interface CognitiveServicesAccountCreateParameters { | ||
/** | ||
* @member {Sku} sku Required. Gets or sets the SKU of the resource. | ||
* Required. Gets or sets the SKU of the resource. | ||
*/ | ||
sku: Sku; | ||
/** | ||
* @member {string} kind Required. Gets or sets the Kind of the resource. | ||
* Required. Gets or sets the Kind of the resource. | ||
*/ | ||
kind: string; | ||
/** | ||
* @member {string} location Required. Gets or sets the location of the | ||
* resource. This will be one of the supported and registered Azure Geo | ||
* Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a | ||
* resource cannot be changed once it is created, but if an identical geo | ||
* region is specified on update the request will succeed. | ||
* Required. Gets or sets the location of the resource. This will be one of the supported and | ||
* registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of | ||
* a resource cannot be changed once it is created, but if an identical geo region is specified | ||
* on update the request will succeed. | ||
*/ | ||
location: string; | ||
/** | ||
* @member {{ [propertyName: string]: string }} [tags] 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. | ||
* 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. | ||
*/ | ||
@@ -60,4 +50,3 @@ tags?: { | ||
/** | ||
* @member {any} properties Must exist in the request. Must be an empty | ||
* object. Must not be null. | ||
* Must exist in the request. Must be an empty object. Must not be null. | ||
*/ | ||
@@ -67,18 +56,14 @@ properties: any; | ||
/** | ||
* @interface | ||
* An interface representing CognitiveServicesAccountUpdateParameters. | ||
* The parameters to provide for the account. | ||
* | ||
*/ | ||
export interface CognitiveServicesAccountUpdateParameters { | ||
/** | ||
* @member {Sku} [sku] Gets or sets the SKU of the resource. | ||
* Gets or sets the SKU of the resource. | ||
*/ | ||
sku?: Sku; | ||
/** | ||
* @member {{ [propertyName: string]: string }} [tags] 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. | ||
* 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. | ||
*/ | ||
@@ -88,63 +73,62 @@ tags?: { | ||
}; | ||
/** | ||
* Additional properties for Account. Only provided fields will be updated. | ||
*/ | ||
properties?: any; | ||
} | ||
/** | ||
* @interface | ||
* An interface representing CognitiveServicesAccount. | ||
* Cognitive Services Account is an Azure resource representing the provisioned | ||
* account, its type, location and SKU. | ||
* | ||
* @extends BaseResource | ||
* Cognitive Services Account is an Azure resource representing the provisioned account, its type, | ||
* location and SKU. | ||
*/ | ||
export interface CognitiveServicesAccount extends BaseResource { | ||
/** | ||
* @member {string} [etag] Entity Tag | ||
* Entity Tag | ||
*/ | ||
etag?: string; | ||
/** | ||
* @member {string} [id] The id of the created account | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The id of the created account | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly id?: string; | ||
/** | ||
* @member {string} [kind] Type of cognitive service account. | ||
* Type of cognitive service account. | ||
*/ | ||
kind?: string; | ||
/** | ||
* @member {string} [location] The location of the resource | ||
* The location of the resource | ||
*/ | ||
location?: string; | ||
/** | ||
* @member {string} [name] The name of the created account | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The name of the created account | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly name?: string; | ||
/** | ||
* @member {ProvisioningState} [provisioningState] Gets the status of the | ||
* cognitive services account at the time the operation was called. Possible | ||
* values include: 'Creating', 'ResolvingDNS', 'Moving', 'Deleting', | ||
* 'Succeeded', 'Failed' | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Gets the status of the cognitive services account at the time the operation was called. | ||
* Possible values include: 'Creating', 'ResolvingDNS', 'Moving', 'Deleting', 'Succeeded', | ||
* 'Failed' | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly provisioningState?: ProvisioningState; | ||
/** | ||
* @member {string} [endpoint] Endpoint of the created account. | ||
* Endpoint of the created account. | ||
*/ | ||
endpoint?: string; | ||
/** | ||
* @member {string} [internalId] The internal identifier. | ||
* The internal identifier. | ||
*/ | ||
internalId?: string; | ||
/** | ||
* @member {Sku} [sku] The SKU of Cognitive Services account. | ||
* Optional subdomain name used for token-based authentication. | ||
*/ | ||
customSubDomainName?: string; | ||
/** | ||
* The SKU of Cognitive Services account. | ||
*/ | ||
sku?: Sku; | ||
/** | ||
* @member {{ [propertyName: string]: string }} [tags] 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. | ||
* 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. | ||
*/ | ||
@@ -155,5 +139,4 @@ tags?: { | ||
/** | ||
* @member {string} [type] Resource type | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Resource type | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -163,14 +146,11 @@ readonly type?: string; | ||
/** | ||
* @interface | ||
* An interface representing CognitiveServicesAccountKeys. | ||
* The access keys for the cognitive services account. | ||
* | ||
*/ | ||
export interface CognitiveServicesAccountKeys { | ||
/** | ||
* @member {string} [key1] Gets the value of key 1. | ||
* Gets the value of key 1. | ||
*/ | ||
key1?: string; | ||
/** | ||
* @member {string} [key2] Gets the value of key 2. | ||
* Gets the value of key 2. | ||
*/ | ||
@@ -180,11 +160,7 @@ key2?: string; | ||
/** | ||
* @interface | ||
* An interface representing RegenerateKeyParameters. | ||
* Regenerate key parameters. | ||
* | ||
*/ | ||
export interface RegenerateKeyParameters { | ||
/** | ||
* @member {KeyName} keyName key name to generate (Key1|Key2). Possible | ||
* values include: 'Key1', 'Key2' | ||
* key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2' | ||
*/ | ||
@@ -194,14 +170,11 @@ keyName: KeyName; | ||
/** | ||
* @interface | ||
* An interface representing CognitiveServicesResourceAndSku. | ||
* Cognitive Services resource type and SKU. | ||
* | ||
*/ | ||
export interface CognitiveServicesResourceAndSku { | ||
/** | ||
* @member {string} [resourceType] Resource Namespace and Type | ||
* Resource Namespace and Type | ||
*/ | ||
resourceType?: string; | ||
/** | ||
* @member {Sku} [sku] The SKU of Cognitive Services account. | ||
* The SKU of Cognitive Services account. | ||
*/ | ||
@@ -211,13 +184,8 @@ sku?: Sku; | ||
/** | ||
* @interface | ||
* An interface representing CognitiveServicesAccountEnumerateSkusResult. | ||
* The list of cognitive services accounts operation response. | ||
* | ||
*/ | ||
export interface CognitiveServicesAccountEnumerateSkusResult { | ||
/** | ||
* @member {CognitiveServicesResourceAndSku[]} [value] Gets the list of | ||
* Cognitive Services accounts and their properties. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Gets the list of Cognitive Services accounts and their properties. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -227,18 +195,13 @@ readonly value?: CognitiveServicesResourceAndSku[]; | ||
/** | ||
* @interface | ||
* An interface representing MetricName. | ||
* A metric name. | ||
* | ||
*/ | ||
export interface MetricName { | ||
/** | ||
* @member {string} [value] The name of the metric. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The name of the metric. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly value?: string; | ||
/** | ||
* @member {string} [localizedValue] The friendly name of the metric. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The friendly name of the metric. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -248,49 +211,38 @@ readonly localizedValue?: string; | ||
/** | ||
* @interface | ||
* An interface representing Usage. | ||
* The usage data for a usage request. | ||
* | ||
*/ | ||
export interface Usage { | ||
/** | ||
* @member {UnitType} [unit] The unit of the metric. Possible values include: | ||
* 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', | ||
* 'BytesPerSecond', 'Milliseconds' | ||
* The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', | ||
* 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' | ||
*/ | ||
unit?: UnitType; | ||
/** | ||
* @member {MetricName} [name] The name information for the metric. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The name information for the metric. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly name?: MetricName; | ||
/** | ||
* @member {string} [quotaPeriod] The quota period used to summarize the | ||
* usage values. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The quota period used to summarize the usage values. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly quotaPeriod?: string; | ||
/** | ||
* @member {number} [limit] Maximum value for this metric. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Maximum value for this metric. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly limit?: number; | ||
/** | ||
* @member {number} [currentValue] Current value for this metric. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Current value for this metric. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly currentValue?: number; | ||
/** | ||
* @member {string} [nextResetTime] Next reset time for current quota. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Next reset time for current quota. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly nextResetTime?: string; | ||
/** | ||
* @member {QuotaUsageStatus} [status] Cognitive Services account quota usage | ||
* status. Possible values include: 'Included', 'Blocked', 'InOverage', | ||
* 'Unknown' | ||
* Cognitive Services account quota usage status. Possible values include: 'Included', 'Blocked', | ||
* 'InOverage', 'Unknown' | ||
*/ | ||
@@ -300,13 +252,8 @@ status?: QuotaUsageStatus; | ||
/** | ||
* @interface | ||
* An interface representing UsagesResult. | ||
* The response to a list usage request. | ||
* | ||
*/ | ||
export interface UsagesResult { | ||
/** | ||
* @member {Usage[]} [value] The list of usages for Cognitive Service | ||
* account. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The list of usages for Cognitive Service account. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -316,14 +263,11 @@ readonly value?: Usage[]; | ||
/** | ||
* @interface | ||
* An interface representing ErrorBody. | ||
* Cognitive Services error body. | ||
* | ||
*/ | ||
export interface ErrorBody { | ||
/** | ||
* @member {string} code error code | ||
* error code | ||
*/ | ||
code: string; | ||
/** | ||
* @member {string} message error message | ||
* error message | ||
*/ | ||
@@ -333,10 +277,7 @@ message: string; | ||
/** | ||
* @interface | ||
* An interface representing ErrorModel. | ||
* Cognitive Services error object. | ||
* | ||
*/ | ||
export interface ErrorModel { | ||
/** | ||
* @member {ErrorBody} [error] The error body. | ||
* The error body. | ||
*/ | ||
@@ -346,24 +287,19 @@ error?: ErrorBody; | ||
/** | ||
* @interface | ||
* An interface representing OperationDisplayInfo. | ||
* The operation supported by Cognitive Services. | ||
* | ||
*/ | ||
export interface OperationDisplayInfo { | ||
/** | ||
* @member {string} [description] The description of the operation. | ||
* The description of the operation. | ||
*/ | ||
description?: string; | ||
/** | ||
* @member {string} [operation] The action that users can perform, based on | ||
* their permission level. | ||
* The action that users can perform, based on their permission level. | ||
*/ | ||
operation?: string; | ||
/** | ||
* @member {string} [provider] Service provider: Microsoft Cognitive | ||
* Services. | ||
* Service provider: Microsoft Cognitive Services. | ||
*/ | ||
provider?: string; | ||
/** | ||
* @member {string} [resource] Resource on which the operation is performed. | ||
* Resource on which the operation is performed. | ||
*/ | ||
@@ -373,23 +309,19 @@ resource?: string; | ||
/** | ||
* @interface | ||
* An interface representing OperationEntity. | ||
* The operation supported by Cognitive Services. | ||
* | ||
*/ | ||
export interface OperationEntity { | ||
/** | ||
* @member {string} [name] Operation name: {provider}/{resource}/{operation}. | ||
* Operation name: {provider}/{resource}/{operation}. | ||
*/ | ||
name?: string; | ||
/** | ||
* @member {OperationDisplayInfo} [display] The operation supported by | ||
* Cognitive Services. | ||
* The operation supported by Cognitive Services. | ||
*/ | ||
display?: OperationDisplayInfo; | ||
/** | ||
* @member {string} [origin] The origin of the operation. | ||
* The origin of the operation. | ||
*/ | ||
origin?: string; | ||
/** | ||
* @member {any} [properties] Additional properties. | ||
* Additional properties. | ||
*/ | ||
@@ -399,18 +331,15 @@ properties?: any; | ||
/** | ||
* @interface | ||
* An interface representing CheckSkuAvailabilityParameter. | ||
* Check SKU availability parameter. | ||
* | ||
*/ | ||
export interface CheckSkuAvailabilityParameter { | ||
/** | ||
* @member {string[]} skus The SKU of the resource. | ||
* The SKU of the resource. | ||
*/ | ||
skus: string[]; | ||
/** | ||
* @member {string} kind The Kind of the resource. | ||
* The Kind of the resource. | ||
*/ | ||
kind: string; | ||
/** | ||
* @member {string} type The Type of the resource. | ||
* The Type of the resource. | ||
*/ | ||
@@ -420,31 +349,27 @@ type: string; | ||
/** | ||
* @interface | ||
* An interface representing CheckSkuAvailabilityResult. | ||
* Check SKU availability result. | ||
* | ||
*/ | ||
export interface CheckSkuAvailabilityResult { | ||
/** | ||
* @member {string} [kind] The Kind of the resource. | ||
* The Kind of the resource. | ||
*/ | ||
kind?: string; | ||
/** | ||
* @member {string} [type] The Type of the resource. | ||
* The Type of the resource. | ||
*/ | ||
type?: string; | ||
/** | ||
* @member {string} [skuName] The SKU of Cognitive Services account. | ||
* The SKU of Cognitive Services account. | ||
*/ | ||
skuName?: string; | ||
/** | ||
* @member {boolean} [skuAvailable] Indicates the given SKU is available or | ||
* not. | ||
* Indicates the given SKU is available or not. | ||
*/ | ||
skuAvailable?: boolean; | ||
/** | ||
* @member {string} [reason] Reason why the SKU is not available. | ||
* Reason why the SKU is not available. | ||
*/ | ||
reason?: string; | ||
/** | ||
* @member {string} [message] Additional error message. | ||
* Additional error message. | ||
*/ | ||
@@ -454,11 +379,7 @@ message?: string; | ||
/** | ||
* @interface | ||
* An interface representing CheckSkuAvailabilityResultList. | ||
* Check SKU availability result list. | ||
* | ||
*/ | ||
export interface CheckSkuAvailabilityResultList { | ||
/** | ||
* @member {CheckSkuAvailabilityResult[]} [value] Check SKU availability | ||
* result list. | ||
* Check SKU availability result list. | ||
*/ | ||
@@ -468,3 +389,2 @@ value?: CheckSkuAvailabilityResult[]; | ||
/** | ||
* @interface | ||
* An interface representing ResourceSkuRestrictionInfo. | ||
@@ -474,12 +394,9 @@ */ | ||
/** | ||
* @member {string[]} [locations] Locations where the SKU is restricted | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Locations where the SKU is restricted | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly locations?: string[]; | ||
/** | ||
* @member {string[]} [zones] List of availability zones where the SKU is | ||
* restricted. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* List of availability zones where the SKU is restricted. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -489,36 +406,24 @@ readonly zones?: string[]; | ||
/** | ||
* @interface | ||
* An interface representing ResourceSkuRestrictions. | ||
* Describes restrictions of a SKU. | ||
* | ||
*/ | ||
export interface ResourceSkuRestrictions { | ||
/** | ||
* @member {ResourceSkuRestrictionsType} [type] The type of restrictions. | ||
* Possible values include: 'Location', 'Zone' | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The type of restrictions. Possible values include: 'Location', 'Zone' | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly type?: ResourceSkuRestrictionsType; | ||
/** | ||
* @member {string[]} [values] The value of restrictions. If the restriction | ||
* type is set to location. This would be different locations where the SKU | ||
* is restricted. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The value of restrictions. If the restriction type is set to location. This would be different | ||
* locations where the SKU is restricted. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly values?: string[]; | ||
/** | ||
* @member {ResourceSkuRestrictionInfo} [restrictionInfo] The information | ||
* about the restriction where the SKU cannot be used. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The information about the restriction where the SKU cannot be used. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly restrictionInfo?: ResourceSkuRestrictionInfo; | ||
/** | ||
* @member {ResourceSkuRestrictionsReasonCode} [reasonCode] The reason for | ||
* restriction. Possible values include: 'QuotaId', | ||
* 'NotAvailableForSubscription' | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription' | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -528,46 +433,34 @@ readonly reasonCode?: ResourceSkuRestrictionsReasonCode; | ||
/** | ||
* @interface | ||
* An interface representing ResourceSku. | ||
* Describes an available Cognitive Services SKU. | ||
* | ||
*/ | ||
export interface ResourceSku { | ||
/** | ||
* @member {string} [resourceType] The type of resource the SKU applies to. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The type of resource the SKU applies to. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly resourceType?: string; | ||
/** | ||
* @member {string} [name] The name of SKU. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The name of SKU. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly name?: string; | ||
/** | ||
* @member {string} [tier] Specifies the tier of Cognitive Services account. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Specifies the tier of Cognitive Services account. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly tier?: string; | ||
/** | ||
* @member {string} [kind] The Kind of resources that are supported in this | ||
* SKU. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The Kind of resources that are supported in this SKU. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly kind?: string; | ||
/** | ||
* @member {string[]} [locations] The set of locations that the SKU is | ||
* available. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The set of locations that the SKU is available. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly locations?: string[]; | ||
/** | ||
* @member {ResourceSkuRestrictions[]} [restrictions] The restrictions | ||
* because of which SKU cannot be used. This is empty if there are no | ||
* The restrictions because of which SKU cannot be used. This is empty if there are no | ||
* restrictions. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -577,19 +470,14 @@ readonly restrictions?: ResourceSkuRestrictions[]; | ||
/** | ||
* @interface | ||
* An interface representing AccountsUpdateOptionalParams. | ||
* Optional Parameters. | ||
* | ||
* @extends RequestOptionsBase | ||
*/ | ||
export interface AccountsUpdateOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* @member {Sku} [sku] Gets or sets the SKU of the resource. | ||
* Gets or sets the SKU of the resource. | ||
*/ | ||
sku?: Sku; | ||
/** | ||
* @member {{ [propertyName: string]: string }} [tags] 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. | ||
* 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. | ||
*/ | ||
@@ -599,15 +487,14 @@ tags?: { | ||
}; | ||
/** | ||
* Additional properties for Account. Only provided fields will be updated. | ||
*/ | ||
properties?: any; | ||
} | ||
/** | ||
* @interface | ||
* An interface representing AccountsGetUsagesOptionalParams. | ||
* Optional Parameters. | ||
* | ||
* @extends RequestOptionsBase | ||
*/ | ||
export interface AccountsGetUsagesOptionalParams extends msRest.RequestOptionsBase { | ||
/** | ||
* @member {string} [filter] 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). | ||
* 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). | ||
*/ | ||
@@ -617,10 +504,5 @@ filter?: string; | ||
/** | ||
* @interface | ||
* An interface representing CognitiveServicesManagementClientOptions. | ||
* @extends AzureServiceClientOptions | ||
*/ | ||
export interface CognitiveServicesManagementClientOptions extends AzureServiceClientOptions { | ||
/** | ||
* @member {string} [baseUri] | ||
*/ | ||
baseUri?: string; | ||
@@ -630,5 +512,3 @@ } | ||
* @interface | ||
* An interface representing the CognitiveServicesAccountListResult. | ||
* The list of cognitive services accounts operation response. | ||
* | ||
* @extends Array<CognitiveServicesAccount> | ||
@@ -638,4 +518,3 @@ */ | ||
/** | ||
* @member {string} [nextLink] The link used to get the next page of | ||
* accounts. | ||
* The link used to get the next page of accounts. | ||
*/ | ||
@@ -646,5 +525,3 @@ nextLink?: string; | ||
* @interface | ||
* An interface representing the ResourceSkusResult. | ||
* The Get Skus operation response. | ||
* | ||
* @extends Array<ResourceSku> | ||
@@ -654,3 +531,3 @@ */ | ||
/** | ||
* @member {string} [nextLink] The uri to fetch the next page of Skus. | ||
* The uri to fetch the next page of Skus. | ||
*/ | ||
@@ -661,5 +538,3 @@ nextLink?: string; | ||
* @interface | ||
* An interface representing the OperationEntityListResult. | ||
* The list of cognitive services accounts operation response. | ||
* | ||
* @extends Array<OperationEntity> | ||
@@ -669,4 +544,3 @@ */ | ||
/** | ||
* @member {string} [nextLink] The link used to get the next page of | ||
* operations. | ||
* The link used to get the next page of operations. | ||
*/ | ||
@@ -673,0 +547,0 @@ nextLink?: string; |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
//# sourceMappingURL=index.js.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -113,2 +111,8 @@ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; | ||
} | ||
}, | ||
properties: { | ||
serializedName: "properties", | ||
type: { | ||
name: "Object" | ||
} | ||
} | ||
@@ -175,2 +179,8 @@ } | ||
}, | ||
customSubDomainName: { | ||
serializedName: "properties.customSubDomainName", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
sku: { | ||
@@ -177,0 +187,0 @@ serializedName: "sku", |
@@ -1,2 +0,2 @@ | ||
export { OperationEntityListResult, OperationEntity, OperationDisplayInfo, CloudError } from "../models/mappers"; | ||
export { CloudError, OperationDisplayInfo, OperationEntity, OperationEntityListResult } from "../models/mappers"; | ||
//# sourceMappingURL=operationsMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { OperationEntityListResult, OperationEntity, OperationDisplayInfo, CloudError } from "../models/mappers"; | ||
export { CloudError, OperationDisplayInfo, OperationEntity, OperationEntityListResult } from "../models/mappers"; | ||
//# sourceMappingURL=operationsMappers.js.map |
@@ -1,2 +0,2 @@ | ||
export { ResourceSkusResult, ResourceSku, ResourceSkuRestrictions, ResourceSkuRestrictionInfo, CloudError } from "../models/mappers"; | ||
export { CloudError, ResourceSku, ResourceSkuRestrictionInfo, ResourceSkuRestrictions, ResourceSkusResult } from "../models/mappers"; | ||
//# sourceMappingURL=resourceSkusMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* 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. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { ResourceSkusResult, ResourceSku, ResourceSkuRestrictions, ResourceSkuRestrictionInfo, CloudError } from "../models/mappers"; | ||
export { CloudError, ResourceSku, ResourceSkuRestrictionInfo, ResourceSkuRestrictions, ResourceSkusResult } from "../models/mappers"; | ||
//# sourceMappingURL=resourceSkusMappers.js.map |
@@ -163,2 +163,6 @@ /* | ||
"tags" | ||
], | ||
properties: [ | ||
"options", | ||
"properties" | ||
] | ||
@@ -165,0 +169,0 @@ }, |
The MIT License (MIT) | ||
Copyright (c) 2018 Microsoft | ||
Copyright (c) 2019 Microsoft | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -5,6 +5,6 @@ { | ||
"description": "CognitiveServicesManagementClient Library with typescript type definitions for node.js and browser.", | ||
"version": "2.4.2", | ||
"version": "3.0.0", | ||
"dependencies": { | ||
"@azure/ms-rest-azure-js": "^1.2.0", | ||
"@azure/ms-rest-js": "^1.2.0", | ||
"@azure/ms-rest-azure-js": "^1.3.2", | ||
"@azure/ms-rest-js": "^1.8.1", | ||
"tslib": "^1.9.3" | ||
@@ -30,3 +30,3 @@ }, | ||
}, | ||
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-cognitiveservices", | ||
"homepage": "https://github.com/azure/azure-sdk-for-js", | ||
"repository": { | ||
@@ -48,3 +48,3 @@ "type": "git", | ||
"esm/**/*.d.ts.map", | ||
"lib/**/*.ts", | ||
"src/**/*.ts", | ||
"README.md", | ||
@@ -60,3 +60,3 @@ "rollup.config.js", | ||
"sideEffects": false, | ||
"authPublish": true | ||
"autoPublish": true | ||
} |
@@ -17,4 +17,4 @@ { | ||
}, | ||
"include": ["./lib/**/*.ts"], | ||
"include": ["./src/**/*.ts"], | ||
"exclude": ["node_modules"] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
0
488286
7872
Updated@azure/ms-rest-js@^1.8.1