diff --git a/packages/@azure/arm-cognitiveservices/.npmignore b/packages/@azure/arm-cognitiveservices/.npmignore new file mode 100644 index 000000000000..3b46bc6202d8 --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-cognitiveservices/LICENSE.txt b/packages/@azure/arm-cognitiveservices/LICENSE.txt new file mode 100644 index 000000000000..a70e8cf66038 --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@azure/arm-cognitiveservices/README.md b/packages/@azure/arm-cognitiveservices/README.md new file mode 100644 index 000000000000..aba48be65156 --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/README.md @@ -0,0 +1,81 @@ +# Azure CognitiveServicesManagementClient SDK for JavaScript +This package contains an isomorphic SDK for CognitiveServicesManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-cognitiveservices +``` + + +## How to use + +### nodejs - Authentication, client creation and getProperties accounts as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { CognitiveServicesManagementClient, CognitiveServicesManagementModels, CognitiveServicesManagementMappers } from "@azure/arm-cognitiveservices"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new CognitiveServicesManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const accountName = "testaccountName"; + client.accounts.getProperties(resourceGroupName, accountName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and getProperties accounts as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-cognitiveservices sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-cognitiveservices/dist/arm-cognitiveservices.js b/packages/@azure/arm-cognitiveservices/dist/arm-cognitiveservices.js new file mode 100644 index 000000000000..ce06d2af5666 --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/dist/arm-cognitiveservices.js @@ -0,0 +1,2025 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ms-rest-azure-js'), require('ms-rest-js')) : + typeof define === 'function' && define.amd ? define(['exports', 'ms-rest-azure-js', 'ms-rest-js'], factory) : + (factory((global.Azure = global.Azure || {}, global.Azure.ArmCognitiveservices = {}),global.msRestAzure,global.msRest)); +}(this, (function (exports,msRestAzure,msRest) { 'use strict'; + + /*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */ + /* global Reflect, Promise */ + + var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + + function __extends(d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + } + + var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); + }; + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + /** + * Defines values for SkuName. + * Possible values include: 'F0', 'P0', 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', + * 'S4', 'S5', 'S6' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SkuName = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ + var SkuName; + (function (SkuName) { + SkuName["F0"] = "F0"; + SkuName["P0"] = "P0"; + SkuName["P1"] = "P1"; + SkuName["P2"] = "P2"; + SkuName["S0"] = "S0"; + SkuName["S1"] = "S1"; + SkuName["S2"] = "S2"; + SkuName["S3"] = "S3"; + SkuName["S4"] = "S4"; + SkuName["S5"] = "S5"; + SkuName["S6"] = "S6"; + })(SkuName || (SkuName = {})); + /** + * Defines values for SkuTier. + * Possible values include: 'Free', 'Standard', 'Premium' + * @readonly + * @enum {string} + */ + var SkuTier; + (function (SkuTier) { + SkuTier["Free"] = "Free"; + SkuTier["Standard"] = "Standard"; + SkuTier["Premium"] = "Premium"; + })(SkuTier || (SkuTier = {})); + /** + * Defines values for Kind. + * Possible values include: 'Bing.Autosuggest.v7', 'Bing.CustomSearch', + * 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision', + * 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction', + * 'CustomVision.Training', 'Emotion', 'Face', 'LUIS', 'QnAMaker', + * 'SpeakerRecognition', 'SpeechTranslation', 'TextAnalytics', + * 'TextTranslation', 'WebLM' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: Kind = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ + var Kind; + (function (Kind) { + Kind["BingAutosuggestv7"] = "Bing.Autosuggest.v7"; + Kind["BingCustomSearch"] = "Bing.CustomSearch"; + Kind["BingSearchv7"] = "Bing.Search.v7"; + Kind["BingSpeech"] = "Bing.Speech"; + Kind["BingSpellCheckv7"] = "Bing.SpellCheck.v7"; + Kind["ComputerVision"] = "ComputerVision"; + Kind["ContentModerator"] = "ContentModerator"; + Kind["CustomSpeech"] = "CustomSpeech"; + Kind["CustomVisionPrediction"] = "CustomVision.Prediction"; + Kind["CustomVisionTraining"] = "CustomVision.Training"; + Kind["Emotion"] = "Emotion"; + Kind["Face"] = "Face"; + Kind["LUIS"] = "LUIS"; + Kind["QnAMaker"] = "QnAMaker"; + Kind["SpeakerRecognition"] = "SpeakerRecognition"; + Kind["SpeechTranslation"] = "SpeechTranslation"; + Kind["TextAnalytics"] = "TextAnalytics"; + Kind["TextTranslation"] = "TextTranslation"; + Kind["WebLM"] = "WebLM"; + })(Kind || (Kind = {})); + /** + * Defines values for ProvisioningState. + * Possible values include: 'Creating', 'ResolvingDNS', 'Moving', 'Deleting', + * 'Succeeded', 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ProvisioningState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ + var ProvisioningState; + (function (ProvisioningState) { + ProvisioningState["Creating"] = "Creating"; + ProvisioningState["ResolvingDNS"] = "ResolvingDNS"; + ProvisioningState["Moving"] = "Moving"; + ProvisioningState["Deleting"] = "Deleting"; + ProvisioningState["Succeeded"] = "Succeeded"; + ProvisioningState["Failed"] = "Failed"; + })(ProvisioningState || (ProvisioningState = {})); + /** + * Defines values for KeyName. + * Possible values include: 'Key1', 'Key2' + * @readonly + * @enum {string} + */ + var KeyName; + (function (KeyName) { + KeyName["Key1"] = "Key1"; + KeyName["Key2"] = "Key2"; + })(KeyName || (KeyName = {})); + /** + * Defines values for UnitType. + * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: UnitType = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ + var UnitType; + (function (UnitType) { + UnitType["Count"] = "Count"; + UnitType["Bytes"] = "Bytes"; + UnitType["Seconds"] = "Seconds"; + UnitType["Percent"] = "Percent"; + UnitType["CountPerSecond"] = "CountPerSecond"; + UnitType["BytesPerSecond"] = "BytesPerSecond"; + UnitType["Milliseconds"] = "Milliseconds"; + })(UnitType || (UnitType = {})); + /** + * Defines values for QuotaUsageStatus. + * Possible values include: 'Included', 'Blocked', 'InOverage', 'Unknown' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: QuotaUsageStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ + var QuotaUsageStatus; + (function (QuotaUsageStatus) { + QuotaUsageStatus["Included"] = "Included"; + QuotaUsageStatus["Blocked"] = "Blocked"; + QuotaUsageStatus["InOverage"] = "InOverage"; + QuotaUsageStatus["Unknown"] = "Unknown"; + })(QuotaUsageStatus || (QuotaUsageStatus = {})); + /** + * Defines values for ResourceSkuRestrictionsType. + * Possible values include: 'Location', 'Zone' + * @readonly + * @enum {string} + */ + var ResourceSkuRestrictionsType; + (function (ResourceSkuRestrictionsType) { + ResourceSkuRestrictionsType["Location"] = "Location"; + ResourceSkuRestrictionsType["Zone"] = "Zone"; + })(ResourceSkuRestrictionsType || (ResourceSkuRestrictionsType = {})); + /** + * Defines values for ResourceSkuRestrictionsReasonCode. + * Possible values include: 'QuotaId', 'NotAvailableForSubscription' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResourceSkuRestrictionsReasonCode = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ + var ResourceSkuRestrictionsReasonCode; + (function (ResourceSkuRestrictionsReasonCode) { + ResourceSkuRestrictionsReasonCode["QuotaId"] = "QuotaId"; + ResourceSkuRestrictionsReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription"; + })(ResourceSkuRestrictionsReasonCode || (ResourceSkuRestrictionsReasonCode = {})); + + var index = /*#__PURE__*/Object.freeze({ + get SkuName () { return SkuName; }, + get SkuTier () { return SkuTier; }, + get Kind () { return Kind; }, + get ProvisioningState () { return ProvisioningState; }, + get KeyName () { return KeyName; }, + get UnitType () { return UnitType; }, + get QuotaUsageStatus () { return QuotaUsageStatus; }, + get ResourceSkuRestrictionsType () { return ResourceSkuRestrictionsType; }, + get ResourceSkuRestrictionsReasonCode () { return ResourceSkuRestrictionsReasonCode; } + }); + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + var CloudError = msRestAzure.CloudErrorMapper; + var BaseResource = msRestAzure.BaseResourceMapper; + var Sku = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + readOnly: true, + serializedName: "tier", + type: { + name: "Enum", + allowedValues: [ + "Free", + "Standard", + "Premium" + ] + } + } + } + } + }; + var CognitiveServicesAccountCreateParameters = { + serializedName: "CognitiveServicesAccountCreateParameters", + type: { + name: "Composite", + className: "CognitiveServicesAccountCreateParameters", + modelProperties: { + sku: { + required: true, + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Object" + } + } + } + } + }; + var CognitiveServicesAccountUpdateParameters = { + serializedName: "CognitiveServicesAccountUpdateParameters", + type: { + name: "Composite", + className: "CognitiveServicesAccountUpdateParameters", + modelProperties: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } + }; + var CognitiveServicesAccountProperties = { + serializedName: "CognitiveServicesAccountProperties", + type: { + name: "Composite", + className: "CognitiveServicesAccountProperties", + modelProperties: { + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + type: { + name: "String" + } + }, + internalId: { + serializedName: "internalId", + type: { + name: "String" + } + } + } + } + }; + var CognitiveServicesAccount = { + serializedName: "CognitiveServicesAccount", + type: { + name: "Composite", + className: "CognitiveServicesAccount", + modelProperties: { + etag: { + serializedName: "etag", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + endpoint: { + serializedName: "properties.endpoint", + type: { + name: "String" + } + }, + internalId: { + serializedName: "properties.internalId", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } + }; + var CognitiveServicesAccountKeys = { + serializedName: "CognitiveServicesAccountKeys", + type: { + name: "Composite", + className: "CognitiveServicesAccountKeys", + modelProperties: { + key1: { + serializedName: "key1", + type: { + name: "String" + } + }, + key2: { + serializedName: "key2", + type: { + name: "String" + } + } + } + } + }; + var RegenerateKeyParameters = { + serializedName: "RegenerateKeyParameters", + type: { + name: "Composite", + className: "RegenerateKeyParameters", + modelProperties: { + keyName: { + required: true, + serializedName: "keyName", + type: { + name: "Enum", + allowedValues: [ + "Key1", + "Key2" + ] + } + } + } + } + }; + var CognitiveServicesResourceAndSku = { + serializedName: "CognitiveServicesResourceAndSku", + type: { + name: "Composite", + className: "CognitiveServicesResourceAndSku", + modelProperties: { + resourceType: { + serializedName: "resourceType", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } + }; + var CognitiveServicesAccountEnumerateSkusResult = { + serializedName: "CognitiveServicesAccountEnumerateSkusResult", + type: { + name: "Composite", + className: "CognitiveServicesAccountEnumerateSkusResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CognitiveServicesResourceAndSku" + } + } + } + } + } + } + }; + var MetricName = { + serializedName: "MetricName", + type: { + name: "Composite", + className: "MetricName", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "String" + } + }, + localizedValue: { + readOnly: true, + serializedName: "localizedValue", + type: { + name: "String" + } + } + } + } + }; + var Usage = { + serializedName: "Usage", + type: { + name: "Composite", + className: "Usage", + modelProperties: { + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "Composite", + className: "MetricName" + } + }, + quotaPeriod: { + readOnly: true, + serializedName: "quotaPeriod", + type: { + name: "String" + } + }, + limit: { + readOnly: true, + serializedName: "limit", + type: { + name: "Number" + } + }, + currentValue: { + readOnly: true, + serializedName: "currentValue", + type: { + name: "Number" + } + }, + nextResetTime: { + readOnly: true, + serializedName: "nextResetTime", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } + }; + var UsagesResult = { + serializedName: "UsagesResult", + type: { + name: "Composite", + className: "UsagesResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } + } + } + } + } + }; + var ErrorBody = { + serializedName: "ErrorBody", + type: { + name: "Composite", + className: "ErrorBody", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } + }; + var ErrorModel = { + serializedName: "Error", + type: { + name: "Composite", + className: "ErrorModel", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorBody" + } + } + } + } + }; + var OperationDisplayInfo = { + 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" + } + } + } + } + }; + var OperationEntity = { + 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" + } + } + } + } + }; + var CheckSkuAvailabilityParameter = { + serializedName: "CheckSkuAvailabilityParameter", + type: { + name: "Composite", + className: "CheckSkuAvailabilityParameter", + modelProperties: { + skus: { + required: true, + serializedName: "skus", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } + }; + var 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" + } + } + } + } + }; + var CheckSkuAvailabilityResultList = { + serializedName: "CheckSkuAvailabilityResultList", + type: { + name: "Composite", + className: "CheckSkuAvailabilityResultList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CheckSkuAvailabilityResult" + } + } + } + } + } + } + }; + var ResourceSkuRestrictionInfo = { + serializedName: "ResourceSkuRestrictionInfo", + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo", + modelProperties: { + locations: { + readOnly: true, + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zones: { + readOnly: true, + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } + }; + var ResourceSkuRestrictions = { + serializedName: "ResourceSkuRestrictions", + type: { + name: "Composite", + className: "ResourceSkuRestrictions", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "Location", + "Zone" + ] + } + }, + values: { + readOnly: true, + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + restrictionInfo: { + readOnly: true, + serializedName: "restrictionInfo", + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo" + } + }, + reasonCode: { + readOnly: true, + serializedName: "reasonCode", + type: { + name: "String" + } + } + } + } + }; + var ResourceSku = { + serializedName: "ResourceSku", + type: { + name: "Composite", + className: "ResourceSku", + modelProperties: { + resourceType: { + readOnly: true, + serializedName: "resourceType", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + readOnly: true, + serializedName: "tier", + type: { + name: "String" + } + }, + kind: { + readOnly: true, + serializedName: "kind", + type: { + name: "String" + } + }, + locations: { + readOnly: true, + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + restrictions: { + readOnly: true, + serializedName: "restrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuRestrictions" + } + } + } + } + } + } + }; + var CognitiveServicesAccountListResult = { + serializedName: "CognitiveServicesAccountListResult", + type: { + name: "Composite", + className: "CognitiveServicesAccountListResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CognitiveServicesAccount" + } + } + } + } + } + } + }; + var ResourceSkusResult = { + serializedName: "ResourceSkusResult", + type: { + name: "Composite", + className: "ResourceSkusResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSku" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } + }; + var OperationEntityListResult = { + 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" + } + } + } + } + } + } + }; + + var mappers = /*#__PURE__*/Object.freeze({ + CloudError: CloudError, + BaseResource: BaseResource, + Sku: Sku, + CognitiveServicesAccountCreateParameters: CognitiveServicesAccountCreateParameters, + CognitiveServicesAccountUpdateParameters: CognitiveServicesAccountUpdateParameters, + CognitiveServicesAccountProperties: CognitiveServicesAccountProperties, + CognitiveServicesAccount: CognitiveServicesAccount, + CognitiveServicesAccountKeys: CognitiveServicesAccountKeys, + RegenerateKeyParameters: RegenerateKeyParameters, + CognitiveServicesResourceAndSku: CognitiveServicesResourceAndSku, + CognitiveServicesAccountEnumerateSkusResult: CognitiveServicesAccountEnumerateSkusResult, + MetricName: MetricName, + Usage: Usage, + UsagesResult: UsagesResult, + ErrorBody: ErrorBody, + ErrorModel: ErrorModel, + OperationDisplayInfo: OperationDisplayInfo, + OperationEntity: OperationEntity, + CheckSkuAvailabilityParameter: CheckSkuAvailabilityParameter, + CheckSkuAvailabilityResult: CheckSkuAvailabilityResult, + CheckSkuAvailabilityResultList: CheckSkuAvailabilityResultList, + ResourceSkuRestrictionInfo: ResourceSkuRestrictionInfo, + ResourceSkuRestrictions: ResourceSkuRestrictions, + ResourceSku: ResourceSku, + CognitiveServicesAccountListResult: CognitiveServicesAccountListResult, + ResourceSkusResult: ResourceSkusResult, + OperationEntityListResult: OperationEntityListResult + }); + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + + var Mappers = /*#__PURE__*/Object.freeze({ + CognitiveServicesAccountCreateParameters: CognitiveServicesAccountCreateParameters, + Sku: Sku, + CognitiveServicesAccount: CognitiveServicesAccount, + BaseResource: BaseResource, + ErrorModel: ErrorModel, + ErrorBody: ErrorBody, + CognitiveServicesAccountUpdateParameters: CognitiveServicesAccountUpdateParameters, + CognitiveServicesAccountListResult: CognitiveServicesAccountListResult, + CognitiveServicesAccountKeys: CognitiveServicesAccountKeys, + RegenerateKeyParameters: RegenerateKeyParameters, + CognitiveServicesAccountEnumerateSkusResult: CognitiveServicesAccountEnumerateSkusResult, + CognitiveServicesResourceAndSku: CognitiveServicesResourceAndSku, + UsagesResult: UsagesResult, + Usage: Usage, + MetricName: MetricName + }); + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + var acceptLanguage = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } + }; + var accountName = { + parameterPath: "accountName", + mapper: { + required: true, + serializedName: "accountName", + constraints: { + MaxLength: 64, + MinLength: 2, + Pattern: /^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/ + }, + type: { + name: "String" + } + } + }; + var apiVersion = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } + }; + var filter = { + parameterPath: [ + "options", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } + }; + var location = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } + }; + var nextPageLink = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true + }; + var resourceGroupName = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + type: { + name: "String" + } + } + }; + var subscriptionId = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } + }; + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + /** Class representing a Accounts. */ + var Accounts = /** @class */ (function () { + /** + * Create a Accounts. + * @param {CognitiveServicesManagementClientContext} client Reference to the service client. + */ + function Accounts(client) { + this.client = client; + } + Accounts.prototype.create = function (resourceGroupName$$1, accountName$$1, parameters, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + accountName: accountName$$1, + parameters: parameters, + options: options + }, createOperationSpec, callback); + }; + Accounts.prototype.update = function (resourceGroupName$$1, accountName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + accountName: accountName$$1, + options: options + }, updateOperationSpec, callback); + }; + Accounts.prototype.deleteMethod = function (resourceGroupName$$1, accountName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + accountName: accountName$$1, + options: options + }, deleteMethodOperationSpec, callback); + }; + Accounts.prototype.getProperties = function (resourceGroupName$$1, accountName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + accountName: accountName$$1, + options: options + }, getPropertiesOperationSpec, callback); + }; + Accounts.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + options: options + }, listByResourceGroupOperationSpec, callback); + }; + Accounts.prototype.list = function (options, callback) { + return this.client.sendOperationRequest({ + options: options + }, listOperationSpec, callback); + }; + Accounts.prototype.listKeys = function (resourceGroupName$$1, accountName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + accountName: accountName$$1, + options: options + }, listKeysOperationSpec, callback); + }; + Accounts.prototype.regenerateKey = function (resourceGroupName$$1, accountName$$1, keyName, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + accountName: accountName$$1, + keyName: keyName, + options: options + }, regenerateKeyOperationSpec, callback); + }; + Accounts.prototype.listSkus = function (resourceGroupName$$1, accountName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + accountName: accountName$$1, + options: options + }, listSkusOperationSpec, callback); + }; + Accounts.prototype.getUsages = function (resourceGroupName$$1, accountName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + accountName: accountName$$1, + options: options + }, getUsagesOperationSpec, callback); + }; + Accounts.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) { + return this.client.sendOperationRequest({ + nextPageLink: nextPageLink$$1, + options: options + }, listByResourceGroupNextOperationSpec, callback); + }; + Accounts.prototype.listNext = function (nextPageLink$$1, options, callback) { + return this.client.sendOperationRequest({ + nextPageLink: nextPageLink$$1, + options: options + }, listNextOperationSpec, callback); + }; + return Accounts; + }()); + // Operation Specifications + var serializer = new msRest.Serializer(Mappers); + var createOperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", + urlParameters: [ + resourceGroupName, + accountName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: __assign({}, CognitiveServicesAccountCreateParameters, { required: true }) + }, + responses: { + 200: { + bodyMapper: CognitiveServicesAccount + }, + 201: { + bodyMapper: CognitiveServicesAccount + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var updateOperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", + urlParameters: [ + resourceGroupName, + accountName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: { + sku: [ + "options", + "sku" + ], + tags: [ + "options", + "tags" + ] + }, + mapper: __assign({}, CognitiveServicesAccountUpdateParameters, { required: true }) + }, + responses: { + 200: { + bodyMapper: CognitiveServicesAccount + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var deleteMethodOperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", + urlParameters: [ + resourceGroupName, + accountName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var getPropertiesOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", + urlParameters: [ + resourceGroupName, + accountName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: CognitiveServicesAccount + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var listByResourceGroupOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts", + urlParameters: [ + resourceGroupName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: CognitiveServicesAccountListResult + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var listOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts", + urlParameters: [ + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: CognitiveServicesAccountListResult + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var listKeysOperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys", + urlParameters: [ + resourceGroupName, + accountName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: CognitiveServicesAccountKeys + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var regenerateKeyOperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey", + urlParameters: [ + resourceGroupName, + accountName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: { + keyName: "keyName" + }, + mapper: __assign({}, RegenerateKeyParameters, { required: true }) + }, + responses: { + 200: { + bodyMapper: CognitiveServicesAccountKeys + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var listSkusOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus", + urlParameters: [ + resourceGroupName, + accountName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: CognitiveServicesAccountEnumerateSkusResult + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var getUsagesOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages", + urlParameters: [ + resourceGroupName, + accountName, + subscriptionId + ], + queryParameters: [ + apiVersion, + filter + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: UsagesResult + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var listByResourceGroupNextOperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + nextPageLink + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: CognitiveServicesAccountListResult + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var listNextOperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + nextPageLink + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: CognitiveServicesAccountListResult + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + + var Mappers$1 = /*#__PURE__*/Object.freeze({ + ResourceSkusResult: ResourceSkusResult, + ResourceSku: ResourceSku, + ResourceSkuRestrictions: ResourceSkuRestrictions, + ResourceSkuRestrictionInfo: ResourceSkuRestrictionInfo, + CloudError: CloudError + }); + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + /** Class representing a ResourceSkus. */ + var ResourceSkus = /** @class */ (function () { + /** + * Create a ResourceSkus. + * @param {CognitiveServicesManagementClientContext} client Reference to the service client. + */ + function ResourceSkus(client) { + this.client = client; + } + ResourceSkus.prototype.list = function (options, callback) { + return this.client.sendOperationRequest({ + options: options + }, listOperationSpec$1, callback); + }; + ResourceSkus.prototype.listNext = function (nextPageLink$$1, options, callback) { + return this.client.sendOperationRequest({ + nextPageLink: nextPageLink$$1, + options: options + }, listNextOperationSpec$1, callback); + }; + return ResourceSkus; + }()); + // Operation Specifications + var serializer$1 = new msRest.Serializer(Mappers$1); + var listOperationSpec$1 = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus", + urlParameters: [ + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: ResourceSkusResult + }, + default: { + bodyMapper: CloudError + } + }, + serializer: serializer$1 + }; + var listNextOperationSpec$1 = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + nextPageLink + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: ResourceSkusResult + }, + default: { + bodyMapper: CloudError + } + }, + serializer: serializer$1 + }; + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + + var Mappers$2 = /*#__PURE__*/Object.freeze({ + OperationEntityListResult: OperationEntityListResult, + OperationEntity: OperationEntity, + OperationDisplayInfo: OperationDisplayInfo, + CloudError: CloudError + }); + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + /** Class representing a Operations. */ + var Operations = /** @class */ (function () { + /** + * Create a Operations. + * @param {CognitiveServicesManagementClientContext} client Reference to the service client. + */ + function Operations(client) { + this.client = client; + } + Operations.prototype.list = function (options, callback) { + return this.client.sendOperationRequest({ + options: options + }, listOperationSpec$2, callback); + }; + Operations.prototype.listNext = function (nextPageLink$$1, options, callback) { + return this.client.sendOperationRequest({ + nextPageLink: nextPageLink$$1, + options: options + }, listNextOperationSpec$2, callback); + }; + return Operations; + }()); + // Operation Specifications + var serializer$2 = new msRest.Serializer(Mappers$2); + var listOperationSpec$2 = { + httpMethod: "GET", + path: "providers/Microsoft.CognitiveServices/operations", + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: OperationEntityListResult + }, + default: { + bodyMapper: CloudError + } + }, + serializer: serializer$2 + }; + var listNextOperationSpec$2 = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + nextPageLink + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: OperationEntityListResult + }, + default: { + bodyMapper: CloudError + } + }, + serializer: serializer$2 + }; + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + + var Mappers$3 = /*#__PURE__*/Object.freeze({ + CheckSkuAvailabilityParameter: CheckSkuAvailabilityParameter, + CheckSkuAvailabilityResultList: CheckSkuAvailabilityResultList, + CheckSkuAvailabilityResult: CheckSkuAvailabilityResult, + CloudError: CloudError + }); + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + /** Class representing a CheckSkuAvailability. */ + var CheckSkuAvailability = /** @class */ (function () { + /** + * Create a CheckSkuAvailability. + * @param {CognitiveServicesManagementClientContext} client Reference to the service client. + */ + function CheckSkuAvailability(client) { + this.client = client; + } + CheckSkuAvailability.prototype.list = function (location$$1, skus, kind, type, options, callback) { + return this.client.sendOperationRequest({ + location: location$$1, + skus: skus, + kind: kind, + type: type, + options: options + }, listOperationSpec$3, callback); + }; + return CheckSkuAvailability; + }()); + // Operation Specifications + var serializer$3 = new msRest.Serializer(Mappers$3); + var listOperationSpec$3 = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability", + urlParameters: [ + subscriptionId, + location + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: { + skus: "skus", + kind: "kind", + type: "type" + }, + mapper: __assign({}, CheckSkuAvailabilityParameter, { required: true }) + }, + responses: { + 200: { + bodyMapper: CheckSkuAvailabilityResultList + }, + default: { + bodyMapper: CloudError + } + }, + serializer: serializer$3 + }; + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + var packageName = "@azure/arm-cognitiveservices"; + var packageVersion = "1.0.0"; + var CognitiveServicesManagementClientContext = /** @class */ (function (_super) { + __extends(CognitiveServicesManagementClientContext, _super); + /** + * 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 [options] The parameter options + */ + function CognitiveServicesManagementClientContext(credentials, subscriptionId, options) { + var _this = this; + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + if (!options) { + options = {}; + } + _this = _super.call(this, credentials, options) || this; + _this.apiVersion = '2017-04-18'; + _this.acceptLanguage = 'en-US'; + _this.longRunningOperationRetryTimeout = 30; + _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com"; + _this.requestContentType = "application/json; charset=utf-8"; + _this.credentials = credentials; + _this.subscriptionId = subscriptionId; + _this.addUserAgentInfo(packageName + "/" + packageVersion); + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + _this.acceptLanguage = options.acceptLanguage; + } + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + return _this; + } + return CognitiveServicesManagementClientContext; + }(msRestAzure.AzureServiceClient)); + + /* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + var CognitiveServicesManagementClient = /** @class */ (function (_super) { + __extends(CognitiveServicesManagementClient, _super); + /** + * 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 [options] The parameter options + */ + function CognitiveServicesManagementClient(credentials, subscriptionId, options) { + var _this = _super.call(this, credentials, subscriptionId, options) || this; + _this.accounts = new Accounts(_this); + _this.resourceSkus = new ResourceSkus(_this); + _this.operations = new Operations(_this); + _this.checkSkuAvailability = new CheckSkuAvailability(_this); + return _this; + } + return CognitiveServicesManagementClient; + }(CognitiveServicesManagementClientContext)); + + exports.CognitiveServicesManagementClient = CognitiveServicesManagementClient; + exports.CognitiveServicesManagementClientContext = CognitiveServicesManagementClientContext; + exports.CognitiveServicesManagementModels = index; + exports.CognitiveServicesManagementMappers = mappers; + exports.Accounts = Accounts; + exports.ResourceSkus = ResourceSkus; + exports.Operations = Operations; + exports.CheckSkuAvailability = CheckSkuAvailability; + + Object.defineProperty(exports, '__esModule', { value: true }); + +}))); +//# sourceMappingURL=arm-cognitiveservices.js.map diff --git a/packages/@azure/arm-cognitiveservices/dist/arm-cognitiveservices.js.map b/packages/@azure/arm-cognitiveservices/dist/arm-cognitiveservices.js.map new file mode 100644 index 000000000000..ea90412f306d --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/dist/arm-cognitiveservices.js.map @@ -0,0 +1 @@ +{"version":3,"file":"arm-cognitiveservices.js","sources":["../node_modules/tslib/tslib.es6.js","../esm/models/index.js","../esm/models/mappers.js","../esm/models/accountsMappers.js","../esm/models/parameters.js","../esm/operations/accounts.js","../esm/models/resourceSkusMappers.js","../esm/operations/resourceSkus.js","../esm/models/operationsMappers.js","../esm/operations/operations.js","../esm/models/checkSkuAvailabilityMappers.js","../esm/operations/checkSkuAvailability.js","../esm/operations/index.js","../esm/cognitiveServicesManagementClientContext.js","../esm/cognitiveServicesManagementClient.js"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\n/**\r\n * Defines values for SkuName.\r\n * Possible values include: 'F0', 'P0', 'P1', 'P2', 'S0', 'S1', 'S2', 'S3',\r\n * 'S4', 'S5', 'S6'\r\n * There could be more values for this enum apart from the ones defined here.If\r\n * you want to set a value that is not from the known values then you can do\r\n * the following:\r\n * let param: SkuName = \"someUnknownValueThatWillStillBeValid\";\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var SkuName;\r\n(function (SkuName) {\r\n SkuName[\"F0\"] = \"F0\";\r\n SkuName[\"P0\"] = \"P0\";\r\n SkuName[\"P1\"] = \"P1\";\r\n SkuName[\"P2\"] = \"P2\";\r\n SkuName[\"S0\"] = \"S0\";\r\n SkuName[\"S1\"] = \"S1\";\r\n SkuName[\"S2\"] = \"S2\";\r\n SkuName[\"S3\"] = \"S3\";\r\n SkuName[\"S4\"] = \"S4\";\r\n SkuName[\"S5\"] = \"S5\";\r\n SkuName[\"S6\"] = \"S6\";\r\n})(SkuName || (SkuName = {}));\r\n/**\r\n * Defines values for SkuTier.\r\n * Possible values include: 'Free', 'Standard', 'Premium'\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var SkuTier;\r\n(function (SkuTier) {\r\n SkuTier[\"Free\"] = \"Free\";\r\n SkuTier[\"Standard\"] = \"Standard\";\r\n SkuTier[\"Premium\"] = \"Premium\";\r\n})(SkuTier || (SkuTier = {}));\r\n/**\r\n * Defines values for Kind.\r\n * Possible values include: 'Bing.Autosuggest.v7', 'Bing.CustomSearch',\r\n * 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision',\r\n * 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction',\r\n * 'CustomVision.Training', 'Emotion', 'Face', 'LUIS', 'QnAMaker',\r\n * 'SpeakerRecognition', 'SpeechTranslation', 'TextAnalytics',\r\n * 'TextTranslation', 'WebLM'\r\n * There could be more values for this enum apart from the ones defined here.If\r\n * you want to set a value that is not from the known values then you can do\r\n * the following:\r\n * let param: Kind = \"someUnknownValueThatWillStillBeValid\";\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var Kind;\r\n(function (Kind) {\r\n Kind[\"BingAutosuggestv7\"] = \"Bing.Autosuggest.v7\";\r\n Kind[\"BingCustomSearch\"] = \"Bing.CustomSearch\";\r\n Kind[\"BingSearchv7\"] = \"Bing.Search.v7\";\r\n Kind[\"BingSpeech\"] = \"Bing.Speech\";\r\n Kind[\"BingSpellCheckv7\"] = \"Bing.SpellCheck.v7\";\r\n Kind[\"ComputerVision\"] = \"ComputerVision\";\r\n Kind[\"ContentModerator\"] = \"ContentModerator\";\r\n Kind[\"CustomSpeech\"] = \"CustomSpeech\";\r\n Kind[\"CustomVisionPrediction\"] = \"CustomVision.Prediction\";\r\n Kind[\"CustomVisionTraining\"] = \"CustomVision.Training\";\r\n Kind[\"Emotion\"] = \"Emotion\";\r\n Kind[\"Face\"] = \"Face\";\r\n Kind[\"LUIS\"] = \"LUIS\";\r\n Kind[\"QnAMaker\"] = \"QnAMaker\";\r\n Kind[\"SpeakerRecognition\"] = \"SpeakerRecognition\";\r\n Kind[\"SpeechTranslation\"] = \"SpeechTranslation\";\r\n Kind[\"TextAnalytics\"] = \"TextAnalytics\";\r\n Kind[\"TextTranslation\"] = \"TextTranslation\";\r\n Kind[\"WebLM\"] = \"WebLM\";\r\n})(Kind || (Kind = {}));\r\n/**\r\n * Defines values for ProvisioningState.\r\n * Possible values include: 'Creating', 'ResolvingDNS', 'Moving', 'Deleting',\r\n * 'Succeeded', 'Failed'\r\n * There could be more values for this enum apart from the ones defined here.If\r\n * you want to set a value that is not from the known values then you can do\r\n * the following:\r\n * let param: ProvisioningState =\r\n * \"someUnknownValueThatWillStillBeValid\";\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var ProvisioningState;\r\n(function (ProvisioningState) {\r\n ProvisioningState[\"Creating\"] = \"Creating\";\r\n ProvisioningState[\"ResolvingDNS\"] = \"ResolvingDNS\";\r\n ProvisioningState[\"Moving\"] = \"Moving\";\r\n ProvisioningState[\"Deleting\"] = \"Deleting\";\r\n ProvisioningState[\"Succeeded\"] = \"Succeeded\";\r\n ProvisioningState[\"Failed\"] = \"Failed\";\r\n})(ProvisioningState || (ProvisioningState = {}));\r\n/**\r\n * Defines values for KeyName.\r\n * Possible values include: 'Key1', 'Key2'\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var KeyName;\r\n(function (KeyName) {\r\n KeyName[\"Key1\"] = \"Key1\";\r\n KeyName[\"Key2\"] = \"Key2\";\r\n})(KeyName || (KeyName = {}));\r\n/**\r\n * Defines values for UnitType.\r\n * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent',\r\n * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'\r\n * There could be more values for this enum apart from the ones defined here.If\r\n * you want to set a value that is not from the known values then you can do\r\n * the following:\r\n * let param: UnitType = \"someUnknownValueThatWillStillBeValid\";\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var UnitType;\r\n(function (UnitType) {\r\n UnitType[\"Count\"] = \"Count\";\r\n UnitType[\"Bytes\"] = \"Bytes\";\r\n UnitType[\"Seconds\"] = \"Seconds\";\r\n UnitType[\"Percent\"] = \"Percent\";\r\n UnitType[\"CountPerSecond\"] = \"CountPerSecond\";\r\n UnitType[\"BytesPerSecond\"] = \"BytesPerSecond\";\r\n UnitType[\"Milliseconds\"] = \"Milliseconds\";\r\n})(UnitType || (UnitType = {}));\r\n/**\r\n * Defines values for QuotaUsageStatus.\r\n * Possible values include: 'Included', 'Blocked', 'InOverage', 'Unknown'\r\n * There could be more values for this enum apart from the ones defined here.If\r\n * you want to set a value that is not from the known values then you can do\r\n * the following:\r\n * let param: QuotaUsageStatus =\r\n * \"someUnknownValueThatWillStillBeValid\";\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var QuotaUsageStatus;\r\n(function (QuotaUsageStatus) {\r\n QuotaUsageStatus[\"Included\"] = \"Included\";\r\n QuotaUsageStatus[\"Blocked\"] = \"Blocked\";\r\n QuotaUsageStatus[\"InOverage\"] = \"InOverage\";\r\n QuotaUsageStatus[\"Unknown\"] = \"Unknown\";\r\n})(QuotaUsageStatus || (QuotaUsageStatus = {}));\r\n/**\r\n * Defines values for ResourceSkuRestrictionsType.\r\n * Possible values include: 'Location', 'Zone'\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var ResourceSkuRestrictionsType;\r\n(function (ResourceSkuRestrictionsType) {\r\n ResourceSkuRestrictionsType[\"Location\"] = \"Location\";\r\n ResourceSkuRestrictionsType[\"Zone\"] = \"Zone\";\r\n})(ResourceSkuRestrictionsType || (ResourceSkuRestrictionsType = {}));\r\n/**\r\n * Defines values for ResourceSkuRestrictionsReasonCode.\r\n * Possible values include: 'QuotaId', 'NotAvailableForSubscription'\r\n * There could be more values for this enum apart from the ones defined here.If\r\n * you want to set a value that is not from the known values then you can do\r\n * the following:\r\n * let param: ResourceSkuRestrictionsReasonCode =\r\n * \"someUnknownValueThatWillStillBeValid\";\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var ResourceSkuRestrictionsReasonCode;\r\n(function (ResourceSkuRestrictionsReasonCode) {\r\n ResourceSkuRestrictionsReasonCode[\"QuotaId\"] = \"QuotaId\";\r\n ResourceSkuRestrictionsReasonCode[\"NotAvailableForSubscription\"] = \"NotAvailableForSubscription\";\r\n})(ResourceSkuRestrictionsReasonCode || (ResourceSkuRestrictionsReasonCode = {}));\r\n//# sourceMappingURL=index.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport { CloudErrorMapper, BaseResourceMapper } from \"ms-rest-azure-js\";\r\nexport var CloudError = CloudErrorMapper;\r\nexport var BaseResource = BaseResourceMapper;\r\nexport var Sku = {\r\n serializedName: \"Sku\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Sku\",\r\n modelProperties: {\r\n name: {\r\n required: true,\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n tier: {\r\n readOnly: true,\r\n serializedName: \"tier\",\r\n type: {\r\n name: \"Enum\",\r\n allowedValues: [\r\n \"Free\",\r\n \"Standard\",\r\n \"Premium\"\r\n ]\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CognitiveServicesAccountCreateParameters = {\r\n serializedName: \"CognitiveServicesAccountCreateParameters\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CognitiveServicesAccountCreateParameters\",\r\n modelProperties: {\r\n sku: {\r\n required: true,\r\n serializedName: \"sku\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Sku\"\r\n }\r\n },\r\n kind: {\r\n required: true,\r\n serializedName: \"kind\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n location: {\r\n required: true,\r\n serializedName: \"location\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n tags: {\r\n serializedName: \"tags\",\r\n type: {\r\n name: \"Dictionary\",\r\n value: {\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n },\r\n properties: {\r\n required: true,\r\n serializedName: \"properties\",\r\n type: {\r\n name: \"Object\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CognitiveServicesAccountUpdateParameters = {\r\n serializedName: \"CognitiveServicesAccountUpdateParameters\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CognitiveServicesAccountUpdateParameters\",\r\n modelProperties: {\r\n sku: {\r\n serializedName: \"sku\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Sku\"\r\n }\r\n },\r\n tags: {\r\n serializedName: \"tags\",\r\n type: {\r\n name: \"Dictionary\",\r\n value: {\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CognitiveServicesAccountProperties = {\r\n serializedName: \"CognitiveServicesAccountProperties\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CognitiveServicesAccountProperties\",\r\n modelProperties: {\r\n provisioningState: {\r\n readOnly: true,\r\n serializedName: \"provisioningState\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n endpoint: {\r\n serializedName: \"endpoint\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n internalId: {\r\n serializedName: \"internalId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CognitiveServicesAccount = {\r\n serializedName: \"CognitiveServicesAccount\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CognitiveServicesAccount\",\r\n modelProperties: {\r\n etag: {\r\n serializedName: \"etag\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n id: {\r\n readOnly: true,\r\n serializedName: \"id\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n kind: {\r\n serializedName: \"kind\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n location: {\r\n serializedName: \"location\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n name: {\r\n readOnly: true,\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n provisioningState: {\r\n readOnly: true,\r\n serializedName: \"properties.provisioningState\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n endpoint: {\r\n serializedName: \"properties.endpoint\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n internalId: {\r\n serializedName: \"properties.internalId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n sku: {\r\n serializedName: \"sku\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Sku\"\r\n }\r\n },\r\n tags: {\r\n serializedName: \"tags\",\r\n type: {\r\n name: \"Dictionary\",\r\n value: {\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n },\r\n type: {\r\n readOnly: true,\r\n serializedName: \"type\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CognitiveServicesAccountKeys = {\r\n serializedName: \"CognitiveServicesAccountKeys\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CognitiveServicesAccountKeys\",\r\n modelProperties: {\r\n key1: {\r\n serializedName: \"key1\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n key2: {\r\n serializedName: \"key2\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var RegenerateKeyParameters = {\r\n serializedName: \"RegenerateKeyParameters\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"RegenerateKeyParameters\",\r\n modelProperties: {\r\n keyName: {\r\n required: true,\r\n serializedName: \"keyName\",\r\n type: {\r\n name: \"Enum\",\r\n allowedValues: [\r\n \"Key1\",\r\n \"Key2\"\r\n ]\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CognitiveServicesResourceAndSku = {\r\n serializedName: \"CognitiveServicesResourceAndSku\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CognitiveServicesResourceAndSku\",\r\n modelProperties: {\r\n resourceType: {\r\n serializedName: \"resourceType\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n sku: {\r\n serializedName: \"sku\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Sku\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CognitiveServicesAccountEnumerateSkusResult = {\r\n serializedName: \"CognitiveServicesAccountEnumerateSkusResult\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CognitiveServicesAccountEnumerateSkusResult\",\r\n modelProperties: {\r\n value: {\r\n readOnly: true,\r\n serializedName: \"value\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"CognitiveServicesResourceAndSku\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var MetricName = {\r\n serializedName: \"MetricName\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"MetricName\",\r\n modelProperties: {\r\n value: {\r\n readOnly: true,\r\n serializedName: \"value\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n localizedValue: {\r\n readOnly: true,\r\n serializedName: \"localizedValue\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var Usage = {\r\n serializedName: \"Usage\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Usage\",\r\n modelProperties: {\r\n unit: {\r\n serializedName: \"unit\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n name: {\r\n readOnly: true,\r\n serializedName: \"name\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"MetricName\"\r\n }\r\n },\r\n quotaPeriod: {\r\n readOnly: true,\r\n serializedName: \"quotaPeriod\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n limit: {\r\n readOnly: true,\r\n serializedName: \"limit\",\r\n type: {\r\n name: \"Number\"\r\n }\r\n },\r\n currentValue: {\r\n readOnly: true,\r\n serializedName: \"currentValue\",\r\n type: {\r\n name: \"Number\"\r\n }\r\n },\r\n nextResetTime: {\r\n readOnly: true,\r\n serializedName: \"nextResetTime\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n status: {\r\n serializedName: \"status\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var UsagesResult = {\r\n serializedName: \"UsagesResult\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"UsagesResult\",\r\n modelProperties: {\r\n value: {\r\n readOnly: true,\r\n serializedName: \"value\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"Usage\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ErrorBody = {\r\n serializedName: \"ErrorBody\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorBody\",\r\n modelProperties: {\r\n code: {\r\n required: true,\r\n serializedName: \"code\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n message: {\r\n required: true,\r\n serializedName: \"message\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ErrorModel = {\r\n serializedName: \"Error\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorModel\",\r\n modelProperties: {\r\n error: {\r\n serializedName: \"error\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorBody\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var OperationDisplayInfo = {\r\n serializedName: \"OperationDisplayInfo\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationDisplayInfo\",\r\n modelProperties: {\r\n description: {\r\n serializedName: \"description\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n operation: {\r\n serializedName: \"operation\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n provider: {\r\n serializedName: \"provider\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n resource: {\r\n serializedName: \"resource\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var OperationEntity = {\r\n serializedName: \"OperationEntity\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationEntity\",\r\n modelProperties: {\r\n name: {\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n display: {\r\n serializedName: \"display\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationDisplayInfo\"\r\n }\r\n },\r\n origin: {\r\n serializedName: \"origin\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n properties: {\r\n serializedName: \"properties\",\r\n type: {\r\n name: \"Object\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CheckSkuAvailabilityParameter = {\r\n serializedName: \"CheckSkuAvailabilityParameter\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CheckSkuAvailabilityParameter\",\r\n modelProperties: {\r\n skus: {\r\n required: true,\r\n serializedName: \"skus\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n },\r\n kind: {\r\n required: true,\r\n serializedName: \"kind\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n type: {\r\n required: true,\r\n serializedName: \"type\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CheckSkuAvailabilityResult = {\r\n serializedName: \"CheckSkuAvailabilityResult\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CheckSkuAvailabilityResult\",\r\n modelProperties: {\r\n kind: {\r\n serializedName: \"kind\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n type: {\r\n serializedName: \"type\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n skuName: {\r\n serializedName: \"skuName\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n skuAvailable: {\r\n serializedName: \"skuAvailable\",\r\n type: {\r\n name: \"Boolean\"\r\n }\r\n },\r\n reason: {\r\n serializedName: \"reason\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n message: {\r\n serializedName: \"message\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CheckSkuAvailabilityResultList = {\r\n serializedName: \"CheckSkuAvailabilityResultList\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CheckSkuAvailabilityResultList\",\r\n modelProperties: {\r\n value: {\r\n serializedName: \"value\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"CheckSkuAvailabilityResult\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ResourceSkuRestrictionInfo = {\r\n serializedName: \"ResourceSkuRestrictionInfo\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ResourceSkuRestrictionInfo\",\r\n modelProperties: {\r\n locations: {\r\n readOnly: true,\r\n serializedName: \"locations\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n },\r\n zones: {\r\n readOnly: true,\r\n serializedName: \"zones\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ResourceSkuRestrictions = {\r\n serializedName: \"ResourceSkuRestrictions\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ResourceSkuRestrictions\",\r\n modelProperties: {\r\n type: {\r\n readOnly: true,\r\n serializedName: \"type\",\r\n type: {\r\n name: \"Enum\",\r\n allowedValues: [\r\n \"Location\",\r\n \"Zone\"\r\n ]\r\n }\r\n },\r\n values: {\r\n readOnly: true,\r\n serializedName: \"values\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n },\r\n restrictionInfo: {\r\n readOnly: true,\r\n serializedName: \"restrictionInfo\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ResourceSkuRestrictionInfo\"\r\n }\r\n },\r\n reasonCode: {\r\n readOnly: true,\r\n serializedName: \"reasonCode\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ResourceSku = {\r\n serializedName: \"ResourceSku\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ResourceSku\",\r\n modelProperties: {\r\n resourceType: {\r\n readOnly: true,\r\n serializedName: \"resourceType\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n name: {\r\n readOnly: true,\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n tier: {\r\n readOnly: true,\r\n serializedName: \"tier\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n kind: {\r\n readOnly: true,\r\n serializedName: \"kind\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n locations: {\r\n readOnly: true,\r\n serializedName: \"locations\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n },\r\n restrictions: {\r\n readOnly: true,\r\n serializedName: \"restrictions\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"ResourceSkuRestrictions\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CognitiveServicesAccountListResult = {\r\n serializedName: \"CognitiveServicesAccountListResult\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CognitiveServicesAccountListResult\",\r\n modelProperties: {\r\n nextLink: {\r\n serializedName: \"nextLink\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n value: {\r\n readOnly: true,\r\n serializedName: \"\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"CognitiveServicesAccount\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ResourceSkusResult = {\r\n serializedName: \"ResourceSkusResult\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ResourceSkusResult\",\r\n modelProperties: {\r\n value: {\r\n required: true,\r\n serializedName: \"\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"ResourceSku\"\r\n }\r\n }\r\n }\r\n },\r\n nextLink: {\r\n serializedName: \"nextLink\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var OperationEntityListResult = {\r\n serializedName: \"OperationEntityListResult\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationEntityListResult\",\r\n modelProperties: {\r\n nextLink: {\r\n serializedName: \"nextLink\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n value: {\r\n serializedName: \"\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationEntity\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\n//# sourceMappingURL=mappers.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport { CognitiveServicesAccountCreateParameters, Sku, CognitiveServicesAccount, BaseResource, ErrorModel, ErrorBody, CognitiveServicesAccountUpdateParameters, CognitiveServicesAccountListResult, CognitiveServicesAccountKeys, RegenerateKeyParameters, CognitiveServicesAccountEnumerateSkusResult, CognitiveServicesResourceAndSku, UsagesResult, Usage, MetricName } from \"../models/mappers\";\r\n//# sourceMappingURL=accountsMappers.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport var acceptLanguage = {\r\n parameterPath: \"acceptLanguage\",\r\n mapper: {\r\n serializedName: \"accept-language\",\r\n defaultValue: 'en-US',\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var accountName = {\r\n parameterPath: \"accountName\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"accountName\",\r\n constraints: {\r\n MaxLength: 64,\r\n MinLength: 2,\r\n Pattern: /^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/\r\n },\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var apiVersion = {\r\n parameterPath: \"apiVersion\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"api-version\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var filter = {\r\n parameterPath: [\r\n \"options\",\r\n \"filter\"\r\n ],\r\n mapper: {\r\n serializedName: \"$filter\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var location = {\r\n parameterPath: \"location\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"location\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var nextPageLink = {\r\n parameterPath: \"nextPageLink\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"nextLink\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n skipEncoding: true\r\n};\r\nexport var resourceGroupName = {\r\n parameterPath: \"resourceGroupName\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"resourceGroupName\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var subscriptionId = {\r\n parameterPath: \"subscriptionId\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"subscriptionId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\n//# sourceMappingURL=parameters.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as tslib_1 from \"tslib\";\r\nimport * as msRest from \"ms-rest-js\";\r\nimport * as Mappers from \"../models/accountsMappers\";\r\nimport * as Parameters from \"../models/parameters\";\r\n/** Class representing a Accounts. */\r\nvar Accounts = /** @class */ (function () {\r\n /**\r\n * Create a Accounts.\r\n * @param {CognitiveServicesManagementClientContext} client Reference to the service client.\r\n */\r\n function Accounts(client) {\r\n this.client = client;\r\n }\r\n Accounts.prototype.create = function (resourceGroupName, accountName, parameters, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n accountName: accountName,\r\n parameters: parameters,\r\n options: options\r\n }, createOperationSpec, callback);\r\n };\r\n Accounts.prototype.update = function (resourceGroupName, accountName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n accountName: accountName,\r\n options: options\r\n }, updateOperationSpec, callback);\r\n };\r\n Accounts.prototype.deleteMethod = function (resourceGroupName, accountName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n accountName: accountName,\r\n options: options\r\n }, deleteMethodOperationSpec, callback);\r\n };\r\n Accounts.prototype.getProperties = function (resourceGroupName, accountName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n accountName: accountName,\r\n options: options\r\n }, getPropertiesOperationSpec, callback);\r\n };\r\n Accounts.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n options: options\r\n }, listByResourceGroupOperationSpec, callback);\r\n };\r\n Accounts.prototype.list = function (options, callback) {\r\n return this.client.sendOperationRequest({\r\n options: options\r\n }, listOperationSpec, callback);\r\n };\r\n Accounts.prototype.listKeys = function (resourceGroupName, accountName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n accountName: accountName,\r\n options: options\r\n }, listKeysOperationSpec, callback);\r\n };\r\n Accounts.prototype.regenerateKey = function (resourceGroupName, accountName, keyName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n accountName: accountName,\r\n keyName: keyName,\r\n options: options\r\n }, regenerateKeyOperationSpec, callback);\r\n };\r\n Accounts.prototype.listSkus = function (resourceGroupName, accountName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n accountName: accountName,\r\n options: options\r\n }, listSkusOperationSpec, callback);\r\n };\r\n Accounts.prototype.getUsages = function (resourceGroupName, accountName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n accountName: accountName,\r\n options: options\r\n }, getUsagesOperationSpec, callback);\r\n };\r\n Accounts.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {\r\n return this.client.sendOperationRequest({\r\n nextPageLink: nextPageLink,\r\n options: options\r\n }, listByResourceGroupNextOperationSpec, callback);\r\n };\r\n Accounts.prototype.listNext = function (nextPageLink, options, callback) {\r\n return this.client.sendOperationRequest({\r\n nextPageLink: nextPageLink,\r\n options: options\r\n }, listNextOperationSpec, callback);\r\n };\r\n return Accounts;\r\n}());\r\nexport { Accounts };\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar createOperationSpec = {\r\n httpMethod: \"PUT\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.accountName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n requestBody: {\r\n parameterPath: \"parameters\",\r\n mapper: tslib_1.__assign({}, Mappers.CognitiveServicesAccountCreateParameters, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CognitiveServicesAccount\r\n },\r\n 201: {\r\n bodyMapper: Mappers.CognitiveServicesAccount\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar updateOperationSpec = {\r\n httpMethod: \"PATCH\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.accountName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n requestBody: {\r\n parameterPath: {\r\n sku: [\r\n \"options\",\r\n \"sku\"\r\n ],\r\n tags: [\r\n \"options\",\r\n \"tags\"\r\n ]\r\n },\r\n mapper: tslib_1.__assign({}, Mappers.CognitiveServicesAccountUpdateParameters, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CognitiveServicesAccount\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar deleteMethodOperationSpec = {\r\n httpMethod: \"DELETE\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.accountName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {},\r\n 204: {},\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar getPropertiesOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.accountName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CognitiveServicesAccount\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listByResourceGroupOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CognitiveServicesAccountListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts\",\r\n urlParameters: [\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CognitiveServicesAccountListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listKeysOperationSpec = {\r\n httpMethod: \"POST\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.accountName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CognitiveServicesAccountKeys\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar regenerateKeyOperationSpec = {\r\n httpMethod: \"POST\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.accountName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n requestBody: {\r\n parameterPath: {\r\n keyName: \"keyName\"\r\n },\r\n mapper: tslib_1.__assign({}, Mappers.RegenerateKeyParameters, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CognitiveServicesAccountKeys\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listSkusOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.accountName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CognitiveServicesAccountEnumerateSkusResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar getUsagesOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.accountName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion,\r\n Parameters.filter\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.UsagesResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listByResourceGroupNextOperationSpec = {\r\n httpMethod: \"GET\",\r\n baseUrl: \"https://management.azure.com\",\r\n path: \"{nextLink}\",\r\n urlParameters: [\r\n Parameters.nextPageLink\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CognitiveServicesAccountListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listNextOperationSpec = {\r\n httpMethod: \"GET\",\r\n baseUrl: \"https://management.azure.com\",\r\n path: \"{nextLink}\",\r\n urlParameters: [\r\n Parameters.nextPageLink\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CognitiveServicesAccountListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\n//# sourceMappingURL=accounts.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport { ResourceSkusResult, ResourceSku, ResourceSkuRestrictions, ResourceSkuRestrictionInfo, CloudError } from \"../models/mappers\";\r\n//# sourceMappingURL=resourceSkusMappers.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as msRest from \"ms-rest-js\";\r\nimport * as Mappers from \"../models/resourceSkusMappers\";\r\nimport * as Parameters from \"../models/parameters\";\r\n/** Class representing a ResourceSkus. */\r\nvar ResourceSkus = /** @class */ (function () {\r\n /**\r\n * Create a ResourceSkus.\r\n * @param {CognitiveServicesManagementClientContext} client Reference to the service client.\r\n */\r\n function ResourceSkus(client) {\r\n this.client = client;\r\n }\r\n ResourceSkus.prototype.list = function (options, callback) {\r\n return this.client.sendOperationRequest({\r\n options: options\r\n }, listOperationSpec, callback);\r\n };\r\n ResourceSkus.prototype.listNext = function (nextPageLink, options, callback) {\r\n return this.client.sendOperationRequest({\r\n nextPageLink: nextPageLink,\r\n options: options\r\n }, listNextOperationSpec, callback);\r\n };\r\n return ResourceSkus;\r\n}());\r\nexport { ResourceSkus };\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar listOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus\",\r\n urlParameters: [\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.ResourceSkusResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.CloudError\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listNextOperationSpec = {\r\n httpMethod: \"GET\",\r\n baseUrl: \"https://management.azure.com\",\r\n path: \"{nextLink}\",\r\n urlParameters: [\r\n Parameters.nextPageLink\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.ResourceSkusResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.CloudError\r\n }\r\n },\r\n serializer: serializer\r\n};\r\n//# sourceMappingURL=resourceSkus.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport { OperationEntityListResult, OperationEntity, OperationDisplayInfo, CloudError } from \"../models/mappers\";\r\n//# sourceMappingURL=operationsMappers.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as msRest from \"ms-rest-js\";\r\nimport * as Mappers from \"../models/operationsMappers\";\r\nimport * as Parameters from \"../models/parameters\";\r\n/** Class representing a Operations. */\r\nvar Operations = /** @class */ (function () {\r\n /**\r\n * Create a Operations.\r\n * @param {CognitiveServicesManagementClientContext} client Reference to the service client.\r\n */\r\n function Operations(client) {\r\n this.client = client;\r\n }\r\n Operations.prototype.list = function (options, callback) {\r\n return this.client.sendOperationRequest({\r\n options: options\r\n }, listOperationSpec, callback);\r\n };\r\n Operations.prototype.listNext = function (nextPageLink, options, callback) {\r\n return this.client.sendOperationRequest({\r\n nextPageLink: nextPageLink,\r\n options: options\r\n }, listNextOperationSpec, callback);\r\n };\r\n return Operations;\r\n}());\r\nexport { Operations };\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar listOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"providers/Microsoft.CognitiveServices/operations\",\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.OperationEntityListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.CloudError\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listNextOperationSpec = {\r\n httpMethod: \"GET\",\r\n baseUrl: \"https://management.azure.com\",\r\n path: \"{nextLink}\",\r\n urlParameters: [\r\n Parameters.nextPageLink\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.OperationEntityListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.CloudError\r\n }\r\n },\r\n serializer: serializer\r\n};\r\n//# sourceMappingURL=operations.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport { CheckSkuAvailabilityParameter, CheckSkuAvailabilityResultList, CheckSkuAvailabilityResult, CloudError } from \"../models/mappers\";\r\n//# sourceMappingURL=checkSkuAvailabilityMappers.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as tslib_1 from \"tslib\";\r\nimport * as msRest from \"ms-rest-js\";\r\nimport * as Mappers from \"../models/checkSkuAvailabilityMappers\";\r\nimport * as Parameters from \"../models/parameters\";\r\n/** Class representing a CheckSkuAvailability. */\r\nvar CheckSkuAvailability = /** @class */ (function () {\r\n /**\r\n * Create a CheckSkuAvailability.\r\n * @param {CognitiveServicesManagementClientContext} client Reference to the service client.\r\n */\r\n function CheckSkuAvailability(client) {\r\n this.client = client;\r\n }\r\n CheckSkuAvailability.prototype.list = function (location, skus, kind, type, options, callback) {\r\n return this.client.sendOperationRequest({\r\n location: location,\r\n skus: skus,\r\n kind: kind,\r\n type: type,\r\n options: options\r\n }, listOperationSpec, callback);\r\n };\r\n return CheckSkuAvailability;\r\n}());\r\nexport { CheckSkuAvailability };\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar listOperationSpec = {\r\n httpMethod: \"POST\",\r\n path: \"subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.location\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n requestBody: {\r\n parameterPath: {\r\n skus: \"skus\",\r\n kind: \"kind\",\r\n type: \"type\"\r\n },\r\n mapper: tslib_1.__assign({}, Mappers.CheckSkuAvailabilityParameter, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CheckSkuAvailabilityResultList\r\n },\r\n default: {\r\n bodyMapper: Mappers.CloudError\r\n }\r\n },\r\n serializer: serializer\r\n};\r\n//# sourceMappingURL=checkSkuAvailability.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport * from \"./accounts\";\r\nexport * from \"./resourceSkus\";\r\nexport * from \"./operations\";\r\nexport * from \"./checkSkuAvailability\";\r\n//# sourceMappingURL=index.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as tslib_1 from \"tslib\";\r\nimport * as msRestAzure from \"ms-rest-azure-js\";\r\nvar packageName = \"@azure/arm-cognitiveservices\";\r\nvar packageVersion = \"1.0.0\";\r\nvar CognitiveServicesManagementClientContext = /** @class */ (function (_super) {\r\n tslib_1.__extends(CognitiveServicesManagementClientContext, _super);\r\n /**\r\n * Initializes a new instance of the CognitiveServicesManagementClient class.\r\n * @param credentials Credentials needed for the client to connect to Azure.\r\n * @param subscriptionId Azure Subscription ID.\r\n * @param [options] The parameter options\r\n */\r\n function CognitiveServicesManagementClientContext(credentials, subscriptionId, options) {\r\n var _this = this;\r\n if (credentials == undefined) {\r\n throw new Error('\\'credentials\\' cannot be null.');\r\n }\r\n if (subscriptionId == undefined) {\r\n throw new Error('\\'subscriptionId\\' cannot be null.');\r\n }\r\n if (!options) {\r\n options = {};\r\n }\r\n _this = _super.call(this, credentials, options) || this;\r\n _this.apiVersion = '2017-04-18';\r\n _this.acceptLanguage = 'en-US';\r\n _this.longRunningOperationRetryTimeout = 30;\r\n _this.baseUri = options.baseUri || _this.baseUri || \"https://management.azure.com\";\r\n _this.requestContentType = \"application/json; charset=utf-8\";\r\n _this.credentials = credentials;\r\n _this.subscriptionId = subscriptionId;\r\n _this.addUserAgentInfo(packageName + \"/\" + packageVersion);\r\n if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {\r\n _this.acceptLanguage = options.acceptLanguage;\r\n }\r\n if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {\r\n _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;\r\n }\r\n return _this;\r\n }\r\n return CognitiveServicesManagementClientContext;\r\n}(msRestAzure.AzureServiceClient));\r\nexport { CognitiveServicesManagementClientContext };\r\n//# sourceMappingURL=cognitiveServicesManagementClientContext.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as tslib_1 from \"tslib\";\r\nimport * as Models from \"./models\";\r\nimport * as Mappers from \"./models/mappers\";\r\nimport * as operations from \"./operations\";\r\nimport { CognitiveServicesManagementClientContext } from \"./cognitiveServicesManagementClientContext\";\r\nvar CognitiveServicesManagementClient = /** @class */ (function (_super) {\r\n tslib_1.__extends(CognitiveServicesManagementClient, _super);\r\n /**\r\n * Initializes a new instance of the CognitiveServicesManagementClient class.\r\n * @param credentials Credentials needed for the client to connect to Azure.\r\n * @param subscriptionId Azure Subscription ID.\r\n * @param [options] The parameter options\r\n */\r\n function CognitiveServicesManagementClient(credentials, subscriptionId, options) {\r\n var _this = _super.call(this, credentials, subscriptionId, options) || this;\r\n _this.accounts = new operations.Accounts(_this);\r\n _this.resourceSkus = new operations.ResourceSkus(_this);\r\n _this.operations = new operations.Operations(_this);\r\n _this.checkSkuAvailability = new operations.CheckSkuAvailability(_this);\r\n return _this;\r\n }\r\n return CognitiveServicesManagementClient;\r\n}(CognitiveServicesManagementClientContext));\r\n// Operation Specifications\r\nexport { CognitiveServicesManagementClient, CognitiveServicesManagementClientContext, Models as CognitiveServicesManagementModels, Mappers as CognitiveServicesManagementMappers };\r\nexport * from \"./operations\";\r\n//# sourceMappingURL=cognitiveServicesManagementClient.js.map"],"names":["CloudErrorMapper","BaseResourceMapper","resourceGroupName","accountName","nextPageLink","msRest.Serializer","Parameters.resourceGroupName","Parameters.accountName","Parameters.subscriptionId","Parameters.apiVersion","Parameters.acceptLanguage","tslib_1.__assign","Mappers.CognitiveServicesAccountCreateParameters","Mappers.CognitiveServicesAccount","Mappers.ErrorModel","Mappers.CognitiveServicesAccountUpdateParameters","Mappers.CognitiveServicesAccountListResult","Mappers.CognitiveServicesAccountKeys","Mappers.RegenerateKeyParameters","Mappers.CognitiveServicesAccountEnumerateSkusResult","Parameters.filter","Mappers.UsagesResult","Parameters.nextPageLink","listOperationSpec","listNextOperationSpec","serializer","Mappers","Mappers.ResourceSkusResult","Mappers.CloudError","Mappers.OperationEntityListResult","location","Parameters.location","Mappers.CheckSkuAvailabilityParameter","Mappers.CheckSkuAvailabilityResultList","tslib_1.__extends","msRestAzure.AzureServiceClient","operations.Accounts","operations.ResourceSkus","operations.Operations","operations.CheckSkuAvailability"],"mappings":";;;;;;;;;;;;;;;IAAA;IACA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;;AAEF,IAAO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;IAChC,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,IAAI,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;IAC3C,IAAI,CAAC,CA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A;IACA;IACA;IACA;IACA;AACA,AAKG,QAAC,iCAAiC,kBAAkB,UAAU,MAAM,EAAE;IACzE,IAAID,SAAiB,CAAC,iCAAiC,EAAE,MAAM,CAAC,CAAC;IACjE;IACA;IACA;IACA;IACA;IACA;IACA,IAAI,SAAS,iCAAiC,CAAC,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE;IACrF,QAAQ,IAAI,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC;IACpF,QAAQ,KAAK,CAAC,QAAQ,GAAG,IAAIE,QAAmB,CAAC,KAAK,CAAC,CAAC;IACxD,QAAQ,KAAK,CAAC,YAAY,GAAG,IAAIC,YAAuB,CAAC,KAAK,CAAC,CAAC;IAChE,QAAQ,KAAK,CAAC,UAAU,GAAG,IAAIC,UAAqB,CAAC,KAAK,CAAC,CAAC;IAC5D,QAAQ,KAAK,CAAC,oBAAoB,GAAG,IAAIC,oBAA+B,CAAC,KAAK,CAAC,CAAC;IAChF,QAAQ,OAAO,KAAK,CAAC;IACrB,KAAK;IACL,IAAI,OAAO,iCAAiC,CAAC;IAC7C,CAAC,CAAC,wCAAwC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/packages/@azure/arm-cognitiveservices/dist/arm-cognitiveservices.min.js b/packages/@azure/arm-cognitiveservices/dist/arm-cognitiveservices.min.js new file mode 100644 index 000000000000..e27722ffd4df --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/dist/arm-cognitiveservices.min.js @@ -0,0 +1 @@ +!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("ms-rest-azure-js"),require("ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","ms-rest-azure-js","ms-rest-js"],r):r((e.Azure=e.Azure||{},e.Azure.ArmCognitiveservices={}),e.msRestAzure,e.msRest)}(this,function(e,r,t){"use strict";var a=function(e,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(e,r)};function s(e,r){function t(){this.constructor=e}a(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var i,n,o,p,u,m,c,l,d,y,S,g,N,v,z,h,k,C,P=function(){return(P=Object.assign||function(e){for(var r,t=1,a=arguments.length;t + */ +export interface CognitiveServicesAccountListResult extends Array { + /** + * @member {string} [nextLink] The link used to get the next page of + * accounts. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ResourceSkusResult. + * The Get Skus operation response. + * + * @extends Array + */ +export interface ResourceSkusResult extends Array { + /** + * @member {string} [nextLink] The uri to fetch the next page of Skus. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the OperationEntityListResult. + * The list of cognitive services accounts operation response. + * + * @extends Array + */ +export interface OperationEntityListResult extends Array { + /** + * @member {string} [nextLink] The link used to get the next page of + * operations. + */ + nextLink?: string; +} + +/** + * Defines values for SkuName. + * Possible values include: 'F0', 'P0', 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', + * 'S4', 'S5', 'S6' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: SkuName = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum SkuName { + F0 = 'F0', + P0 = 'P0', + P1 = 'P1', + P2 = 'P2', + S0 = 'S0', + S1 = 'S1', + S2 = 'S2', + S3 = 'S3', + S4 = 'S4', + S5 = 'S5', + S6 = 'S6', +} + +/** + * Defines values for SkuTier. + * Possible values include: 'Free', 'Standard', 'Premium' + * @readonly + * @enum {string} + */ +export enum SkuTier { + Free = 'Free', + Standard = 'Standard', + Premium = 'Premium', +} + +/** + * Defines values for Kind. + * Possible values include: 'Bing.Autosuggest.v7', 'Bing.CustomSearch', + * 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision', + * 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction', + * 'CustomVision.Training', 'Emotion', 'Face', 'LUIS', 'QnAMaker', + * 'SpeakerRecognition', 'SpeechTranslation', 'TextAnalytics', + * 'TextTranslation', 'WebLM' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: Kind = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum Kind { + BingAutosuggestv7 = 'Bing.Autosuggest.v7', + BingCustomSearch = 'Bing.CustomSearch', + BingSearchv7 = 'Bing.Search.v7', + BingSpeech = 'Bing.Speech', + BingSpellCheckv7 = 'Bing.SpellCheck.v7', + ComputerVision = 'ComputerVision', + ContentModerator = 'ContentModerator', + CustomSpeech = 'CustomSpeech', + CustomVisionPrediction = 'CustomVision.Prediction', + CustomVisionTraining = 'CustomVision.Training', + Emotion = 'Emotion', + Face = 'Face', + LUIS = 'LUIS', + QnAMaker = 'QnAMaker', + SpeakerRecognition = 'SpeakerRecognition', + SpeechTranslation = 'SpeechTranslation', + TextAnalytics = 'TextAnalytics', + TextTranslation = 'TextTranslation', + WebLM = 'WebLM', +} + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Creating', 'ResolvingDNS', 'Moving', 'Deleting', + * 'Succeeded', 'Failed' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ProvisioningState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ProvisioningState { + Creating = 'Creating', + ResolvingDNS = 'ResolvingDNS', + Moving = 'Moving', + Deleting = 'Deleting', + Succeeded = 'Succeeded', + Failed = 'Failed', +} + +/** + * Defines values for KeyName. + * Possible values include: 'Key1', 'Key2' + * @readonly + * @enum {string} + */ +export enum KeyName { + Key1 = 'Key1', + Key2 = 'Key2', +} + +/** + * Defines values for UnitType. + * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: UnitType = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum UnitType { + Count = 'Count', + Bytes = 'Bytes', + Seconds = 'Seconds', + Percent = 'Percent', + CountPerSecond = 'CountPerSecond', + BytesPerSecond = 'BytesPerSecond', + Milliseconds = 'Milliseconds', +} + +/** + * Defines values for QuotaUsageStatus. + * Possible values include: 'Included', 'Blocked', 'InOverage', 'Unknown' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: QuotaUsageStatus = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum QuotaUsageStatus { + Included = 'Included', + Blocked = 'Blocked', + InOverage = 'InOverage', + Unknown = 'Unknown', +} + +/** + * Defines values for ResourceSkuRestrictionsType. + * Possible values include: 'Location', 'Zone' + * @readonly + * @enum {string} + */ +export enum ResourceSkuRestrictionsType { + Location = 'Location', + Zone = 'Zone', +} + +/** + * Defines values for ResourceSkuRestrictionsReasonCode. + * Possible values include: 'QuotaId', 'NotAvailableForSubscription' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ResourceSkuRestrictionsReasonCode = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ResourceSkuRestrictionsReasonCode { + QuotaId = 'QuotaId', + NotAvailableForSubscription = 'NotAvailableForSubscription', +} + +/** + * Contains response data for the create operation. + */ +export type AccountsCreateResponse = CognitiveServicesAccount & { + /** + * 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: CognitiveServicesAccount; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AccountsUpdateResponse = CognitiveServicesAccount & { + /** + * 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: CognitiveServicesAccount; + }; +}; + +/** + * Contains response data for the getProperties operation. + */ +export type AccountsGetPropertiesResponse = CognitiveServicesAccount & { + /** + * 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: CognitiveServicesAccount; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type AccountsListByResourceGroupResponse = CognitiveServicesAccountListResult & { + /** + * 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: CognitiveServicesAccountListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AccountsListResponse = CognitiveServicesAccountListResult & { + /** + * 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: CognitiveServicesAccountListResult; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type AccountsListKeysResponse = CognitiveServicesAccountKeys & { + /** + * 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: CognitiveServicesAccountKeys; + }; +}; + +/** + * Contains response data for the regenerateKey operation. + */ +export type AccountsRegenerateKeyResponse = CognitiveServicesAccountKeys & { + /** + * 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: CognitiveServicesAccountKeys; + }; +}; + +/** + * Contains response data for the listSkus operation. + */ +export type AccountsListSkusResponse = CognitiveServicesAccountEnumerateSkusResult & { + /** + * 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: CognitiveServicesAccountEnumerateSkusResult; + }; +}; + +/** + * Contains response data for the getUsages operation. + */ +export type AccountsGetUsagesResponse = UsagesResult & { + /** + * 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: UsagesResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type AccountsListByResourceGroupNextResponse = CognitiveServicesAccountListResult & { + /** + * 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: CognitiveServicesAccountListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AccountsListNextResponse = CognitiveServicesAccountListResult & { + /** + * 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: CognitiveServicesAccountListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ResourceSkusListResponse = ResourceSkusResult & { + /** + * 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: ResourceSkusResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ResourceSkusListNextResponse = ResourceSkusResult & { + /** + * 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: ResourceSkusResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationEntityListResult & { + /** + * 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: OperationEntityListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationEntityListResult & { + /** + * 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: OperationEntityListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type CheckSkuAvailabilityListResponse = CheckSkuAvailabilityResultList & { + /** + * 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: CheckSkuAvailabilityResultList; + }; +}; diff --git a/packages/@azure/arm-cognitiveservices/lib/models/mappers.ts b/packages/@azure/arm-cognitiveservices/lib/models/mappers.ts new file mode 100644 index 000000000000..af9babc543ed --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/lib/models/mappers.ts @@ -0,0 +1,876 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import { CloudErrorMapper, BaseResourceMapper } from "ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + readOnly: true, + serializedName: "tier", + type: { + name: "Enum", + allowedValues: [ + "Free", + "Standard", + "Premium" + ] + } + } + } + } +}; + +export const CognitiveServicesAccountCreateParameters: msRest.CompositeMapper = { + serializedName: "CognitiveServicesAccountCreateParameters", + type: { + name: "Composite", + className: "CognitiveServicesAccountCreateParameters", + modelProperties: { + sku: { + required: true, + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Object" + } + } + } + } +}; + +export const CognitiveServicesAccountUpdateParameters: msRest.CompositeMapper = { + serializedName: "CognitiveServicesAccountUpdateParameters", + type: { + name: "Composite", + className: "CognitiveServicesAccountUpdateParameters", + modelProperties: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const CognitiveServicesAccountProperties: msRest.CompositeMapper = { + serializedName: "CognitiveServicesAccountProperties", + type: { + name: "Composite", + className: "CognitiveServicesAccountProperties", + modelProperties: { + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + type: { + name: "String" + } + }, + internalId: { + serializedName: "internalId", + type: { + name: "String" + } + } + } + } +}; + +export const CognitiveServicesAccount: msRest.CompositeMapper = { + serializedName: "CognitiveServicesAccount", + type: { + name: "Composite", + className: "CognitiveServicesAccount", + modelProperties: { + etag: { + serializedName: "etag", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + endpoint: { + serializedName: "properties.endpoint", + type: { + name: "String" + } + }, + internalId: { + serializedName: "properties.internalId", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const CognitiveServicesAccountKeys: msRest.CompositeMapper = { + serializedName: "CognitiveServicesAccountKeys", + type: { + name: "Composite", + className: "CognitiveServicesAccountKeys", + modelProperties: { + key1: { + serializedName: "key1", + type: { + name: "String" + } + }, + key2: { + serializedName: "key2", + type: { + name: "String" + } + } + } + } +}; + +export const RegenerateKeyParameters: msRest.CompositeMapper = { + serializedName: "RegenerateKeyParameters", + type: { + name: "Composite", + className: "RegenerateKeyParameters", + modelProperties: { + keyName: { + required: true, + serializedName: "keyName", + type: { + name: "Enum", + allowedValues: [ + "Key1", + "Key2" + ] + } + } + } + } +}; + +export const CognitiveServicesResourceAndSku: msRest.CompositeMapper = { + serializedName: "CognitiveServicesResourceAndSku", + type: { + name: "Composite", + className: "CognitiveServicesResourceAndSku", + modelProperties: { + resourceType: { + serializedName: "resourceType", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const CognitiveServicesAccountEnumerateSkusResult: msRest.CompositeMapper = { + serializedName: "CognitiveServicesAccountEnumerateSkusResult", + type: { + name: "Composite", + className: "CognitiveServicesAccountEnumerateSkusResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CognitiveServicesResourceAndSku" + } + } + } + } + } + } +}; + +export const MetricName: msRest.CompositeMapper = { + serializedName: "MetricName", + type: { + name: "Composite", + className: "MetricName", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "String" + } + }, + localizedValue: { + readOnly: true, + serializedName: "localizedValue", + type: { + name: "String" + } + } + } + } +}; + +export const Usage: msRest.CompositeMapper = { + serializedName: "Usage", + type: { + name: "Composite", + className: "Usage", + modelProperties: { + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "Composite", + className: "MetricName" + } + }, + quotaPeriod: { + readOnly: true, + serializedName: "quotaPeriod", + type: { + name: "String" + } + }, + limit: { + readOnly: true, + serializedName: "limit", + type: { + name: "Number" + } + }, + currentValue: { + readOnly: true, + serializedName: "currentValue", + type: { + name: "Number" + } + }, + nextResetTime: { + readOnly: true, + serializedName: "nextResetTime", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const UsagesResult: msRest.CompositeMapper = { + serializedName: "UsagesResult", + type: { + name: "Composite", + className: "UsagesResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } + } + } + } + } +}; + +export const ErrorBody: msRest.CompositeMapper = { + serializedName: "ErrorBody", + type: { + name: "Composite", + className: "ErrorBody", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorModel: msRest.CompositeMapper = { + serializedName: "Error", + type: { + name: "Composite", + className: "ErrorModel", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorBody" + } + } + } + } +}; + +export const OperationDisplayInfo: msRest.CompositeMapper = { + 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" + } + } + } + } +}; + +export const OperationEntity: msRest.CompositeMapper = { + 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" + } + } + } + } +}; + +export const CheckSkuAvailabilityParameter: msRest.CompositeMapper = { + serializedName: "CheckSkuAvailabilityParameter", + type: { + name: "Composite", + className: "CheckSkuAvailabilityParameter", + modelProperties: { + skus: { + required: true, + serializedName: "skus", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const CheckSkuAvailabilityResult: msRest.CompositeMapper = { + 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" + } + } + } + } +}; + +export const CheckSkuAvailabilityResultList: msRest.CompositeMapper = { + serializedName: "CheckSkuAvailabilityResultList", + type: { + name: "Composite", + className: "CheckSkuAvailabilityResultList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CheckSkuAvailabilityResult" + } + } + } + } + } + } +}; + +export const ResourceSkuRestrictionInfo: msRest.CompositeMapper = { + serializedName: "ResourceSkuRestrictionInfo", + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo", + modelProperties: { + locations: { + readOnly: true, + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zones: { + readOnly: true, + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ResourceSkuRestrictions: msRest.CompositeMapper = { + serializedName: "ResourceSkuRestrictions", + type: { + name: "Composite", + className: "ResourceSkuRestrictions", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "Location", + "Zone" + ] + } + }, + values: { + readOnly: true, + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + restrictionInfo: { + readOnly: true, + serializedName: "restrictionInfo", + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo" + } + }, + reasonCode: { + readOnly: true, + serializedName: "reasonCode", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSku: msRest.CompositeMapper = { + serializedName: "ResourceSku", + type: { + name: "Composite", + className: "ResourceSku", + modelProperties: { + resourceType: { + readOnly: true, + serializedName: "resourceType", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + readOnly: true, + serializedName: "tier", + type: { + name: "String" + } + }, + kind: { + readOnly: true, + serializedName: "kind", + type: { + name: "String" + } + }, + locations: { + readOnly: true, + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + restrictions: { + readOnly: true, + serializedName: "restrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuRestrictions" + } + } + } + } + } + } +}; + +export const CognitiveServicesAccountListResult: msRest.CompositeMapper = { + serializedName: "CognitiveServicesAccountListResult", + type: { + name: "Composite", + className: "CognitiveServicesAccountListResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CognitiveServicesAccount" + } + } + } + } + } + } +}; + +export const ResourceSkusResult: msRest.CompositeMapper = { + serializedName: "ResourceSkusResult", + type: { + name: "Composite", + className: "ResourceSkusResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSku" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationEntityListResult: msRest.CompositeMapper = { + 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" + } + } + } + } + } + } +}; diff --git a/packages/@azure/arm-cognitiveservices/lib/models/operationsMappers.ts b/packages/@azure/arm-cognitiveservices/lib/models/operationsMappers.ts new file mode 100644 index 000000000000..aba5d8bf047b --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/lib/models/operationsMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + OperationEntityListResult, + OperationEntity, + OperationDisplayInfo, + CloudError +} from "../models/mappers"; + diff --git a/packages/@azure/arm-cognitiveservices/lib/models/parameters.ts b/packages/@azure/arm-cognitiveservices/lib/models/parameters.ts new file mode 100644 index 000000000000..be45f2e0fbbb --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/lib/models/parameters.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const accountName: msRest.OperationURLParameter = { + parameterPath: "accountName", + mapper: { + required: true, + serializedName: "accountName", + constraints: { + MaxLength: 64, + MinLength: 2, + Pattern: /^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/ + }, + type: { + name: "String" + } + } +}; +export const apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; +export const filter: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const location: msRest.OperationURLParameter = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; diff --git a/packages/@azure/arm-cognitiveservices/lib/models/resourceSkusMappers.ts b/packages/@azure/arm-cognitiveservices/lib/models/resourceSkusMappers.ts new file mode 100644 index 000000000000..6b769892ecce --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/lib/models/resourceSkusMappers.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ResourceSkusResult, + ResourceSku, + ResourceSkuRestrictions, + ResourceSkuRestrictionInfo, + CloudError +} from "../models/mappers"; + diff --git a/packages/@azure/arm-cognitiveservices/lib/operations/accounts.ts b/packages/@azure/arm-cognitiveservices/lib/operations/accounts.ts new file mode 100644 index 000000000000..8e93d6392f51 --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/lib/operations/accounts.ts @@ -0,0 +1,727 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/accountsMappers"; +import * as Parameters from "../models/parameters"; +import { CognitiveServicesManagementClientContext } from "../cognitiveServicesManagementClientContext"; + +/** Class representing a Accounts. */ +export class Accounts { + private readonly client: CognitiveServicesManagementClientContext; + + /** + * Create a Accounts. + * @param {CognitiveServicesManagementClientContext} client Reference to the service client. + */ + constructor(client: CognitiveServicesManagementClientContext) { + this.client = client; + } + + /** + * Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the + * keys for developer to access intelligent APIs. It's also the resource type for billing. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param parameters The parameters to provide for the created account. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, parameters: Models.CognitiveServicesAccountCreateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param parameters The parameters to provide for the created account. + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, parameters: Models.CognitiveServicesAccountCreateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param parameters The parameters to provide for the created account. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, parameters: Models.CognitiveServicesAccountCreateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, accountName: string, parameters: Models.CognitiveServicesAccountCreateParameters, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + parameters, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Updates a Cognitive Services account + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, accountName: string, options?: Models.AccountsUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, options: Models.AccountsUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, options?: Models.AccountsUpdateOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Deletes a Cognitive Services account from the resource group. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Returns a Cognitive Services account specified by the parameters. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param [options] The optional parameters + * @returns Promise + */ + getProperties(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param callback The callback + */ + getProperties(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param options The optional parameters + * @param callback The callback + */ + getProperties(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getProperties(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + getPropertiesOperationSpec, + callback) as Promise; + } + + /** + * 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 [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Returns all the resources of a particular type belonging to a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists the account keys for the specified Cognitive Services account. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param [options] The optional parameters + * @returns Promise + */ + listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param callback The callback + */ + listKeys(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param options The optional parameters + * @param callback The callback + */ + listKeys(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listKeysOperationSpec, + callback) as Promise; + } + + /** + * 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 accountName The name of Cognitive Services account. + * @param keyName key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2' + * @param [options] The optional parameters + * @returns Promise + */ + regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.KeyName, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param keyName key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2' + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.KeyName, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param keyName key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2' + * @param options The optional parameters + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.KeyName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateKey(resourceGroupName: string, accountName: string, keyName: Models.KeyName, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + keyName, + options + }, + regenerateKeyOperationSpec, + callback) as Promise; + } + + /** + * List available SKUs for the requested Cognitive Services account + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param [options] The optional parameters + * @returns Promise + */ + listSkus(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param callback The callback + */ + listSkus(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param options The optional parameters + * @param callback The callback + */ + listSkus(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkus(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listSkusOperationSpec, + callback) as Promise; + } + + /** + * Get usages for the requested Cognitive Services account + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param [options] The optional parameters + * @returns Promise + */ + getUsages(resourceGroupName: string, accountName: string, options?: Models.AccountsGetUsagesOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param callback The callback + */ + getUsages(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param accountName The name of Cognitive Services account. + * @param options The optional parameters + * @param callback The callback + */ + getUsages(resourceGroupName: string, accountName: string, options: Models.AccountsGetUsagesOptionalParams, callback: msRest.ServiceCallback): void; + getUsages(resourceGroupName: string, accountName: string, options?: Models.AccountsGetUsagesOptionalParams, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + getUsagesOperationSpec, + callback) as Promise; + } + + /** + * Returns all the resources of a particular type belonging to a resource group + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Returns all the resources of a particular type belonging to a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CognitiveServicesAccountCreateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CognitiveServicesAccount + }, + 201: { + bodyMapper: Mappers.CognitiveServicesAccount + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + sku: [ + "options", + "sku" + ], + tags: [ + "options", + "tags" + ] + }, + mapper: { + ...Mappers.CognitiveServicesAccountUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CognitiveServicesAccount + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const getPropertiesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CognitiveServicesAccount + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CognitiveServicesAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CognitiveServicesAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/listKeys", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CognitiveServicesAccountKeys + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const regenerateKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + keyName: "keyName" + }, + mapper: { + ...Mappers.RegenerateKeyParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CognitiveServicesAccountKeys + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CognitiveServicesAccountEnumerateSkusResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const getUsagesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UsagesResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CognitiveServicesAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CognitiveServicesAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; diff --git a/packages/@azure/arm-cognitiveservices/lib/operations/checkSkuAvailability.ts b/packages/@azure/arm-cognitiveservices/lib/operations/checkSkuAvailability.ts new file mode 100644 index 000000000000..13584542eaaa --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/lib/operations/checkSkuAvailability.ts @@ -0,0 +1,117 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/checkSkuAvailabilityMappers"; +import * as Parameters from "../models/parameters"; +import { CognitiveServicesManagementClientContext } from "../cognitiveServicesManagementClientContext"; + +/** Class representing a CheckSkuAvailability. */ +export class CheckSkuAvailability { + private readonly client: CognitiveServicesManagementClientContext; + + /** + * Create a CheckSkuAvailability. + * @param {CognitiveServicesManagementClientContext} client Reference to the service client. + */ + constructor(client: CognitiveServicesManagementClientContext) { + this.client = client; + } + + /** + * Check available SKUs. + * @param location Resource location. + * @param skus The SKU of the resource. + * @param kind The Kind of the resource. Possible values include: 'Bing.Autosuggest.v7', + * 'Bing.CustomSearch', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision', + * 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction', 'CustomVision.Training', + * 'Emotion', 'Face', 'LUIS', 'QnAMaker', 'SpeakerRecognition', 'SpeechTranslation', + * 'TextAnalytics', 'TextTranslation', 'WebLM' + * @param type The Type of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, skus: Models.SkuName[], kind: Models.Kind, type: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Resource location. + * @param skus The SKU of the resource. + * @param kind The Kind of the resource. Possible values include: 'Bing.Autosuggest.v7', + * 'Bing.CustomSearch', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision', + * 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction', 'CustomVision.Training', + * 'Emotion', 'Face', 'LUIS', 'QnAMaker', 'SpeakerRecognition', 'SpeechTranslation', + * 'TextAnalytics', 'TextTranslation', 'WebLM' + * @param type The Type of the resource. + * @param callback The callback + */ + list(location: string, skus: Models.SkuName[], kind: Models.Kind, type: string, callback: msRest.ServiceCallback): void; + /** + * @param location Resource location. + * @param skus The SKU of the resource. + * @param kind The Kind of the resource. Possible values include: 'Bing.Autosuggest.v7', + * 'Bing.CustomSearch', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision', + * 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction', 'CustomVision.Training', + * 'Emotion', 'Face', 'LUIS', 'QnAMaker', 'SpeakerRecognition', 'SpeechTranslation', + * 'TextAnalytics', 'TextTranslation', 'WebLM' + * @param type The Type of the resource. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, skus: Models.SkuName[], kind: Models.Kind, type: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(location: string, skus: Models.SkuName[], kind: Models.Kind, type: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + skus, + kind, + type, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: { + skus: "skus", + kind: "kind", + type: "type" + }, + mapper: { + ...Mappers.CheckSkuAvailabilityParameter, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CheckSkuAvailabilityResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-cognitiveservices/lib/operations/index.ts b/packages/@azure/arm-cognitiveservices/lib/operations/index.ts new file mode 100644 index 000000000000..d4af4c0dda51 --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/lib/operations/index.ts @@ -0,0 +1,14 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export * from "./accounts"; +export * from "./resourceSkus"; +export * from "./operations"; +export * from "./checkSkuAvailability"; diff --git a/packages/@azure/arm-cognitiveservices/lib/operations/operations.ts b/packages/@azure/arm-cognitiveservices/lib/operations/operations.ts new file mode 100644 index 000000000000..807068050b46 --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/lib/operations/operations.ts @@ -0,0 +1,123 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/operationsMappers"; +import * as Parameters from "../models/parameters"; +import { CognitiveServicesManagementClientContext } from "../cognitiveServicesManagementClientContext"; + +/** Class representing a Operations. */ +export class Operations { + private readonly client: CognitiveServicesManagementClientContext; + + /** + * Create a Operations. + * @param {CognitiveServicesManagementClientContext} client Reference to the service client. + */ + constructor(client: CognitiveServicesManagementClientContext) { + this.client = client; + } + + /** + * Lists all the available Cognitive Services account operations. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists all the available Cognitive Services account operations. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.CognitiveServices/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationEntityListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationEntityListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-cognitiveservices/lib/operations/resourceSkus.ts b/packages/@azure/arm-cognitiveservices/lib/operations/resourceSkus.ts new file mode 100644 index 000000000000..7a36a590478d --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/lib/operations/resourceSkus.ts @@ -0,0 +1,126 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/resourceSkusMappers"; +import * as Parameters from "../models/parameters"; +import { CognitiveServicesManagementClientContext } from "../cognitiveServicesManagementClientContext"; + +/** Class representing a ResourceSkus. */ +export class ResourceSkus { + private readonly client: CognitiveServicesManagementClientContext; + + /** + * Create a ResourceSkus. + * @param {CognitiveServicesManagementClientContext} client Reference to the service client. + */ + constructor(client: CognitiveServicesManagementClientContext) { + this.client = client; + } + + /** + * Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/skus", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceSkusResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceSkusResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-cognitiveservices/package.json b/packages/@azure/arm-cognitiveservices/package.json new file mode 100644 index 000000000000..fd0ffcf273aa --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/package.json @@ -0,0 +1,42 @@ +{ + "name": "@azure/arm-cognitiveservices", + "author": "Microsoft Corporation", + "description": "CognitiveServicesManagementClient Library with typescript type definitions for node.js and browser.", + "version": "1.0.0", + "dependencies": { + "ms-rest-azure-js": "^1.0.166", + "ms-rest-js": "^1.0.439", + "tslib": "^1.9.3" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "license": "MIT", + "main": "./dist/arm-cognitiveservices.js", + "module": "./esm/cognitiveServicesManagementClient.js", + "types": "./esm/cognitiveServicesManagementClient.d.ts", + "devDependencies": { + "typescript": "^3.1.1", + "rollup": "^0.66.2", + "rollup-plugin-node-resolve": "^3.4.0", + "uglify-js": "^3.4.9" + }, + "homepage": "https://github.com/azure/azure-sdk-for-js", + "repository": { + "type": "git", + "url": "https://github.com/azure/azure-sdk-for-js.git" + }, + "bugs": { + "url": "https://github.com/azure/azure-sdk-for-js/issues" + }, + "scripts": { + "build": "tsc && rollup -c rollup.config.js && npm run minify", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-cognitiveservices.js.map'\" -o ./dist/arm-cognitiveservices.min.js ./dist/arm-cognitiveservices.js", + "prepare": "npm run build" + }, + "sideEffects": false +} diff --git a/packages/@azure/arm-cognitiveservices/rollup.config.js b/packages/@azure/arm-cognitiveservices/rollup.config.js new file mode 100644 index 000000000000..37be70559a60 --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/rollup.config.js @@ -0,0 +1,31 @@ +import nodeResolve from "rollup-plugin-node-resolve"; +/** + * @type {import('rollup').RollupFileOptions} + */ +const config = { + input: './esm/cognitiveServicesManagementClient.js', + external: ["ms-rest-js", "ms-rest-azure-js"], + output: { + file: "./dist/arm-cognitiveservices.js", + format: "umd", + name: "Azure.ArmCognitiveservices", + sourcemap: true, + globals: { + "ms-rest-js": "msRest", + "ms-rest-azure-js": "msRestAzure" + }, + banner: `/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */` + }, + plugins: [ + nodeResolve({ module: true }) + ] +}; +export default config; diff --git a/packages/@azure/arm-cognitiveservices/tsconfig.json b/packages/@azure/arm-cognitiveservices/tsconfig.json new file mode 100644 index 000000000000..f32d1664f320 --- /dev/null +++ b/packages/@azure/arm-cognitiveservices/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es5", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es6"], + "declaration": true, + "outDir": "./esm", + "importHelpers": true + }, + "include": ["./lib/**/*"], + "exclude": ["node_modules"] +}