Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/arm-cognitiveservices

Package Overview
Dependencies
Maintainers
6
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/arm-cognitiveservices - npm Package Compare versions

Comparing version 5.1.0 to 5.2.0

esm/models/privateEndpointConnectionsMappers.d.ts

2

dist/arm-cognitiveservices.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@azure/ms-rest-js"),require("@azure/ms-rest-azure-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-js","@azure/ms-rest-azure-js"],t):t(((e=e||self).Azure=e.Azure||{},e.Azure.ArmCognitiveservices={}),e.msRest,e.msRestAzure)}(this,function(e,t,s){"use strict";var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function r(e,t){function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},n=Object.freeze({__proto__:null}),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"]}}}}},l={serializedName:"IpRule",type:{name:"Composite",className:"IpRule",modelProperties:{value:{required:!0,serializedName:"value",type:{name:"String"}}}}},u={serializedName:"VirtualNetworkRule",type:{name:"Composite",className:"VirtualNetworkRule",modelProperties:{id:{required:!0,serializedName:"id",type:{name:"String"}},state:{serializedName:"state",type:{name:"String"}},ignoreMissingVnetServiceEndpoint:{serializedName:"ignoreMissingVnetServiceEndpoint",type:{name:"Boolean"}}}}},c={serializedName:"NetworkRuleSet",type:{name:"Composite",className:"NetworkRuleSet",modelProperties:{defaultAction:{serializedName:"defaultAction",type:{name:"String"}},ipRules:{serializedName:"ipRules",type:{name:"Sequence",element:{type:{name:"Composite",className:"IpRule"}}}},virtualNetworkRules:{serializedName:"virtualNetworkRules",type:{name:"Sequence",element:{type:{name:"Composite",className:"VirtualNetworkRule"}}}}}}},d={serializedName:"KeyVaultProperties",type:{name:"Composite",className:"KeyVaultProperties",modelProperties:{keyName:{serializedName:"keyName",type:{name:"String"}},keyVersion:{serializedName:"keyVersion",type:{name:"String"}},keyVaultUri:{serializedName:"keyVaultUri",type:{name:"String"}}}}},y={serializedName:"Encryption",type:{name:"Composite",className:"Encryption",modelProperties:{keyVaultProperties:{serializedName:"keyVaultProperties",type:{name:"Composite",className:"KeyVaultProperties"}},keySource:{serializedName:"keySource",defaultValue:"Microsoft.KeyVault",type:{name:"String"}}}}},N={serializedName:"UserOwnedStorage",type:{name:"Composite",className:"UserOwnedStorage",modelProperties:{resourceId:{serializedName:"resourceId",type:{name:"String"}}}}},g={serializedName:"CognitiveServicesAccountApiProperties",type:{name:"Composite",className:"CognitiveServicesAccountApiProperties",modelProperties:{qnaRuntimeEndpoint:{serializedName:"qnaRuntimeEndpoint",type:{name:"String"}},statisticsEnabled:{serializedName:"statisticsEnabled",type:{name:"Boolean"}},eventHubConnectionString:{serializedName:"eventHubConnectionString",constraints:{MaxLength:1e3,Pattern:/^( *)Endpoint=sb:\/\/(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$/},type:{name:"String"}},storageAccountConnectionString:{serializedName:"storageAccountConnectionString",constraints:{MaxLength:1e3,Pattern:/^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$/},type:{name:"String"}}}}},S={serializedName:"CognitiveServicesAccountProperties",type:{name:"Composite",className:"CognitiveServicesAccountProperties",modelProperties:{provisioningState:{readOnly:!0,serializedName:"provisioningState",type:{name:"String"}},endpoint:{readOnly:!0,serializedName:"endpoint",type:{name:"String"}},internalId:{readOnly:!0,serializedName:"internalId",type:{name:"String"}},customSubDomainName:{serializedName:"customSubDomainName",type:{name:"String"}},networkAcls:{serializedName:"networkAcls",type:{name:"Composite",className:"NetworkRuleSet"}},encryption:{serializedName:"encryption",type:{name:"Composite",className:"Encryption"}},userOwnedStorage:{serializedName:"userOwnedStorage",type:{name:"Sequence",element:{type:{name:"Composite",className:"UserOwnedStorage"}}}},apiProperties:{serializedName:"apiProperties",type:{name:"Composite",className:"CognitiveServicesAccountApiProperties"}}}}},z={serializedName:"UserAssignedIdentity",type:{name:"Composite",className:"UserAssignedIdentity",modelProperties:{principalId:{serializedName:"principalId",type:{name:"String"}},clientId:{serializedName:"clientId",type:{name:"String"}}}}},v={serializedName:"Identity",type:{name:"Composite",className:"Identity",modelProperties:{type:{serializedName:"type",type:{name:"Enum",allowedValues:["None","SystemAssigned","UserAssigned"]}},tenantId:{readOnly:!0,serializedName:"tenantId",type:{name:"String"}},principalId:{readOnly:!0,serializedName:"principalId",type:{name:"String"}},userAssignedIdentities:{serializedName:"userAssignedIdentities",type:{name:"Dictionary",value:{type:{name:"Composite",className:"UserAssignedIdentity"}}}}}}},h={serializedName:"CognitiveServicesAccount",type:{name:"Composite",className:"CognitiveServicesAccount",modelProperties:{etag:{readOnly:!0,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"}},properties:{serializedName:"properties",type:{name:"Composite",className:"CognitiveServicesAccountProperties"}},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"}},identity:{serializedName:"identity",type:{name:"Composite",className:"Identity"}}}}},P={serializedName:"CognitiveServicesAccountKeys",type:{name:"Composite",className:"CognitiveServicesAccountKeys",modelProperties:{key1:{serializedName:"key1",type:{name:"String"}},key2:{serializedName:"key2",type:{name:"String"}}}}},k={serializedName:"RegenerateKeyParameters",type:{name:"Composite",className:"RegenerateKeyParameters",modelProperties:{keyName:{required:!0,serializedName:"keyName",type:{name:"Enum",allowedValues:["Key1","Key2"]}}}}},C={serializedName:"CognitiveServicesResourceAndSku",type:{name:"Composite",className:"CognitiveServicesResourceAndSku",modelProperties:{resourceType:{serializedName:"resourceType",type:{name:"String"}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}}}}},b={serializedName:"CognitiveServicesAccountEnumerateSkusResult",type:{name:"Composite",className:"CognitiveServicesAccountEnumerateSkusResult",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CognitiveServicesResourceAndSku"}}}}}}},R={serializedName:"MetricName",type:{name:"Composite",className:"MetricName",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"String"}},localizedValue:{readOnly:!0,serializedName:"localizedValue",type:{name:"String"}}}}},f={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"}}}}},M={serializedName:"UsagesResult",type:{name:"Composite",className:"UsagesResult",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Usage"}}}}}}},O={serializedName:"ErrorBody",type:{name:"Composite",className:"ErrorBody",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"String"}},message:{required:!0,serializedName:"message",type:{name:"String"}}}}},A={serializedName:"Error",type:{name:"Composite",className:"ErrorModel",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorBody"}}}}},q={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"}}}}},E={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"}}}}},I={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"}}}}},G={serializedName:"CheckSkuAvailabilityResultList",type:{name:"Composite",className:"CheckSkuAvailabilityResultList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CheckSkuAvailabilityResult"}}}}}}},w={serializedName:"CheckDomainAvailabilityParameter",type:{name:"Composite",className:"CheckDomainAvailabilityParameter",modelProperties:{subdomainName:{required:!0,serializedName:"subdomainName",type:{name:"String"}},type:{required:!0,serializedName:"type",type:{name:"String"}}}}},L={serializedName:"CheckDomainAvailabilityResult",type:{name:"Composite",className:"CheckDomainAvailabilityResult",modelProperties:{isSubdomainAvailable:{serializedName:"isSubdomainAvailable",type:{name:"Boolean"}},reason:{serializedName:"reason",type:{name:"String"}},subdomainName:{serializedName:"subdomainName",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}}}}},U={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"}}}}}}},V={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"}}}}},_={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"}}}}}}},x={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"}}}}}}},T={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"}}}}},K={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"}}}}}}},D=Object.freeze({__proto__:null,CloudError:o,BaseResource:p,Sku:m,IpRule:l,VirtualNetworkRule:u,NetworkRuleSet:c,KeyVaultProperties:d,Encryption:y,UserOwnedStorage:N,CognitiveServicesAccountApiProperties:g,CognitiveServicesAccountProperties:S,UserAssignedIdentity:z,Identity:v,CognitiveServicesAccount:h,CognitiveServicesAccountKeys:P,RegenerateKeyParameters:k,CognitiveServicesResourceAndSku:C,CognitiveServicesAccountEnumerateSkusResult:b,MetricName:R,Usage:f,UsagesResult:M,ErrorBody:O,ErrorModel:A,OperationDisplayInfo:q,OperationEntity:E,CheckSkuAvailabilityParameter:I,CheckSkuAvailabilityResult:{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"}}}}},CheckSkuAvailabilityResultList:G,CheckDomainAvailabilityParameter:w,CheckDomainAvailabilityResult:L,ResourceSkuRestrictionInfo:U,ResourceSkuRestrictions:V,ResourceSku:_,CognitiveServicesAccountListResult:x,ResourceSkusResult:T,OperationEntityListResult:K}),B={parameterPath:"acceptLanguage",mapper:{serializedName:"accept-language",defaultValue:"en-US",type:{name:"String"}}},j={parameterPath:"accountName",mapper:{required:!0,serializedName:"accountName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/},type:{name:"String"}}},$={parameterPath:"apiVersion",mapper:{required:!0,serializedName:"api-version",type:{name:"String"}}},H={parameterPath:"nextPageLink",mapper:{required:!0,serializedName:"nextLink",type:{name:"String"}},skipEncoding:!0},Z={parameterPath:"resourceGroupName",mapper:{required:!0,serializedName:"resourceGroupName",type:{name:"String"}}},F={parameterPath:"subscriptionId",mapper:{required:!0,serializedName:"subscriptionId",type:{name:"String"}}},J=Object.freeze({__proto__:null,BaseResource:p,CognitiveServicesAccount:h,CognitiveServicesAccountApiProperties:g,CognitiveServicesAccountEnumerateSkusResult:b,CognitiveServicesAccountKeys:P,CognitiveServicesAccountListResult:x,CognitiveServicesAccountProperties:S,CognitiveServicesResourceAndSku:C,Encryption:y,ErrorBody:O,ErrorModel:A,Identity:v,IpRule:l,KeyVaultProperties:d,MetricName:R,NetworkRuleSet:c,RegenerateKeyParameters:k,Sku:m,Usage:f,UsagesResult:M,UserAssignedIdentity:z,UserOwnedStorage:N,VirtualNetworkRule:u}),Q=(W.prototype.create=function(e,t,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,account:r,options:a},Y,i)},W.prototype.update=function(e,t,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,account:r,options:a},ee,i)},W.prototype.deleteMethod=function(e,t,r,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,options:r},te,a)},W.prototype.getProperties=function(e,t,r,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,options:r},re,a)},W.prototype.listByResourceGroup=function(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,options:t},ae,r)},W.prototype.list=function(e,t){return this.client.sendOperationRequest({options:e},ie,t)},W.prototype.listKeys=function(e,t,r,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,options:r},se,a)},W.prototype.regenerateKey=function(e,t,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,keyName:r,options:a},ne,i)},W.prototype.listSkus=function(e,t,r,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,options:r},oe,a)},W.prototype.getUsages=function(e,t,r,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,options:r},pe,a)},W.prototype.listByResourceGroupNext=function(e,t,r){return this.client.sendOperationRequest({nextPageLink:e,options:t},me,r)},W.prototype.listNext=function(e,t,r){return this.client.sendOperationRequest({nextPageLink:e,options:t},le,r)},W);function W(e){this.client=e}var X=new t.Serializer(J),Y={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[Z,j,F],queryParameters:[$],headerParameters:[B],requestBody:{parameterPath:"account",mapper:i(i({},h),{required:!0})},responses:{200:{bodyMapper:h},201:{bodyMapper:h},202:{bodyMapper:h},default:{bodyMapper:A}},serializer:X},ee={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[Z,j,F],queryParameters:[$],headerParameters:[B],requestBody:{parameterPath:"account",mapper:i(i({},h),{required:!0})},responses:{200:{bodyMapper:h},202:{bodyMapper:h},default:{bodyMapper:A}},serializer:X},te={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[Z,j,F],queryParameters:[$],headerParameters:[B],responses:{200:{},202:{},204:{},default:{bodyMapper:A}},serializer:X},re={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[Z,j,F],queryParameters:[$],headerParameters:[B],responses:{200:{bodyMapper:h},default:{bodyMapper:A}},serializer:X},ae={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts",urlParameters:[Z,F],queryParameters:[$],headerParameters:[B],responses:{200:{bodyMapper:x},default:{bodyMapper:A}},serializer:X},ie={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts",urlParameters:[F],queryParameters:[$],headerParameters:[B],responses:{200:{bodyMapper:x},default:{bodyMapper:A}},serializer:X},se={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys",urlParameters:[Z,j,F],queryParameters:[$],headerParameters:[B],responses:{200:{bodyMapper:P},default:{bodyMapper:A}},serializer:X},ne={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey",urlParameters:[Z,j,F],queryParameters:[$],headerParameters:[B],requestBody:{parameterPath:{keyName:"keyName"},mapper:i(i({},k),{required:!0})},responses:{200:{bodyMapper:P},default:{bodyMapper:A}},serializer:X},oe={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus",urlParameters:[Z,j,F],queryParameters:[$],headerParameters:[B],responses:{200:{bodyMapper:b},default:{bodyMapper:A}},serializer:X},pe={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages",urlParameters:[Z,j,F],queryParameters:[$,{parameterPath:["options","filter"],mapper:{serializedName:"$filter",type:{name:"String"}}}],headerParameters:[B],responses:{200:{bodyMapper:M},default:{bodyMapper:A}},serializer:X},me={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[H],headerParameters:[B],responses:{200:{bodyMapper:x},default:{bodyMapper:A}},serializer:X},le={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[H],headerParameters:[B],responses:{200:{bodyMapper:x},default:{bodyMapper:A}},serializer:X},ue=Object.freeze({__proto__:null,CloudError:o,ResourceSku:_,ResourceSkuRestrictionInfo:U,ResourceSkuRestrictions:V,ResourceSkusResult:T}),ce=(de.prototype.list=function(e,t){return this.client.sendOperationRequest({options:e},Ne,t)},de.prototype.listNext=function(e,t,r){return this.client.sendOperationRequest({nextPageLink:e,options:t},ge,r)},de);function de(e){this.client=e}var ye=new t.Serializer(ue),Ne={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus",urlParameters:[F],queryParameters:[$],headerParameters:[B],responses:{200:{bodyMapper:T},default:{bodyMapper:o}},serializer:ye},ge={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[H],headerParameters:[B],responses:{200:{bodyMapper:T},default:{bodyMapper:o}},serializer:ye},Se=Object.freeze({__proto__:null,CloudError:o,OperationDisplayInfo:q,OperationEntity:E,OperationEntityListResult:K}),ze=(ve.prototype.list=function(e,t){return this.client.sendOperationRequest({options:e},ke,t)},ve.prototype.listNext=function(e,t,r){return this.client.sendOperationRequest({nextPageLink:e,options:t},Ce,r)},ve);function ve(e){this.client=e}var he,Pe=new t.Serializer(Se),ke={httpMethod:"GET",path:"providers/Microsoft.CognitiveServices/operations",queryParameters:[$],headerParameters:[B],responses:{200:{bodyMapper:K},default:{bodyMapper:o}},serializer:Pe},Ce={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[H],headerParameters:[B],responses:{200:{bodyMapper:K},default:{bodyMapper:o}},serializer:Pe},be=(r(Re,he=s.AzureServiceClient),Re);function Re(e,t,r){var a=this;if(null==e)throw new Error("'credentials' cannot be null.");if(null==t)throw new Error("'subscriptionId' cannot be null.");if(!(r=r||{}).userAgent){var i=s.getDefaultUserAgentValue();r.userAgent="@azure/arm-cognitiveservices/5.1.0 "+i}return(a=he.call(this,e,r)||this).apiVersion="2017-04-18",a.acceptLanguage="en-US",a.longRunningOperationRetryTimeout=30,a.baseUri=r.baseUri||a.baseUri||"https://management.azure.com",a.requestContentType="application/json; charset=utf-8",a.credentials=e,a.subscriptionId=t,null!==r.acceptLanguage&&void 0!==r.acceptLanguage&&(a.acceptLanguage=r.acceptLanguage),null!==r.longRunningOperationRetryTimeout&&void 0!==r.longRunningOperationRetryTimeout&&(a.longRunningOperationRetryTimeout=r.longRunningOperationRetryTimeout),a}var fe,Me=(r(Oe,fe=be),Oe.prototype.checkSkuAvailability=function(e,t,r,a,i,s){return this.sendOperationRequest({location:e,skus:t,kind:r,type:a,options:i},qe,s)},Oe.prototype.checkDomainAvailability=function(e,t,r,a){return this.sendOperationRequest({subdomainName:e,type:t,options:r},Ee,a)},Oe);function Oe(e,t,r){var a=fe.call(this,e,t,r)||this;return a.accounts=new Q(a),a.resourceSkus=new ce(a),a.operations=new ze(a),a}var Ae=new t.Serializer(D),qe={httpMethod:"POST",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability",urlParameters:[F,{parameterPath:"location",mapper:{required:!0,serializedName:"location",type:{name:"String"}}}],queryParameters:[$],headerParameters:[B],requestBody:{parameterPath:{skus:"skus",kind:"kind",type:"type"},mapper:i(i({},I),{required:!0})},responses:{200:{bodyMapper:G},default:{bodyMapper:o}},serializer:Ae},Ee={httpMethod:"POST",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability",urlParameters:[F],queryParameters:[$],headerParameters:[B],requestBody:{parameterPath:{subdomainName:"subdomainName",type:"type"},mapper:i(i({},w),{required:!0})},responses:{200:{bodyMapper:L},default:{bodyMapper:o}},serializer:Ae};e.Accounts=Q,e.CognitiveServicesManagementClient=Me,e.CognitiveServicesManagementClientContext=be,e.CognitiveServicesManagementMappers=D,e.CognitiveServicesManagementModels=n,e.Operations=ze,e.ResourceSkus=ce,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@azure/ms-rest-js"),require("@azure/ms-rest-azure-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-js","@azure/ms-rest-azure-js"],t):t(((e=e||self).Azure=e.Azure||{},e.Azure.ArmCognitiveservices={}),e.msRest,e.msRestAzure)}(this,function(e,t,s){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function r(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},n=Object.freeze({__proto__:null}),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:"SkuCapability",type:{name:"Composite",className:"SkuCapability",modelProperties:{name:{serializedName:"name",type:{name:"String"}},value:{serializedName:"value",type:{name:"String"}}}}},c={serializedName:"IpRule",type:{name:"Composite",className:"IpRule",modelProperties:{value:{required:!0,serializedName:"value",type:{name:"String"}}}}},l={serializedName:"VirtualNetworkRule",type:{name:"Composite",className:"VirtualNetworkRule",modelProperties:{id:{required:!0,serializedName:"id",type:{name:"String"}},state:{serializedName:"state",type:{name:"String"}},ignoreMissingVnetServiceEndpoint:{serializedName:"ignoreMissingVnetServiceEndpoint",type:{name:"Boolean"}}}}},d={serializedName:"NetworkRuleSet",type:{name:"Composite",className:"NetworkRuleSet",modelProperties:{defaultAction:{serializedName:"defaultAction",type:{name:"String"}},ipRules:{serializedName:"ipRules",type:{name:"Sequence",element:{type:{name:"Composite",className:"IpRule"}}}},virtualNetworkRules:{serializedName:"virtualNetworkRules",type:{name:"Sequence",element:{type:{name:"Composite",className:"VirtualNetworkRule"}}}}}}},y={serializedName:"KeyVaultProperties",type:{name:"Composite",className:"KeyVaultProperties",modelProperties:{keyName:{serializedName:"keyName",type:{name:"String"}},keyVersion:{serializedName:"keyVersion",type:{name:"String"}},keyVaultUri:{serializedName:"keyVaultUri",type:{name:"String"}}}}},N={serializedName:"Encryption",type:{name:"Composite",className:"Encryption",modelProperties:{keyVaultProperties:{serializedName:"keyVaultProperties",type:{name:"Composite",className:"KeyVaultProperties"}},keySource:{serializedName:"keySource",defaultValue:"Microsoft.KeyVault",type:{name:"String"}}}}},S={serializedName:"UserOwnedStorage",type:{name:"Composite",className:"UserOwnedStorage",modelProperties:{resourceId:{serializedName:"resourceId",type:{name:"String"}}}}},v={serializedName:"PrivateEndpoint",type:{name:"Composite",className:"PrivateEndpoint",modelProperties:{id:{readOnly:!0,serializedName:"id",type:{name:"String"}}}}},g={serializedName:"PrivateLinkServiceConnectionState",type:{name:"Composite",className:"PrivateLinkServiceConnectionState",modelProperties:{status:{serializedName:"status",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},actionRequired:{serializedName:"actionRequired",type:{name:"String"}}}}},P={serializedName:"PrivateEndpointConnectionProperties",type:{name:"Composite",className:"PrivateEndpointConnectionProperties",modelProperties:{privateEndpoint:{serializedName:"privateEndpoint",type:{name:"Composite",className:"PrivateEndpoint"}},privateLinkServiceConnectionState:{required:!0,serializedName:"privateLinkServiceConnectionState",type:{name:"Composite",className:"PrivateLinkServiceConnectionState"}},groupIds:{serializedName:"groupIds",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},z={serializedName:"Resource",type:{name:"Composite",className:"Resource",modelProperties:{id:{readOnly:!0,serializedName:"id",type:{name:"String"}},name:{readOnly:!0,serializedName:"name",type:{name:"String"}},type:{readOnly:!0,serializedName:"type",type:{name:"String"}}}}},C={serializedName:"PrivateEndpointConnection",type:{name:"Composite",className:"PrivateEndpointConnection",modelProperties:a(a({},z.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"PrivateEndpointConnectionProperties"}}})}},k={serializedName:"CognitiveServicesAccountApiProperties",type:{name:"Composite",className:"CognitiveServicesAccountApiProperties",modelProperties:{qnaRuntimeEndpoint:{serializedName:"qnaRuntimeEndpoint",type:{name:"String"}},statisticsEnabled:{serializedName:"statisticsEnabled",type:{name:"Boolean"}},eventHubConnectionString:{serializedName:"eventHubConnectionString",constraints:{MaxLength:1e3,Pattern:/^( *)Endpoint=sb:\/\/(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$/},type:{name:"String"}},storageAccountConnectionString:{serializedName:"storageAccountConnectionString",constraints:{MaxLength:1e3,Pattern:/^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$/},type:{name:"String"}}}}},R={serializedName:"CognitiveServicesAccountProperties",type:{name:"Composite",className:"CognitiveServicesAccountProperties",modelProperties:{provisioningState:{readOnly:!0,serializedName:"provisioningState",type:{name:"String"}},endpoint:{readOnly:!0,serializedName:"endpoint",type:{name:"String"}},internalId:{readOnly:!0,serializedName:"internalId",type:{name:"String"}},capabilities:{readOnly:!0,serializedName:"capabilities",type:{name:"Sequence",element:{type:{name:"Composite",className:"SkuCapability"}}}},customSubDomainName:{serializedName:"customSubDomainName",type:{name:"String"}},networkAcls:{serializedName:"networkAcls",type:{name:"Composite",className:"NetworkRuleSet"}},encryption:{serializedName:"encryption",type:{name:"Composite",className:"Encryption"}},userOwnedStorage:{serializedName:"userOwnedStorage",type:{name:"Sequence",element:{type:{name:"Composite",className:"UserOwnedStorage"}}}},privateEndpointConnections:{serializedName:"privateEndpointConnections",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"publicNetworkAccess",type:{name:"String"}},apiProperties:{serializedName:"apiProperties",type:{name:"Composite",className:"CognitiveServicesAccountApiProperties"}}}}},h={serializedName:"UserAssignedIdentity",type:{name:"Composite",className:"UserAssignedIdentity",modelProperties:{principalId:{serializedName:"principalId",type:{name:"String"}},clientId:{serializedName:"clientId",type:{name:"String"}}}}},b={serializedName:"Identity",type:{name:"Composite",className:"Identity",modelProperties:{type:{serializedName:"type",type:{name:"Enum",allowedValues:["None","SystemAssigned","UserAssigned"]}},tenantId:{readOnly:!0,serializedName:"tenantId",type:{name:"String"}},principalId:{readOnly:!0,serializedName:"principalId",type:{name:"String"}},userAssignedIdentities:{serializedName:"userAssignedIdentities",type:{name:"Dictionary",value:{type:{name:"Composite",className:"UserAssignedIdentity"}}}}}}},f={serializedName:"CognitiveServicesAccount",type:{name:"Composite",className:"CognitiveServicesAccount",modelProperties:{etag:{readOnly:!0,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"}},properties:{serializedName:"properties",type:{name:"Composite",className:"CognitiveServicesAccountProperties"}},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"}},identity:{serializedName:"identity",type:{name:"Composite",className:"Identity"}}}}},M={serializedName:"CognitiveServicesAccountKeys",type:{name:"Composite",className:"CognitiveServicesAccountKeys",modelProperties:{key1:{serializedName:"key1",type:{name:"String"}},key2:{serializedName:"key2",type:{name:"String"}}}}},E={serializedName:"RegenerateKeyParameters",type:{name:"Composite",className:"RegenerateKeyParameters",modelProperties:{keyName:{required:!0,serializedName:"keyName",type:{name:"Enum",allowedValues:["Key1","Key2"]}}}}},O={serializedName:"CognitiveServicesResourceAndSku",type:{name:"Composite",className:"CognitiveServicesResourceAndSku",modelProperties:{resourceType:{serializedName:"resourceType",type:{name:"String"}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}}}}},A={serializedName:"CognitiveServicesAccountEnumerateSkusResult",type:{name:"Composite",className:"CognitiveServicesAccountEnumerateSkusResult",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CognitiveServicesResourceAndSku"}}}}}}},q={serializedName:"MetricName",type:{name:"Composite",className:"MetricName",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"String"}},localizedValue:{readOnly:!0,serializedName:"localizedValue",type:{name:"String"}}}}},L={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"}}}}},I={serializedName:"UsagesResult",type:{name:"Composite",className:"UsagesResult",modelProperties:{value:{readOnly:!0,serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Usage"}}}}}}},G={serializedName:"ErrorBody",type:{name:"Composite",className:"ErrorBody",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"String"}},message:{required:!0,serializedName:"message",type:{name:"String"}}}}},w={serializedName:"Error",type:{name:"Composite",className:"ErrorModel",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorBody"}}}}},T={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"}}}}},U={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"}}}}},_={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"}}}}},x={serializedName:"CheckSkuAvailabilityResultList",type:{name:"Composite",className:"CheckSkuAvailabilityResultList",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CheckSkuAvailabilityResult"}}}}}}},V={serializedName:"CheckDomainAvailabilityParameter",type:{name:"Composite",className:"CheckDomainAvailabilityParameter",modelProperties:{subdomainName:{required:!0,serializedName:"subdomainName",type:{name:"String"}},type:{required:!0,serializedName:"type",type:{name:"String"}}}}},K={serializedName:"CheckDomainAvailabilityResult",type:{name:"Composite",className:"CheckDomainAvailabilityResult",modelProperties:{isSubdomainAvailable:{serializedName:"isSubdomainAvailable",type:{name:"Boolean"}},reason:{serializedName:"reason",type:{name:"String"}},subdomainName:{serializedName:"subdomainName",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}}}}},B={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"}}}}}}},D={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"}}}}},j={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"}}}}}}},Z={serializedName:"PrivateLinkResourceProperties",type:{name:"Composite",className:"PrivateLinkResourceProperties",modelProperties:{groupId:{readOnly:!0,serializedName:"groupId",type:{name:"String"}},displayName:{readOnly:!0,serializedName:"displayName",type:{name:"String"}},requiredMembers:{readOnly:!0,serializedName:"requiredMembers",type:{name:"Sequence",element:{type:{name:"String"}}}},requiredZoneNames:{serializedName:"requiredZoneNames",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},$={serializedName:"PrivateLinkResource",type:{name:"Composite",className:"PrivateLinkResource",modelProperties:a(a({},z.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"PrivateLinkResourceProperties"}}})}},H={serializedName:"PrivateLinkResourceListResult",type:{name:"Composite",className:"PrivateLinkResourceListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateLinkResource"}}}}}}},F={serializedName:"ProxyResource",type:{name:"Composite",className:"ProxyResource",modelProperties:a({},z.type.modelProperties)}},J={serializedName:"TrackedResource",type:{name:"Composite",className:"TrackedResource",modelProperties:a(a({},z.type.modelProperties),{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},location:{required:!0,serializedName:"location",type:{name:"String"}}})}},Q={serializedName:"AzureEntityResource",type:{name:"Composite",className:"AzureEntityResource",modelProperties:a(a({},z.type.modelProperties),{etag:{readOnly:!0,serializedName:"etag",type:{name:"String"}}})}},W={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"}}}}}}},X={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"}}}}},Y={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"}}}}}}},ee=Object.freeze({__proto__:null,CloudError:o,BaseResource:p,Sku:m,SkuCapability:u,IpRule:c,VirtualNetworkRule:l,NetworkRuleSet:d,KeyVaultProperties:y,Encryption:N,UserOwnedStorage:S,PrivateEndpoint:v,PrivateLinkServiceConnectionState:g,PrivateEndpointConnectionProperties:P,Resource:z,PrivateEndpointConnection:C,CognitiveServicesAccountApiProperties:k,CognitiveServicesAccountProperties:R,UserAssignedIdentity:h,Identity:b,CognitiveServicesAccount:f,CognitiveServicesAccountKeys:M,RegenerateKeyParameters:E,CognitiveServicesResourceAndSku:O,CognitiveServicesAccountEnumerateSkusResult:A,MetricName:q,Usage:L,UsagesResult:I,ErrorBody:G,ErrorModel:w,OperationDisplayInfo:T,OperationEntity:U,CheckSkuAvailabilityParameter:_,CheckSkuAvailabilityResult:{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"}}}}},CheckSkuAvailabilityResultList:x,CheckDomainAvailabilityParameter:V,CheckDomainAvailabilityResult:K,ResourceSkuRestrictionInfo:B,ResourceSkuRestrictions:D,ResourceSku:j,PrivateLinkResourceProperties:Z,PrivateLinkResource:$,PrivateLinkResourceListResult:H,ProxyResource:F,TrackedResource:J,AzureEntityResource:Q,CognitiveServicesAccountListResult:W,ResourceSkusResult:X,OperationEntityListResult:Y}),te={parameterPath:"acceptLanguage",mapper:{serializedName:"accept-language",defaultValue:"en-US",type:{name:"String"}}},re={parameterPath:"accountName",mapper:{required:!0,serializedName:"accountName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/},type:{name:"String"}}},ie={parameterPath:"apiVersion",mapper:{required:!0,serializedName:"api-version",constraints:{MinLength:1},type:{name:"String"}}},ae={parameterPath:"nextPageLink",mapper:{required:!0,serializedName:"nextLink",type:{name:"String"}},skipEncoding:!0},se={parameterPath:"privateEndpointConnectionName",mapper:{required:!0,serializedName:"privateEndpointConnectionName",type:{name:"String"}}},ne={parameterPath:"resourceGroupName",mapper:{required:!0,serializedName:"resourceGroupName",constraints:{MaxLength:90,MinLength:1,Pattern:/^[-\w\._\(\)]+$/},type:{name:"String"}}},oe={parameterPath:"subscriptionId",mapper:{required:!0,serializedName:"subscriptionId",constraints:{MinLength:1},type:{name:"String"}}},pe=Object.freeze({__proto__:null,AzureEntityResource:Q,BaseResource:p,CognitiveServicesAccount:f,CognitiveServicesAccountApiProperties:k,CognitiveServicesAccountEnumerateSkusResult:A,CognitiveServicesAccountKeys:M,CognitiveServicesAccountListResult:W,CognitiveServicesAccountProperties:R,CognitiveServicesResourceAndSku:O,Encryption:N,ErrorBody:G,ErrorModel:w,Identity:b,IpRule:c,KeyVaultProperties:y,MetricName:q,NetworkRuleSet:d,PrivateEndpoint:v,PrivateEndpointConnection:C,PrivateEndpointConnectionProperties:P,PrivateLinkResource:$,PrivateLinkResourceProperties:Z,PrivateLinkServiceConnectionState:g,ProxyResource:F,RegenerateKeyParameters:E,Resource:z,Sku:m,SkuCapability:u,TrackedResource:J,Usage:L,UsagesResult:I,UserAssignedIdentity:h,UserOwnedStorage:S,VirtualNetworkRule:l}),me=(ue.prototype.create=function(e,t,r,i,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,account:r,options:i},le,a)},ue.prototype.update=function(e,t,r,i,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,account:r,options:i},de,a)},ue.prototype.deleteMethod=function(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,options:r},ye,i)},ue.prototype.getProperties=function(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,options:r},Ne,i)},ue.prototype.listByResourceGroup=function(e,t,r){return this.client.sendOperationRequest({resourceGroupName:e,options:t},Se,r)},ue.prototype.list=function(e,t){return this.client.sendOperationRequest({options:e},ve,t)},ue.prototype.listKeys=function(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,options:r},ge,i)},ue.prototype.regenerateKey=function(e,t,r,i,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,keyName:r,options:i},Pe,a)},ue.prototype.listSkus=function(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,options:r},ze,i)},ue.prototype.getUsages=function(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,options:r},Ce,i)},ue.prototype.listByResourceGroupNext=function(e,t,r){return this.client.sendOperationRequest({nextPageLink:e,options:t},ke,r)},ue.prototype.listNext=function(e,t,r){return this.client.sendOperationRequest({nextPageLink:e,options:t},Re,r)},ue);function ue(e){this.client=e}var ce=new t.Serializer(pe),le={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[ne,re,oe],queryParameters:[ie],headerParameters:[te],requestBody:{parameterPath:"account",mapper:a(a({},f),{required:!0})},responses:{200:{bodyMapper:f},201:{bodyMapper:f},202:{bodyMapper:f},default:{bodyMapper:w}},serializer:ce},de={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[ne,re,oe],queryParameters:[ie],headerParameters:[te],requestBody:{parameterPath:"account",mapper:a(a({},f),{required:!0})},responses:{200:{bodyMapper:f},202:{bodyMapper:f},default:{bodyMapper:w}},serializer:ce},ye={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[ne,re,oe],queryParameters:[ie],headerParameters:[te],responses:{200:{},202:{},204:{},default:{bodyMapper:w}},serializer:ce},Ne={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}",urlParameters:[ne,re,oe],queryParameters:[ie],headerParameters:[te],responses:{200:{bodyMapper:f},default:{bodyMapper:w}},serializer:ce},Se={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts",urlParameters:[ne,oe],queryParameters:[ie],headerParameters:[te],responses:{200:{bodyMapper:W},default:{bodyMapper:w}},serializer:ce},ve={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts",urlParameters:[oe],queryParameters:[ie],headerParameters:[te],responses:{200:{bodyMapper:W},default:{bodyMapper:w}},serializer:ce},ge={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys",urlParameters:[ne,re,oe],queryParameters:[ie],headerParameters:[te],responses:{200:{bodyMapper:M},default:{bodyMapper:w}},serializer:ce},Pe={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey",urlParameters:[ne,re,oe],queryParameters:[ie],headerParameters:[te],requestBody:{parameterPath:{keyName:"keyName"},mapper:a(a({},E),{required:!0})},responses:{200:{bodyMapper:M},default:{bodyMapper:w}},serializer:ce},ze={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus",urlParameters:[ne,re,oe],queryParameters:[ie],headerParameters:[te],responses:{200:{bodyMapper:A},default:{bodyMapper:w}},serializer:ce},Ce={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages",urlParameters:[ne,re,oe],queryParameters:[ie,{parameterPath:["options","filter"],mapper:{serializedName:"$filter",type:{name:"String"}}}],headerParameters:[te],responses:{200:{bodyMapper:I},default:{bodyMapper:w}},serializer:ce},ke={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[ae],headerParameters:[te],responses:{200:{bodyMapper:W},default:{bodyMapper:w}},serializer:ce},Re={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[ae],headerParameters:[te],responses:{200:{bodyMapper:W},default:{bodyMapper:w}},serializer:ce},he=Object.freeze({__proto__:null,CloudError:o,ResourceSku:j,ResourceSkuRestrictionInfo:B,ResourceSkuRestrictions:D,ResourceSkusResult:X}),be=(fe.prototype.list=function(e,t){return this.client.sendOperationRequest({options:e},Ee,t)},fe.prototype.listNext=function(e,t,r){return this.client.sendOperationRequest({nextPageLink:e,options:t},Oe,r)},fe);function fe(e){this.client=e}var Me=new t.Serializer(he),Ee={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus",urlParameters:[oe],queryParameters:[ie],headerParameters:[te],responses:{200:{bodyMapper:X},default:{bodyMapper:o}},serializer:Me},Oe={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[ae],headerParameters:[te],responses:{200:{bodyMapper:X},default:{bodyMapper:o}},serializer:Me},Ae=Object.freeze({__proto__:null,CloudError:o,OperationDisplayInfo:T,OperationEntity:U,OperationEntityListResult:Y}),qe=(Le.prototype.list=function(e,t){return this.client.sendOperationRequest({options:e},Ge,t)},Le.prototype.listNext=function(e,t,r){return this.client.sendOperationRequest({nextPageLink:e,options:t},we,r)},Le);function Le(e){this.client=e}var Ie=new t.Serializer(Ae),Ge={httpMethod:"GET",path:"providers/Microsoft.CognitiveServices/operations",queryParameters:[ie],headerParameters:[te],responses:{200:{bodyMapper:Y},default:{bodyMapper:o}},serializer:Ie},we={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[ae],headerParameters:[te],responses:{200:{bodyMapper:Y},default:{bodyMapper:o}},serializer:Ie},Te=Object.freeze({__proto__:null,AzureEntityResource:Q,BaseResource:p,CloudError:o,CognitiveServicesAccount:f,CognitiveServicesAccountApiProperties:k,CognitiveServicesAccountProperties:R,Encryption:N,Identity:b,IpRule:c,KeyVaultProperties:y,NetworkRuleSet:d,PrivateEndpoint:v,PrivateEndpointConnection:C,PrivateEndpointConnectionProperties:P,PrivateLinkResource:$,PrivateLinkResourceProperties:Z,PrivateLinkServiceConnectionState:g,ProxyResource:F,Resource:z,Sku:m,SkuCapability:u,TrackedResource:J,UserAssignedIdentity:h,UserOwnedStorage:S,VirtualNetworkRule:l}),Ue=(_e.prototype.get=function(e,t,r,i,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,privateEndpointConnectionName:r,options:i},Ve,a)},_e.prototype.createOrUpdate=function(e,t,r,i,a,s){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,privateEndpointConnectionName:r,properties:i,options:a},Ke,s)},_e.prototype.deleteMethod=function(e,t,r,i,a){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,privateEndpointConnectionName:r,options:i},Be,a)},_e);function _e(e){this.client=e}var xe=new t.Serializer(Te),Ve={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",urlParameters:[ne,re,oe,se],queryParameters:[ie],headerParameters:[te],responses:{200:{bodyMapper:C},default:{bodyMapper:o}},serializer:xe},Ke={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",urlParameters:[ne,re,oe,se],queryParameters:[ie],headerParameters:[te],requestBody:{parameterPath:"properties",mapper:a(a({},C),{required:!0})},responses:{200:{bodyMapper:C},default:{bodyMapper:o}},serializer:xe},Be={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",urlParameters:[ne,re,oe,se],queryParameters:[ie],headerParameters:[te],responses:{200:{},204:{},default:{bodyMapper:o}},serializer:xe},De=Object.freeze({__proto__:null,AzureEntityResource:Q,BaseResource:p,CloudError:o,CognitiveServicesAccount:f,CognitiveServicesAccountApiProperties:k,CognitiveServicesAccountProperties:R,Encryption:N,Identity:b,IpRule:c,KeyVaultProperties:y,NetworkRuleSet:d,PrivateEndpoint:v,PrivateEndpointConnection:C,PrivateEndpointConnectionProperties:P,PrivateLinkResource:$,PrivateLinkResourceListResult:H,PrivateLinkResourceProperties:Z,PrivateLinkServiceConnectionState:g,ProxyResource:F,Resource:z,Sku:m,SkuCapability:u,TrackedResource:J,UserAssignedIdentity:h,UserOwnedStorage:S,VirtualNetworkRule:l}),je=(Ze.prototype.list=function(e,t,r,i){return this.client.sendOperationRequest({resourceGroupName:e,accountName:t,options:r},He,i)},Ze);function Ze(e){this.client=e}var $e,He={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateLinkResources",urlParameters:[ne,re,oe],queryParameters:[ie],headerParameters:[te],responses:{200:{bodyMapper:H},default:{bodyMapper:o}},serializer:new t.Serializer(De)},Fe=(r(Je,$e=s.AzureServiceClient),Je);function Je(e,t,r){var i,a=this;if(null==e)throw new Error("'credentials' cannot be null.");if(null==t)throw new Error("'subscriptionId' cannot be null.");return(r=r||{}).userAgent||(i=s.getDefaultUserAgentValue(),r.userAgent="@azure/arm-cognitiveservices/5.2.0 "+i),(a=$e.call(this,e,r)||this).apiVersion="2017-04-18",a.acceptLanguage="en-US",a.longRunningOperationRetryTimeout=30,a.baseUri=r.baseUri||a.baseUri||"https://management.azure.com",a.requestContentType="application/json; charset=utf-8",a.credentials=e,a.subscriptionId=t,null!==r.acceptLanguage&&void 0!==r.acceptLanguage&&(a.acceptLanguage=r.acceptLanguage),null!==r.longRunningOperationRetryTimeout&&void 0!==r.longRunningOperationRetryTimeout&&(a.longRunningOperationRetryTimeout=r.longRunningOperationRetryTimeout),a}var Qe,We=(r(Xe,Qe=Fe),Xe.prototype.checkSkuAvailability=function(e,t,r,i,a,s){return this.sendOperationRequest({location:e,skus:t,kind:r,type:i,options:a},et,s)},Xe.prototype.checkDomainAvailability=function(e,t,r,i){return this.sendOperationRequest({subdomainName:e,type:t,options:r},tt,i)},Xe);function Xe(e,t,r){var i=Qe.call(this,e,t,r)||this;return i.accounts=new me(i),i.resourceSkus=new be(i),i.operations=new qe(i),i.privateEndpointConnections=new Ue(i),i.privateLinkResources=new je(i),i}var Ye=new t.Serializer(ee),et={httpMethod:"POST",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability",urlParameters:[oe,{parameterPath:"location",mapper:{required:!0,serializedName:"location",type:{name:"String"}}}],queryParameters:[ie],headerParameters:[te],requestBody:{parameterPath:{skus:"skus",kind:"kind",type:"type"},mapper:a(a({},_),{required:!0})},responses:{200:{bodyMapper:x},default:{bodyMapper:o}},serializer:Ye},tt={httpMethod:"POST",path:"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/checkDomainAvailability",urlParameters:[oe],queryParameters:[ie],headerParameters:[te],requestBody:{parameterPath:{subdomainName:"subdomainName",type:"type"},mapper:a(a({},V),{required:!0})},responses:{200:{bodyMapper:K},default:{bodyMapper:o}},serializer:Ye};e.Accounts=me,e.CognitiveServicesManagementClient=We,e.CognitiveServicesManagementClientContext=Fe,e.CognitiveServicesManagementMappers=ee,e.CognitiveServicesManagementModels=n,e.Operations=qe,e.PrivateEndpointConnections=Ue,e.PrivateLinkResources=je,e.ResourceSkus=be,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -10,6 +10,8 @@ import * as msRest from "@azure/ms-rest-js";

operations: operations.Operations;
privateEndpointConnections: operations.PrivateEndpointConnections;
privateLinkResources: operations.PrivateLinkResources;
/**
* Initializes a new instance of the CognitiveServicesManagementClient class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId Azure Subscription ID.
* @param subscriptionId The ID of the target subscription.
* @param [options] The parameter options

@@ -16,0 +18,0 @@ */

@@ -22,3 +22,3 @@ /*

* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId Azure Subscription ID.
* @param subscriptionId The ID of the target subscription.
* @param [options] The parameter options

@@ -31,2 +31,4 @@ */

_this.operations = new operations.Operations(_this);
_this.privateEndpointConnections = new operations.PrivateEndpointConnections(_this);
_this.privateLinkResources = new operations.PrivateLinkResources(_this);
return _this;

@@ -33,0 +35,0 @@ }

@@ -11,3 +11,3 @@ import * as Models from "./models";

* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId Azure Subscription ID.
* @param subscriptionId The ID of the target subscription.
* @param [options] The parameter options

@@ -14,0 +14,0 @@ */

@@ -13,3 +13,3 @@ /*

var packageName = "@azure/arm-cognitiveservices";
var packageVersion = "5.1.0";
var packageVersion = "5.2.0";
var CognitiveServicesManagementClientContext = /** @class */ (function (_super) {

@@ -20,3 +20,3 @@ __extends(CognitiveServicesManagementClientContext, _super);

* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId Azure Subscription ID.
* @param subscriptionId The ID of the target subscription.
* @param [options] The parameter options

@@ -23,0 +23,0 @@ */

@@ -1,2 +0,2 @@

export { BaseResource, CognitiveServicesAccount, CognitiveServicesAccountApiProperties, CognitiveServicesAccountEnumerateSkusResult, CognitiveServicesAccountKeys, CognitiveServicesAccountListResult, CognitiveServicesAccountProperties, CognitiveServicesResourceAndSku, Encryption, ErrorBody, ErrorModel, Identity, IpRule, KeyVaultProperties, MetricName, NetworkRuleSet, RegenerateKeyParameters, Sku, Usage, UsagesResult, UserAssignedIdentity, UserOwnedStorage, VirtualNetworkRule } from "../models/mappers";
export { AzureEntityResource, BaseResource, CognitiveServicesAccount, CognitiveServicesAccountApiProperties, CognitiveServicesAccountEnumerateSkusResult, CognitiveServicesAccountKeys, CognitiveServicesAccountListResult, CognitiveServicesAccountProperties, CognitiveServicesResourceAndSku, Encryption, ErrorBody, ErrorModel, Identity, IpRule, KeyVaultProperties, MetricName, NetworkRuleSet, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionProperties, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionState, ProxyResource, RegenerateKeyParameters, Resource, Sku, SkuCapability, TrackedResource, Usage, UsagesResult, UserAssignedIdentity, UserOwnedStorage, VirtualNetworkRule } from "../models/mappers";
//# sourceMappingURL=accountsMappers.d.ts.map

@@ -8,3 +8,3 @@ /*

*/
export { BaseResource, CognitiveServicesAccount, CognitiveServicesAccountApiProperties, CognitiveServicesAccountEnumerateSkusResult, CognitiveServicesAccountKeys, CognitiveServicesAccountListResult, CognitiveServicesAccountProperties, CognitiveServicesResourceAndSku, Encryption, ErrorBody, ErrorModel, Identity, IpRule, KeyVaultProperties, MetricName, NetworkRuleSet, RegenerateKeyParameters, Sku, Usage, UsagesResult, UserAssignedIdentity, UserOwnedStorage, VirtualNetworkRule } from "../models/mappers";
export { AzureEntityResource, BaseResource, CognitiveServicesAccount, CognitiveServicesAccountApiProperties, CognitiveServicesAccountEnumerateSkusResult, CognitiveServicesAccountKeys, CognitiveServicesAccountListResult, CognitiveServicesAccountProperties, CognitiveServicesResourceAndSku, Encryption, ErrorBody, ErrorModel, Identity, IpRule, KeyVaultProperties, MetricName, NetworkRuleSet, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionProperties, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionState, ProxyResource, RegenerateKeyParameters, Resource, Sku, SkuCapability, TrackedResource, Usage, UsagesResult, UserAssignedIdentity, UserOwnedStorage, VirtualNetworkRule } from "../models/mappers";
//# sourceMappingURL=accountsMappers.js.map

@@ -20,2 +20,15 @@ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";

/**
* SkuCapability indicates the capability of a certain feature.
*/
export interface SkuCapability {
/**
* The name of the SkuCapability.
*/
name?: string;
/**
* The value of the SkuCapability.
*/
value?: string;
}
/**
* A rule governing the accessibility from a specific ip address or ip range.

@@ -107,2 +120,80 @@ */

/**
* The Private Endpoint resource.
*/
export interface PrivateEndpoint {
/**
* The ARM identifier for Private Endpoint
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
}
/**
* A collection of information about the state of the connection between service consumer and
* provider.
*/
export interface PrivateLinkServiceConnectionState {
/**
* Indicates whether the connection has been Approved/Rejected/Removed by the owner of the
* service. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
*/
status?: PrivateEndpointServiceConnectionStatus;
/**
* The reason for approval/rejection of the connection.
*/
description?: string;
/**
* A message indicating if changes on the service provider require any updates on the consumer.
*/
actionRequired?: string;
}
/**
* Properties of the PrivateEndpointConnectProperties.
*/
export interface PrivateEndpointConnectionProperties {
/**
* The resource of private end point.
*/
privateEndpoint?: PrivateEndpoint;
/**
* A collection of information about the state of the connection between service consumer and
* provider.
*/
privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;
/**
* The private link resource group ids.
*/
groupIds?: string[];
}
/**
* An interface representing Resource.
*/
export interface Resource extends BaseResource {
/**
* Fully qualified resource Id for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* The name of the resource
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* The type of the resource. Ex- Microsoft.Compute/virtualMachines or
* Microsoft.Storage/storageAccounts.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
}
/**
* The Private Endpoint Connection resource.
*/
export interface PrivateEndpointConnection extends Resource {
/**
* Resource properties.
*/
properties?: PrivateEndpointConnectionProperties;
}
/**
* The api properties for special APIs.

@@ -150,2 +241,8 @@ */

/**
* Gets the capabilities of the cognitive services account. Each item indicates the capability of
* a specific feature. The values are read-only and for reference only.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly capabilities?: SkuCapability[];
/**
* Optional subdomain name used for token-based authentication.

@@ -167,2 +264,11 @@ */

/**
* The private endpoint connection associated with the Cognitive Services account.
*/
privateEndpointConnections?: PrivateEndpointConnection[];
/**
* 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'
*/
publicNetworkAccess?: PublicNetworkAccess;
/**
* The api properties for special APIs.

@@ -609,2 +715,75 @@ */

/**
* Properties of a private link resource.
*/
export interface PrivateLinkResourceProperties {
/**
* The private link resource group id.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly groupId?: string;
/**
* The private link resource display name.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly displayName?: string;
/**
* The private link resource required member names.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly requiredMembers?: string[];
/**
* The private link resource Private link DNS zone name.
*/
requiredZoneNames?: string[];
}
/**
* A private link resource
*/
export interface PrivateLinkResource extends Resource {
/**
* Resource properties.
*/
properties?: PrivateLinkResourceProperties;
}
/**
* A list of private link resources
*/
export interface PrivateLinkResourceListResult {
/**
* Array of private link resources
*/
value?: PrivateLinkResource[];
}
/**
* The resource model definition for a ARM proxy resource. It will have everything other than
* required location and tags
*/
export interface ProxyResource extends Resource {
}
/**
* The resource model definition for a ARM tracked top level resource
*/
export interface TrackedResource extends Resource {
/**
* Resource tags.
*/
tags?: {
[propertyName: string]: string;
};
/**
* The geo-location where the resource lives
*/
location: string;
}
/**
* The resource model definition for a Azure Resource Manager resource with an etag.
*/
export interface AzureEntityResource extends Resource {
/**
* Resource Etag.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly etag?: string;
}
/**
* Optional Parameters.

@@ -687,2 +866,16 @@ */

/**
* Defines values for PrivateEndpointServiceConnectionStatus.
* Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
* @readonly
* @enum {string}
*/
export declare type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected';
/**
* Defines values for PublicNetworkAccess.
* Possible values include: 'Enabled', 'Disabled'
* @readonly
* @enum {string}
*/
export declare type PublicNetworkAccess = 'Enabled' | 'Disabled';
/**
* Defines values for IdentityType.

@@ -1036,2 +1229,56 @@ * Possible values include: 'None', 'SystemAssigned', 'UserAssigned'

};
/**
* Contains response data for the get operation.
*/
export declare type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: PrivateEndpointConnection;
};
};
/**
* Contains response data for the createOrUpdate operation.
*/
export declare type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: PrivateEndpointConnection;
};
};
/**
* Contains response data for the list operation.
*/
export declare type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: PrivateLinkResourceListResult;
};
};
//# sourceMappingURL=index.d.ts.map

@@ -5,2 +5,3 @@ import * as msRest from "@azure/ms-rest-js";

export declare const Sku: msRest.CompositeMapper;
export declare const SkuCapability: msRest.CompositeMapper;
export declare const IpRule: msRest.CompositeMapper;

@@ -12,2 +13,7 @@ export declare const VirtualNetworkRule: msRest.CompositeMapper;

export declare const UserOwnedStorage: msRest.CompositeMapper;
export declare const PrivateEndpoint: msRest.CompositeMapper;
export declare const PrivateLinkServiceConnectionState: msRest.CompositeMapper;
export declare const PrivateEndpointConnectionProperties: msRest.CompositeMapper;
export declare const Resource: msRest.CompositeMapper;
export declare const PrivateEndpointConnection: msRest.CompositeMapper;
export declare const CognitiveServicesAccountApiProperties: msRest.CompositeMapper;

@@ -37,2 +43,8 @@ export declare const CognitiveServicesAccountProperties: msRest.CompositeMapper;

export declare const ResourceSku: msRest.CompositeMapper;
export declare const PrivateLinkResourceProperties: msRest.CompositeMapper;
export declare const PrivateLinkResource: msRest.CompositeMapper;
export declare const PrivateLinkResourceListResult: msRest.CompositeMapper;
export declare const ProxyResource: msRest.CompositeMapper;
export declare const TrackedResource: msRest.CompositeMapper;
export declare const AzureEntityResource: msRest.CompositeMapper;
export declare const CognitiveServicesAccountListResult: msRest.CompositeMapper;

@@ -39,0 +51,0 @@ export declare const ResourceSkusResult: msRest.CompositeMapper;

@@ -8,2 +8,3 @@ /*

*/
import { __assign } from "tslib";
import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";

@@ -40,2 +41,23 @@ export var CloudError = CloudErrorMapper;

};
export var SkuCapability = {
serializedName: "SkuCapability",
type: {
name: "Composite",
className: "SkuCapability",
modelProperties: {
name: {
serializedName: "name",
type: {
name: "String"
}
},
value: {
serializedName: "value",
type: {
name: "String"
}
}
}
}
};
export var IpRule = {

@@ -189,2 +211,124 @@ serializedName: "IpRule",

};
export var PrivateEndpoint = {
serializedName: "PrivateEndpoint",
type: {
name: "Composite",
className: "PrivateEndpoint",
modelProperties: {
id: {
readOnly: true,
serializedName: "id",
type: {
name: "String"
}
}
}
}
};
export var PrivateLinkServiceConnectionState = {
serializedName: "PrivateLinkServiceConnectionState",
type: {
name: "Composite",
className: "PrivateLinkServiceConnectionState",
modelProperties: {
status: {
serializedName: "status",
type: {
name: "String"
}
},
description: {
serializedName: "description",
type: {
name: "String"
}
},
actionRequired: {
serializedName: "actionRequired",
type: {
name: "String"
}
}
}
}
};
export var PrivateEndpointConnectionProperties = {
serializedName: "PrivateEndpointConnectionProperties",
type: {
name: "Composite",
className: "PrivateEndpointConnectionProperties",
modelProperties: {
privateEndpoint: {
serializedName: "privateEndpoint",
type: {
name: "Composite",
className: "PrivateEndpoint"
}
},
privateLinkServiceConnectionState: {
required: true,
serializedName: "privateLinkServiceConnectionState",
type: {
name: "Composite",
className: "PrivateLinkServiceConnectionState"
}
},
groupIds: {
serializedName: "groupIds",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};
export var Resource = {
serializedName: "Resource",
type: {
name: "Composite",
className: "Resource",
modelProperties: {
id: {
readOnly: true,
serializedName: "id",
type: {
name: "String"
}
},
name: {
readOnly: true,
serializedName: "name",
type: {
name: "String"
}
},
type: {
readOnly: true,
serializedName: "type",
type: {
name: "String"
}
}
}
}
};
export var PrivateEndpointConnection = {
serializedName: "PrivateEndpointConnection",
type: {
name: "Composite",
className: "PrivateEndpointConnection",
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "PrivateEndpointConnectionProperties"
}
} })
}
};
export var CognitiveServicesAccountApiProperties = {

@@ -258,2 +402,15 @@ serializedName: "CognitiveServicesAccountApiProperties",

},
capabilities: {
readOnly: true,
serializedName: "capabilities",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "SkuCapability"
}
}
}
},
customSubDomainName: {

@@ -291,2 +448,20 @@ serializedName: "customSubDomainName",

},
privateEndpointConnections: {
serializedName: "privateEndpointConnections",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PrivateEndpointConnection"
}
}
}
},
publicNetworkAccess: {
serializedName: "publicNetworkAccess",
type: {
name: "String"
}
},
apiProperties: {

@@ -1042,2 +1217,129 @@ serializedName: "apiProperties",

};
export var PrivateLinkResourceProperties = {
serializedName: "PrivateLinkResourceProperties",
type: {
name: "Composite",
className: "PrivateLinkResourceProperties",
modelProperties: {
groupId: {
readOnly: true,
serializedName: "groupId",
type: {
name: "String"
}
},
displayName: {
readOnly: true,
serializedName: "displayName",
type: {
name: "String"
}
},
requiredMembers: {
readOnly: true,
serializedName: "requiredMembers",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
requiredZoneNames: {
serializedName: "requiredZoneNames",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};
export var PrivateLinkResource = {
serializedName: "PrivateLinkResource",
type: {
name: "Composite",
className: "PrivateLinkResource",
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "PrivateLinkResourceProperties"
}
} })
}
};
export var PrivateLinkResourceListResult = {
serializedName: "PrivateLinkResourceListResult",
type: {
name: "Composite",
className: "PrivateLinkResourceListResult",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PrivateLinkResource"
}
}
}
}
}
}
};
export var ProxyResource = {
serializedName: "ProxyResource",
type: {
name: "Composite",
className: "ProxyResource",
modelProperties: __assign({}, Resource.type.modelProperties)
}
};
export var TrackedResource = {
serializedName: "TrackedResource",
type: {
name: "Composite",
className: "TrackedResource",
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { tags: {
serializedName: "tags",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
}, location: {
required: true,
serializedName: "location",
type: {
name: "String"
}
} })
}
};
export var AzureEntityResource = {
serializedName: "AzureEntityResource",
type: {
name: "Composite",
className: "AzureEntityResource",
modelProperties: __assign(__assign({}, Resource.type.modelProperties), { etag: {
readOnly: true,
serializedName: "etag",
type: {
name: "String"
}
} })
}
};
export var CognitiveServicesAccountListResult = {

@@ -1044,0 +1346,0 @@ serializedName: "CognitiveServicesAccountListResult",

@@ -8,4 +8,5 @@ import * as msRest from "@azure/ms-rest-js";

export declare const nextPageLink: msRest.OperationURLParameter;
export declare const privateEndpointConnectionName: msRest.OperationURLParameter;
export declare const resourceGroupName: msRest.OperationURLParameter;
export declare const subscriptionId: msRest.OperationURLParameter;
//# sourceMappingURL=parameters.d.ts.map

@@ -40,2 +40,5 @@ /*

serializedName: "api-version",
constraints: {
MinLength: 1
},
type: {

@@ -79,2 +82,12 @@ name: "String"

};
export var privateEndpointConnectionName = {
parameterPath: "privateEndpointConnectionName",
mapper: {
required: true,
serializedName: "privateEndpointConnectionName",
type: {
name: "String"
}
}
};
export var resourceGroupName = {

@@ -85,2 +98,7 @@ parameterPath: "resourceGroupName",

serializedName: "resourceGroupName",
constraints: {
MaxLength: 90,
MinLength: 1,
Pattern: /^[-\w\._\(\)]+$/
},
type: {

@@ -96,2 +114,5 @@ name: "String"

serializedName: "subscriptionId",
constraints: {
MinLength: 1
},
type: {

@@ -98,0 +119,0 @@ name: "String"

@@ -15,3 +15,3 @@ import * as msRest from "@azure/ms-rest-js";

* keys for developer to access intelligent APIs. It's also the resource type for billing.
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -24,3 +24,3 @@ * @param account The parameters to provide for the created account.

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -32,3 +32,3 @@ * @param account The parameters to provide for the created account.

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -42,3 +42,3 @@ * @param account The parameters to provide for the created account.

* Updates a Cognitive Services account
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -51,3 +51,3 @@ * @param account The parameters to provide for the created account.

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -59,3 +59,3 @@ * @param account The parameters to provide for the created account.

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -69,3 +69,3 @@ * @param account The parameters to provide for the created account.

* Deletes a Cognitive Services account from the resource group.
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -77,3 +77,3 @@ * @param [options] The optional parameters

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -84,3 +84,3 @@ * @param callback The callback

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -93,3 +93,3 @@ * @param options The optional parameters

* Returns a Cognitive Services account specified by the parameters.
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -101,3 +101,3 @@ * @param [options] The optional parameters

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -108,3 +108,3 @@ * @param callback The callback

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -117,3 +117,3 @@ * @param options The optional parameters

* Returns all the resources of a particular type belonging to a resource group
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param [options] The optional parameters

@@ -124,3 +124,3 @@ * @returns Promise<Models.AccountsListByResourceGroupResponse>

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param callback The callback

@@ -130,3 +130,3 @@ */

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param options The optional parameters

@@ -153,3 +153,3 @@ * @param callback The callback

* Lists the account keys for the specified Cognitive Services account.
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -161,3 +161,3 @@ * @param [options] The optional parameters

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -168,3 +168,3 @@ * @param callback The callback

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -177,3 +177,3 @@ * @param options The optional parameters

* Regenerates the specified account key for the specified Cognitive Services account.
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -186,3 +186,3 @@ * @param keyName key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2'

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -194,3 +194,3 @@ * @param keyName key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2'

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -204,3 +204,3 @@ * @param keyName key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2'

* List available SKUs for the requested Cognitive Services account
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -212,3 +212,3 @@ * @param [options] The optional parameters

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -219,3 +219,3 @@ * @param callback The callback

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -228,3 +228,3 @@ * @param options The optional parameters

* Get usages for the requested Cognitive Services account
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -236,3 +236,3 @@ * @param [options] The optional parameters

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -243,3 +243,3 @@ * @param callback The callback

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -246,0 +246,0 @@ * @param options The optional parameters

export * from "./accounts";
export * from "./resourceSkus";
export * from "./operations";
export * from "./privateEndpointConnections";
export * from "./privateLinkResources";
//# sourceMappingURL=index.d.ts.map

@@ -13,2 +13,4 @@ /*

export * from "./operations";
export * from "./privateEndpointConnections";
export * from "./privateLinkResources";
//# sourceMappingURL=index.js.map

@@ -5,3 +5,3 @@ {

"description": "CognitiveServicesManagementClient Library with typescript type definitions for node.js and browser.",
"version": "5.1.0",
"version": "5.2.0",
"dependencies": {

@@ -8,0 +8,0 @@ "@azure/ms-rest-azure-js": "^2.0.1",

@@ -24,2 +24,4 @@ /*

operations: operations.Operations;
privateEndpointConnections: operations.PrivateEndpointConnections;
privateLinkResources: operations.PrivateLinkResources;

@@ -29,3 +31,3 @@ /**

* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId Azure Subscription ID.
* @param subscriptionId The ID of the target subscription.
* @param [options] The parameter options

@@ -38,2 +40,4 @@ */

this.operations = new operations.Operations(this);
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
this.privateLinkResources = new operations.PrivateLinkResources(this);
}

@@ -40,0 +44,0 @@

@@ -16,3 +16,3 @@ /*

const packageName = "@azure/arm-cognitiveservices";
const packageVersion = "5.1.0";
const packageVersion = "5.2.0";

@@ -27,3 +27,3 @@ export class CognitiveServicesManagementClientContext extends msRestAzure.AzureServiceClient {

* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId Azure Subscription ID.
* @param subscriptionId The ID of the target subscription.
* @param [options] The parameter options

@@ -42,3 +42,3 @@ */

}
if(!options.userAgent) {
if (!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();

@@ -58,6 +58,6 @@ options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;

if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;

@@ -64,0 +64,0 @@ }

@@ -10,2 +10,3 @@ /*

export {
AzureEntityResource,
BaseResource,

@@ -27,4 +28,14 @@ CognitiveServicesAccount,

NetworkRuleSet,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateEndpointConnectionProperties,
PrivateLinkResource,
PrivateLinkResourceProperties,
PrivateLinkServiceConnectionState,
ProxyResource,
RegenerateKeyParameters,
Resource,
Sku,
SkuCapability,
TrackedResource,
Usage,

@@ -31,0 +42,0 @@ UsagesResult,

@@ -31,2 +31,16 @@ /*

/**
* SkuCapability indicates the capability of a certain feature.
*/
export interface SkuCapability {
/**
* The name of the SkuCapability.
*/
name?: string;
/**
* The value of the SkuCapability.
*/
value?: string;
}
/**
* A rule governing the accessibility from a specific ip address or ip range.

@@ -124,2 +138,85 @@ */

/**
* The Private Endpoint resource.
*/
export interface PrivateEndpoint {
/**
* The ARM identifier for Private Endpoint
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
}
/**
* A collection of information about the state of the connection between service consumer and
* provider.
*/
export interface PrivateLinkServiceConnectionState {
/**
* Indicates whether the connection has been Approved/Rejected/Removed by the owner of the
* service. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
*/
status?: PrivateEndpointServiceConnectionStatus;
/**
* The reason for approval/rejection of the connection.
*/
description?: string;
/**
* A message indicating if changes on the service provider require any updates on the consumer.
*/
actionRequired?: string;
}
/**
* Properties of the PrivateEndpointConnectProperties.
*/
export interface PrivateEndpointConnectionProperties {
/**
* The resource of private end point.
*/
privateEndpoint?: PrivateEndpoint;
/**
* A collection of information about the state of the connection between service consumer and
* provider.
*/
privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;
/**
* The private link resource group ids.
*/
groupIds?: string[];
}
/**
* An interface representing Resource.
*/
export interface Resource extends BaseResource {
/**
* Fully qualified resource Id for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* The name of the resource
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* The type of the resource. Ex- Microsoft.Compute/virtualMachines or
* Microsoft.Storage/storageAccounts.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
}
/**
* The Private Endpoint Connection resource.
*/
export interface PrivateEndpointConnection extends Resource {
/**
* Resource properties.
*/
properties?: PrivateEndpointConnectionProperties;
}
/**
* The api properties for special APIs.

@@ -168,2 +265,8 @@ */

/**
* Gets the capabilities of the cognitive services account. Each item indicates the capability of
* a specific feature. The values are read-only and for reference only.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly capabilities?: SkuCapability[];
/**
* Optional subdomain name used for token-based authentication.

@@ -185,2 +288,11 @@ */

/**
* The private endpoint connection associated with the Cognitive Services account.
*/
privateEndpointConnections?: PrivateEndpointConnection[];
/**
* 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'
*/
publicNetworkAccess?: PublicNetworkAccess;
/**
* The api properties for special APIs.

@@ -646,2 +758,79 @@ */

/**
* Properties of a private link resource.
*/
export interface PrivateLinkResourceProperties {
/**
* The private link resource group id.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly groupId?: string;
/**
* The private link resource display name.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly displayName?: string;
/**
* The private link resource required member names.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly requiredMembers?: string[];
/**
* The private link resource Private link DNS zone name.
*/
requiredZoneNames?: string[];
}
/**
* A private link resource
*/
export interface PrivateLinkResource extends Resource {
/**
* Resource properties.
*/
properties?: PrivateLinkResourceProperties;
}
/**
* A list of private link resources
*/
export interface PrivateLinkResourceListResult {
/**
* Array of private link resources
*/
value?: PrivateLinkResource[];
}
/**
* The resource model definition for a ARM proxy resource. It will have everything other than
* required location and tags
*/
export interface ProxyResource extends Resource {
}
/**
* The resource model definition for a ARM tracked top level resource
*/
export interface TrackedResource extends Resource {
/**
* Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* The geo-location where the resource lives
*/
location: string;
}
/**
* The resource model definition for a Azure Resource Manager resource with an etag.
*/
export interface AzureEntityResource extends Resource {
/**
* Resource Etag.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly etag?: string;
}
/**
* Optional Parameters.

@@ -733,2 +922,18 @@ */

/**
* Defines values for PrivateEndpointServiceConnectionStatus.
* Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
* @readonly
* @enum {string}
*/
export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected';
/**
* Defines values for PublicNetworkAccess.
* Possible values include: 'Enabled', 'Disabled'
* @readonly
* @enum {string}
*/
export type PublicNetworkAccess = 'Enabled' | 'Disabled';
/**
* Defines values for IdentityType.

@@ -1121,1 +1326,61 @@ * Possible values include: 'None', 'SystemAssigned', 'UserAssigned'

};
/**
* Contains response data for the get operation.
*/
export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: PrivateEndpointConnection;
};
};
/**
* Contains response data for the createOrUpdate operation.
*/
export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: PrivateEndpointConnection;
};
};
/**
* Contains response data for the list operation.
*/
export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: PrivateLinkResourceListResult;
};
};

@@ -44,2 +44,24 @@ /*

export const SkuCapability: msRest.CompositeMapper = {
serializedName: "SkuCapability",
type: {
name: "Composite",
className: "SkuCapability",
modelProperties: {
name: {
serializedName: "name",
type: {
name: "String"
}
},
value: {
serializedName: "value",
type: {
name: "String"
}
}
}
}
};
export const IpRule: msRest.CompositeMapper = {

@@ -199,2 +221,132 @@ serializedName: "IpRule",

export const PrivateEndpoint: msRest.CompositeMapper = {
serializedName: "PrivateEndpoint",
type: {
name: "Composite",
className: "PrivateEndpoint",
modelProperties: {
id: {
readOnly: true,
serializedName: "id",
type: {
name: "String"
}
}
}
}
};
export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = {
serializedName: "PrivateLinkServiceConnectionState",
type: {
name: "Composite",
className: "PrivateLinkServiceConnectionState",
modelProperties: {
status: {
serializedName: "status",
type: {
name: "String"
}
},
description: {
serializedName: "description",
type: {
name: "String"
}
},
actionRequired: {
serializedName: "actionRequired",
type: {
name: "String"
}
}
}
}
};
export const PrivateEndpointConnectionProperties: msRest.CompositeMapper = {
serializedName: "PrivateEndpointConnectionProperties",
type: {
name: "Composite",
className: "PrivateEndpointConnectionProperties",
modelProperties: {
privateEndpoint: {
serializedName: "privateEndpoint",
type: {
name: "Composite",
className: "PrivateEndpoint"
}
},
privateLinkServiceConnectionState: {
required: true,
serializedName: "privateLinkServiceConnectionState",
type: {
name: "Composite",
className: "PrivateLinkServiceConnectionState"
}
},
groupIds: {
serializedName: "groupIds",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};
export const Resource: msRest.CompositeMapper = {
serializedName: "Resource",
type: {
name: "Composite",
className: "Resource",
modelProperties: {
id: {
readOnly: true,
serializedName: "id",
type: {
name: "String"
}
},
name: {
readOnly: true,
serializedName: "name",
type: {
name: "String"
}
},
type: {
readOnly: true,
serializedName: "type",
type: {
name: "String"
}
}
}
}
};
export const PrivateEndpointConnection: msRest.CompositeMapper = {
serializedName: "PrivateEndpointConnection",
type: {
name: "Composite",
className: "PrivateEndpointConnection",
modelProperties: {
...Resource.type.modelProperties,
properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "PrivateEndpointConnectionProperties"
}
}
}
}
};
export const CognitiveServicesAccountApiProperties: msRest.CompositeMapper = {

@@ -269,2 +421,15 @@ serializedName: "CognitiveServicesAccountApiProperties",

},
capabilities: {
readOnly: true,
serializedName: "capabilities",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "SkuCapability"
}
}
}
},
customSubDomainName: {

@@ -302,2 +467,20 @@ serializedName: "customSubDomainName",

},
privateEndpointConnections: {
serializedName: "privateEndpointConnections",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PrivateEndpointConnection"
}
}
}
},
publicNetworkAccess: {
serializedName: "publicNetworkAccess",
type: {
name: "String"
}
},
apiProperties: {

@@ -1076,2 +1259,147 @@ serializedName: "apiProperties",

export const PrivateLinkResourceProperties: msRest.CompositeMapper = {
serializedName: "PrivateLinkResourceProperties",
type: {
name: "Composite",
className: "PrivateLinkResourceProperties",
modelProperties: {
groupId: {
readOnly: true,
serializedName: "groupId",
type: {
name: "String"
}
},
displayName: {
readOnly: true,
serializedName: "displayName",
type: {
name: "String"
}
},
requiredMembers: {
readOnly: true,
serializedName: "requiredMembers",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
requiredZoneNames: {
serializedName: "requiredZoneNames",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};
export const PrivateLinkResource: msRest.CompositeMapper = {
serializedName: "PrivateLinkResource",
type: {
name: "Composite",
className: "PrivateLinkResource",
modelProperties: {
...Resource.type.modelProperties,
properties: {
serializedName: "properties",
type: {
name: "Composite",
className: "PrivateLinkResourceProperties"
}
}
}
}
};
export const PrivateLinkResourceListResult: msRest.CompositeMapper = {
serializedName: "PrivateLinkResourceListResult",
type: {
name: "Composite",
className: "PrivateLinkResourceListResult",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PrivateLinkResource"
}
}
}
}
}
}
};
export const ProxyResource: msRest.CompositeMapper = {
serializedName: "ProxyResource",
type: {
name: "Composite",
className: "ProxyResource",
modelProperties: {
...Resource.type.modelProperties
}
}
};
export const TrackedResource: msRest.CompositeMapper = {
serializedName: "TrackedResource",
type: {
name: "Composite",
className: "TrackedResource",
modelProperties: {
...Resource.type.modelProperties,
tags: {
serializedName: "tags",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
},
location: {
required: true,
serializedName: "location",
type: {
name: "String"
}
}
}
}
};
export const AzureEntityResource: msRest.CompositeMapper = {
serializedName: "AzureEntityResource",
type: {
name: "Composite",
className: "AzureEntityResource",
modelProperties: {
...Resource.type.modelProperties,
etag: {
readOnly: true,
serializedName: "etag",
type: {
name: "String"
}
}
}
}
};
export const CognitiveServicesAccountListResult: msRest.CompositeMapper = {

@@ -1078,0 +1406,0 @@ serializedName: "CognitiveServicesAccountListResult",

@@ -43,2 +43,5 @@ /*

serializedName: "api-version",
constraints: {
MinLength: 1
},
type: {

@@ -82,2 +85,12 @@ name: "String"

};
export const privateEndpointConnectionName: msRest.OperationURLParameter = {
parameterPath: "privateEndpointConnectionName",
mapper: {
required: true,
serializedName: "privateEndpointConnectionName",
type: {
name: "String"
}
}
};
export const resourceGroupName: msRest.OperationURLParameter = {

@@ -88,2 +101,7 @@ parameterPath: "resourceGroupName",

serializedName: "resourceGroupName",
constraints: {
MaxLength: 90,
MinLength: 1,
Pattern: /^[-\w\._\(\)]+$/
},
type: {

@@ -99,2 +117,5 @@ name: "String"

serializedName: "subscriptionId",
constraints: {
MinLength: 1
},
type: {

@@ -101,0 +122,0 @@ name: "String"

@@ -32,3 +32,3 @@ /*

* keys for developer to access intelligent APIs. It's also the resource type for billing.
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -41,3 +41,3 @@ * @param account The parameters to provide for the created account.

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -49,3 +49,3 @@ * @param account The parameters to provide for the created account.

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -71,3 +71,3 @@ * @param account The parameters to provide for the created account.

* Updates a Cognitive Services account
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -80,3 +80,3 @@ * @param account The parameters to provide for the created account.

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -88,3 +88,3 @@ * @param account The parameters to provide for the created account.

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -110,3 +110,3 @@ * @param account The parameters to provide for the created account.

* Deletes a Cognitive Services account from the resource group.
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -118,3 +118,3 @@ * @param [options] The optional parameters

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -125,3 +125,3 @@ * @param callback The callback

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -145,3 +145,3 @@ * @param options The optional parameters

* Returns a Cognitive Services account specified by the parameters.
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -153,3 +153,3 @@ * @param [options] The optional parameters

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -160,3 +160,3 @@ * @param callback The callback

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -180,3 +180,3 @@ * @param options The optional parameters

* Returns all the resources of a particular type belonging to a resource group
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param [options] The optional parameters

@@ -187,3 +187,3 @@ * @returns Promise<Models.AccountsListByResourceGroupResponse>

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param callback The callback

@@ -193,3 +193,3 @@ */

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param options The optional parameters

@@ -235,3 +235,3 @@ * @param callback The callback

* Lists the account keys for the specified Cognitive Services account.
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -243,3 +243,3 @@ * @param [options] The optional parameters

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -250,3 +250,3 @@ * @param callback The callback

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -270,3 +270,3 @@ * @param options The optional parameters

* Regenerates the specified account key for the specified Cognitive Services account.
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -279,3 +279,3 @@ * @param keyName key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2'

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -287,3 +287,3 @@ * @param keyName key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2'

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -309,3 +309,3 @@ * @param keyName key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2'

* List available SKUs for the requested Cognitive Services account
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -317,3 +317,3 @@ * @param [options] The optional parameters

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -324,3 +324,3 @@ * @param callback The callback

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -344,3 +344,3 @@ * @param options The optional parameters

* Get usages for the requested Cognitive Services account
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -352,3 +352,3 @@ * @param [options] The optional parameters

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -359,3 +359,3 @@ * @param callback The callback

/**
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.

@@ -362,0 +362,0 @@ * @param options The optional parameters

@@ -14,1 +14,3 @@ /*

export * from "./operations";
export * from "./privateEndpointConnections";
export * from "./privateLinkResources";

Sorry, the diff of this file is too big to display

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc