diff --git a/packages/@azure/arm-devspaces/.npmignore b/packages/@azure/arm-devspaces/.npmignore new file mode 100644 index 000000000000..3b46bc6202d8 --- /dev/null +++ b/packages/@azure/arm-devspaces/.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-devspaces/LICENSE.txt b/packages/@azure/arm-devspaces/LICENSE.txt new file mode 100644 index 000000000000..a70e8cf66038 --- /dev/null +++ b/packages/@azure/arm-devspaces/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-devspaces/README.md b/packages/@azure/arm-devspaces/README.md new file mode 100644 index 000000000000..c1c9d8d0522d --- /dev/null +++ b/packages/@azure/arm-devspaces/README.md @@ -0,0 +1,81 @@ +# Azure DevSpacesManagementClient SDK for JavaScript +This package contains an isomorphic SDK for DevSpacesManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-devspaces +``` + + +## How to use + +### nodejs - Authentication, client creation and get controllers 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 { DevSpacesManagementClient, DevSpacesManagementModels, DevSpacesManagementMappers } from "@azure/arm-devspaces"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new DevSpacesManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const name = "testname"; + client.controllers.get(resourceGroupName, name).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and get controllers 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-devspaces sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-devspaces/dist/arm-devspaces.js b/packages/@azure/arm-devspaces/dist/arm-devspaces.js new file mode 100644 index 000000000000..a8ebe67e101e --- /dev/null +++ b/packages/@azure/arm-devspaces/dist/arm-devspaces.js @@ -0,0 +1,1335 @@ +/* + * 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.ArmDevspaces = {}),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 ProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Updating', + * 'Creating', 'Deleting', 'Deleted' + * 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["Succeeded"] = "Succeeded"; + ProvisioningState["Failed"] = "Failed"; + ProvisioningState["Canceled"] = "Canceled"; + ProvisioningState["Updating"] = "Updating"; + ProvisioningState["Creating"] = "Creating"; + ProvisioningState["Deleting"] = "Deleting"; + ProvisioningState["Deleted"] = "Deleted"; + })(ProvisioningState || (ProvisioningState = {})); + /** + * Defines values for SkuTier. + * Possible values include: 'Standard' + * 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: SkuTier = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ + var SkuTier; + (function (SkuTier) { + SkuTier["Standard"] = "Standard"; + })(SkuTier || (SkuTier = {})); + + var index = /*#__PURE__*/Object.freeze({ + get ProvisioningState () { return ProvisioningState; }, + get SkuTier () { return SkuTier; } + }); + + /* + * 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 ContainerHostMapping = { + serializedName: "ContainerHostMapping", + type: { + name: "Composite", + className: "ContainerHostMapping", + modelProperties: { + containerHostResourceId: { + serializedName: "containerHostResourceId", + type: { + name: "String" + } + }, + mappedControllerResourceId: { + readOnly: true, + serializedName: "mappedControllerResourceId", + type: { + name: "String" + } + } + } + } + }; + var ControllerProperties = { + serializedName: "ControllerProperties", + type: { + name: "Composite", + className: "ControllerProperties", + modelProperties: { + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + hostSuffix: { + required: true, + serializedName: "hostSuffix", + type: { + name: "String" + } + }, + dataPlaneFqdn: { + readOnly: true, + serializedName: "dataPlaneFqdn", + type: { + name: "String" + } + }, + targetContainerHostResourceId: { + required: true, + serializedName: "targetContainerHostResourceId", + type: { + name: "String" + } + }, + targetContainerHostCredentialsBase64: { + required: true, + serializedName: "targetContainerHostCredentialsBase64", + type: { + name: "String" + } + } + } + } + }; + var Sku = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + isConstant: true, + serializedName: "name", + defaultValue: 'S1', + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + } + } + } + }; + var Resource = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } + }; + var TrackedResource = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: __assign({}, Resource.type.modelProperties, { tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, location: { + serializedName: "location", + type: { + name: "String" + } + } }) + } + }; + var Controller = { + serializedName: "Controller", + type: { + name: "Composite", + className: "Controller", + modelProperties: __assign({}, TrackedResource.type.modelProperties, { provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, hostSuffix: { + required: true, + serializedName: "properties.hostSuffix", + type: { + name: "String" + } + }, dataPlaneFqdn: { + readOnly: true, + serializedName: "properties.dataPlaneFqdn", + type: { + name: "String" + } + }, targetContainerHostResourceId: { + required: true, + serializedName: "properties.targetContainerHostResourceId", + type: { + name: "String" + } + }, targetContainerHostCredentialsBase64: { + required: true, + serializedName: "properties.targetContainerHostCredentialsBase64", + type: { + name: "String" + } + }, sku: { + required: true, + serializedName: "sku", + defaultValue: {}, + type: { + name: "Composite", + className: "Sku" + } + } }) + } + }; + var ControllerUpdateParameters = { + serializedName: "ControllerUpdateParameters", + type: { + name: "Composite", + className: "ControllerUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } + }; + var OrchestratorSpecificConnectionDetails = { + serializedName: "OrchestratorSpecificConnectionDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "OrchestratorSpecificConnectionDetails", + className: "OrchestratorSpecificConnectionDetails", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } + }; + var ControllerConnectionDetails = { + serializedName: "ControllerConnectionDetails", + type: { + name: "Composite", + className: "ControllerConnectionDetails", + modelProperties: { + authKey: { + readOnly: true, + serializedName: "authKey", + type: { + name: "String" + } + }, + workspaceStorageAccountName: { + readOnly: true, + serializedName: "workspaceStorageAccountName", + type: { + name: "String" + } + }, + workspaceStorageSasToken: { + readOnly: true, + serializedName: "workspaceStorageSasToken", + type: { + name: "String" + } + }, + orchestratorSpecificConnectionDetails: { + serializedName: "orchestratorSpecificConnectionDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "OrchestratorSpecificConnectionDetails", + className: "OrchestratorSpecificConnectionDetails" + } + } + } + } + }; + var ControllerConnectionDetailsList = { + serializedName: "ControllerConnectionDetailsList", + type: { + name: "Composite", + className: "ControllerConnectionDetailsList", + modelProperties: { + connectionDetailsList: { + serializedName: "connectionDetailsList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ControllerConnectionDetails" + } + } + } + } + } + } + }; + var ResourceProviderOperationDisplay = { + serializedName: "ResourceProviderOperationDisplay", + type: { + name: "Composite", + className: "ResourceProviderOperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } + }; + var ResourceProviderOperationDefinition = { + serializedName: "ResourceProviderOperationDefinition", + type: { + name: "Composite", + className: "ResourceProviderOperationDefinition", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "ResourceProviderOperationDisplay" + } + } + } + } + }; + var KubernetesConnectionDetails = { + serializedName: "Kubernetes", + type: { + name: "Composite", + polymorphicDiscriminator: OrchestratorSpecificConnectionDetails.type.polymorphicDiscriminator, + uberParent: "OrchestratorSpecificConnectionDetails", + className: "KubernetesConnectionDetails", + modelProperties: __assign({}, OrchestratorSpecificConnectionDetails.type.modelProperties, { kubeConfig: { + serializedName: "kubeConfig", + type: { + name: "String" + } + } }) + } + }; + var ErrorDetails = { + serializedName: "ErrorDetails", + type: { + name: "Composite", + className: "ErrorDetails", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + } + } + } + }; + var ErrorResponse = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetails" + } + } + } + } + }; + var ControllerList = { + serializedName: "ControllerList", + type: { + name: "Composite", + className: "ControllerList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Controller" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } + }; + var ResourceProviderOperationList = { + serializedName: "ResourceProviderOperationList", + type: { + name: "Composite", + className: "ResourceProviderOperationList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceProviderOperationDefinition" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } + }; + var discriminators = { + 'OrchestratorSpecificConnectionDetails': OrchestratorSpecificConnectionDetails, + 'OrchestratorSpecificConnectionDetails.Kubernetes': KubernetesConnectionDetails + }; + + var mappers = /*#__PURE__*/Object.freeze({ + CloudError: CloudError, + BaseResource: BaseResource, + ContainerHostMapping: ContainerHostMapping, + ControllerProperties: ControllerProperties, + Sku: Sku, + Resource: Resource, + TrackedResource: TrackedResource, + Controller: Controller, + ControllerUpdateParameters: ControllerUpdateParameters, + OrchestratorSpecificConnectionDetails: OrchestratorSpecificConnectionDetails, + ControllerConnectionDetails: ControllerConnectionDetails, + ControllerConnectionDetailsList: ControllerConnectionDetailsList, + ResourceProviderOperationDisplay: ResourceProviderOperationDisplay, + ResourceProviderOperationDefinition: ResourceProviderOperationDefinition, + KubernetesConnectionDetails: KubernetesConnectionDetails, + ErrorDetails: ErrorDetails, + ErrorResponse: ErrorResponse, + ControllerList: ControllerList, + ResourceProviderOperationList: ResourceProviderOperationList, + discriminators: discriminators + }); + + /* + * 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({ + discriminators: discriminators, + ContainerHostMapping: ContainerHostMapping, + 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. + */ + var acceptLanguage = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } + }; + var apiVersion = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } + }; + var location = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } + }; + var name = { + parameterPath: "name", + mapper: { + required: true, + serializedName: "name", + constraints: { + MaxLength: 31, + MinLength: 3, + Pattern: /^[a-zA-Z0-9](-?[a-zA-Z0-9])*$/ + }, + 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", + constraints: { + MaxLength: 90, + MinLength: 1 + }, + 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 ContainerHostMappings. */ + var ContainerHostMappings = /** @class */ (function () { + /** + * Create a ContainerHostMappings. + * @param {DevSpacesManagementClientContext} client Reference to the service client. + */ + function ContainerHostMappings(client) { + this.client = client; + } + ContainerHostMappings.prototype.getContainerHostMapping = function (containerHostMapping, location$$1, options, callback) { + return this.client.sendOperationRequest({ + containerHostMapping: containerHostMapping, + location: location$$1, + options: options + }, getContainerHostMappingOperationSpec, callback); + }; + return ContainerHostMappings; + }()); + // Operation Specifications + var serializer = new msRest.Serializer(Mappers); + var getContainerHostMappingOperationSpec = { + httpMethod: "POST", + path: "providers/Microsoft.DevSpaces/locations/{location}/checkContainerHostMapping", + urlParameters: [ + location + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: "containerHostMapping", + mapper: __assign({}, ContainerHostMapping, { required: true }) + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Object" + } + } + }, + default: { + bodyMapper: CloudError + } + }, + 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({ + discriminators: discriminators, + Controller: Controller, + TrackedResource: TrackedResource, + Resource: Resource, + BaseResource: BaseResource, + Sku: Sku, + ErrorResponse: ErrorResponse, + ErrorDetails: ErrorDetails, + ControllerUpdateParameters: ControllerUpdateParameters, + ControllerList: ControllerList, + ControllerConnectionDetailsList: ControllerConnectionDetailsList, + ControllerConnectionDetails: ControllerConnectionDetails, + OrchestratorSpecificConnectionDetails: OrchestratorSpecificConnectionDetails, + KubernetesConnectionDetails: KubernetesConnectionDetails + }); + + /* + * 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 Controllers. */ + var Controllers = /** @class */ (function () { + /** + * Create a Controllers. + * @param {DevSpacesManagementClientContext} client Reference to the service client. + */ + function Controllers(client) { + this.client = client; + } + Controllers.prototype.get = function (resourceGroupName$$1, name$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + name: name$$1, + options: options + }, getOperationSpec, callback); + }; + /** + * Creates an Azure Dev Spaces Controller with the specified create parameters. + * @summary Creates an Azure Dev Spaces Controller. + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param controller Controller create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + Controllers.prototype.create = function (resourceGroupName$$1, name$$1, controller, options) { + return this.beginCreate(resourceGroupName$$1, name$$1, controller, options) + .then(function (lroPoller) { return lroPoller.pollUntilFinished(); }); + }; + /** + * Deletes an existing Azure Dev Spaces Controller. + * @summary Deletes an Azure Dev Spaces Controller. + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + Controllers.prototype.deleteMethod = function (resourceGroupName$$1, name$$1, options) { + return this.beginDeleteMethod(resourceGroupName$$1, name$$1, options) + .then(function (lroPoller) { return lroPoller.pollUntilFinished(); }); + }; + Controllers.prototype.update = function (resourceGroupName$$1, name$$1, controllerUpdateParameters, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + name: name$$1, + controllerUpdateParameters: controllerUpdateParameters, + options: options + }, updateOperationSpec, callback); + }; + Controllers.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + options: options + }, listByResourceGroupOperationSpec, callback); + }; + Controllers.prototype.list = function (options, callback) { + return this.client.sendOperationRequest({ + options: options + }, listOperationSpec, callback); + }; + Controllers.prototype.listConnectionDetails = function (resourceGroupName$$1, name$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + name: name$$1, + options: options + }, listConnectionDetailsOperationSpec, callback); + }; + /** + * Creates an Azure Dev Spaces Controller with the specified create parameters. + * @summary Creates an Azure Dev Spaces Controller. + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param controller Controller create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + Controllers.prototype.beginCreate = function (resourceGroupName$$1, name$$1, controller, options) { + return this.client.sendLRORequest({ + resourceGroupName: resourceGroupName$$1, + name: name$$1, + controller: controller, + options: options + }, beginCreateOperationSpec, options); + }; + /** + * Deletes an existing Azure Dev Spaces Controller. + * @summary Deletes an Azure Dev Spaces Controller. + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + Controllers.prototype.beginDeleteMethod = function (resourceGroupName$$1, name$$1, options) { + return this.client.sendLRORequest({ + resourceGroupName: resourceGroupName$$1, + name: name$$1, + options: options + }, beginDeleteMethodOperationSpec, options); + }; + Controllers.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) { + return this.client.sendOperationRequest({ + nextPageLink: nextPageLink$$1, + options: options + }, listByResourceGroupNextOperationSpec, callback); + }; + Controllers.prototype.listNext = function (nextPageLink$$1, options, callback) { + return this.client.sendOperationRequest({ + nextPageLink: nextPageLink$$1, + options: options + }, listNextOperationSpec, callback); + }; + return Controllers; + }()); + // Operation Specifications + var serializer$1 = new msRest.Serializer(Mappers$1); + var getOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}", + urlParameters: [ + subscriptionId, + resourceGroupName, + name + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: Controller + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer$1 + }; + var updateOperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}", + urlParameters: [ + subscriptionId, + resourceGroupName, + name + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: "controllerUpdateParameters", + mapper: __assign({}, ControllerUpdateParameters, { required: true }) + }, + responses: { + 200: { + bodyMapper: Controller + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer$1 + }; + var listByResourceGroupOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers", + urlParameters: [ + subscriptionId, + resourceGroupName + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: ControllerList + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer$1 + }; + var listOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DevSpaces/controllers", + urlParameters: [ + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: ControllerList + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer$1 + }; + var listConnectionDetailsOperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}/listConnectionDetails", + urlParameters: [ + subscriptionId, + resourceGroupName, + name + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: ControllerConnectionDetailsList + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer$1 + }; + var beginCreateOperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}", + urlParameters: [ + subscriptionId, + resourceGroupName, + name + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: "controller", + mapper: __assign({}, Controller, { required: true }) + }, + responses: { + 200: { + bodyMapper: Controller + }, + 201: { + bodyMapper: Controller + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer$1 + }; + var beginDeleteMethodOperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}", + urlParameters: [ + subscriptionId, + resourceGroupName, + name + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer$1 + }; + var listByResourceGroupNextOperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + nextPageLink + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: ControllerList + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer$1 + }; + var listNextOperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + nextPageLink + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: ControllerList + }, + default: { + bodyMapper: ErrorResponse + } + }, + 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({ + discriminators: discriminators, + ResourceProviderOperationList: ResourceProviderOperationList, + ResourceProviderOperationDefinition: ResourceProviderOperationDefinition, + ResourceProviderOperationDisplay: ResourceProviderOperationDisplay, + 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 {DevSpacesManagementClientContext} 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$1, callback); + }; + Operations.prototype.listNext = function (nextPageLink$$1, options, callback) { + return this.client.sendOperationRequest({ + nextPageLink: nextPageLink$$1, + options: options + }, listNextOperationSpec$1, callback); + }; + return Operations; + }()); + // Operation Specifications + var serializer$2 = new msRest.Serializer(Mappers$2); + var listOperationSpec$1 = { + httpMethod: "GET", + path: "providers/Microsoft.DevSpaces/operations", + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: ResourceProviderOperationList + }, + default: { + bodyMapper: CloudError + } + }, + serializer: serializer$2 + }; + var listNextOperationSpec$1 = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + nextPageLink + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: ResourceProviderOperationList + }, + 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. + */ + + /* + * 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-devspaces"; + var packageVersion = "1.0.0-preview"; + var DevSpacesManagementClientContext = /** @class */ (function (_super) { + __extends(DevSpacesManagementClientContext, _super); + /** + * Initializes a new instance of the DevSpacesManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Azure subscription ID. + * @param [options] The parameter options + */ + function DevSpacesManagementClientContext(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 = '2018-06-01-preview'; + _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 DevSpacesManagementClientContext; + }(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 DevSpacesManagementClient = /** @class */ (function (_super) { + __extends(DevSpacesManagementClient, _super); + /** + * Initializes a new instance of the DevSpacesManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Azure subscription ID. + * @param [options] The parameter options + */ + function DevSpacesManagementClient(credentials, subscriptionId, options) { + var _this = _super.call(this, credentials, subscriptionId, options) || this; + _this.containerHostMappings = new ContainerHostMappings(_this); + _this.controllers = new Controllers(_this); + _this.operations = new Operations(_this); + return _this; + } + return DevSpacesManagementClient; + }(DevSpacesManagementClientContext)); + + exports.DevSpacesManagementClient = DevSpacesManagementClient; + exports.DevSpacesManagementClientContext = DevSpacesManagementClientContext; + exports.DevSpacesManagementModels = index; + exports.DevSpacesManagementMappers = mappers; + exports.ContainerHostMappings = ContainerHostMappings; + exports.Controllers = Controllers; + exports.Operations = Operations; + + Object.defineProperty(exports, '__esModule', { value: true }); + +}))); +//# sourceMappingURL=arm-devspaces.js.map diff --git a/packages/@azure/arm-devspaces/dist/arm-devspaces.js.map b/packages/@azure/arm-devspaces/dist/arm-devspaces.js.map new file mode 100644 index 000000000000..9b1848d21aa9 --- /dev/null +++ b/packages/@azure/arm-devspaces/dist/arm-devspaces.js.map @@ -0,0 +1 @@ +{"version":3,"file":"arm-devspaces.js","sources":["../node_modules/tslib/tslib.es6.js","../esm/models/index.js","../esm/models/mappers.js","../esm/models/containerHostMappingsMappers.js","../esm/models/parameters.js","../esm/operations/containerHostMappings.js","../esm/models/controllersMappers.js","../esm/operations/controllers.js","../esm/models/operationsMappers.js","../esm/operations/operations.js","../esm/operations/index.js","../esm/devSpacesManagementClientContext.js","../esm/devSpacesManagementClient.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 ProvisioningState.\r\n * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Updating',\r\n * 'Creating', 'Deleting', 'Deleted'\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[\"Succeeded\"] = \"Succeeded\";\r\n ProvisioningState[\"Failed\"] = \"Failed\";\r\n ProvisioningState[\"Canceled\"] = \"Canceled\";\r\n ProvisioningState[\"Updating\"] = \"Updating\";\r\n ProvisioningState[\"Creating\"] = \"Creating\";\r\n ProvisioningState[\"Deleting\"] = \"Deleting\";\r\n ProvisioningState[\"Deleted\"] = \"Deleted\";\r\n})(ProvisioningState || (ProvisioningState = {}));\r\n/**\r\n * Defines values for SkuTier.\r\n * Possible values include: 'Standard'\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: SkuTier = \"someUnknownValueThatWillStillBeValid\";\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var SkuTier;\r\n(function (SkuTier) {\r\n SkuTier[\"Standard\"] = \"Standard\";\r\n})(SkuTier || (SkuTier = {}));\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 { CloudErrorMapper, BaseResourceMapper } from \"ms-rest-azure-js\";\r\nexport var CloudError = CloudErrorMapper;\r\nexport var BaseResource = BaseResourceMapper;\r\nexport var ContainerHostMapping = {\r\n serializedName: \"ContainerHostMapping\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ContainerHostMapping\",\r\n modelProperties: {\r\n containerHostResourceId: {\r\n serializedName: \"containerHostResourceId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n mappedControllerResourceId: {\r\n readOnly: true,\r\n serializedName: \"mappedControllerResourceId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ControllerProperties = {\r\n serializedName: \"ControllerProperties\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ControllerProperties\",\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 hostSuffix: {\r\n required: true,\r\n serializedName: \"hostSuffix\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n dataPlaneFqdn: {\r\n readOnly: true,\r\n serializedName: \"dataPlaneFqdn\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n targetContainerHostResourceId: {\r\n required: true,\r\n serializedName: \"targetContainerHostResourceId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n targetContainerHostCredentialsBase64: {\r\n required: true,\r\n serializedName: \"targetContainerHostCredentialsBase64\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\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 isConstant: true,\r\n serializedName: \"name\",\r\n defaultValue: 'S1',\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n tier: {\r\n serializedName: \"tier\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var Resource = {\r\n serializedName: \"Resource\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Resource\",\r\n modelProperties: {\r\n id: {\r\n readOnly: true,\r\n serializedName: \"id\",\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 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 TrackedResource = {\r\n serializedName: \"TrackedResource\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"TrackedResource\",\r\n modelProperties: tslib_1.__assign({}, Resource.type.modelProperties, { 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 }, location: {\r\n serializedName: \"location\",\r\n type: {\r\n name: \"String\"\r\n }\r\n } })\r\n }\r\n};\r\nexport var Controller = {\r\n serializedName: \"Controller\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Controller\",\r\n modelProperties: tslib_1.__assign({}, TrackedResource.type.modelProperties, { provisioningState: {\r\n readOnly: true,\r\n serializedName: \"properties.provisioningState\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }, hostSuffix: {\r\n required: true,\r\n serializedName: \"properties.hostSuffix\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }, dataPlaneFqdn: {\r\n readOnly: true,\r\n serializedName: \"properties.dataPlaneFqdn\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }, targetContainerHostResourceId: {\r\n required: true,\r\n serializedName: \"properties.targetContainerHostResourceId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }, targetContainerHostCredentialsBase64: {\r\n required: true,\r\n serializedName: \"properties.targetContainerHostCredentialsBase64\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }, sku: {\r\n required: true,\r\n serializedName: \"sku\",\r\n defaultValue: {},\r\n type: {\r\n name: \"Composite\",\r\n className: \"Sku\"\r\n }\r\n } })\r\n }\r\n};\r\nexport var ControllerUpdateParameters = {\r\n serializedName: \"ControllerUpdateParameters\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ControllerUpdateParameters\",\r\n modelProperties: {\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 OrchestratorSpecificConnectionDetails = {\r\n serializedName: \"OrchestratorSpecificConnectionDetails\",\r\n type: {\r\n name: \"Composite\",\r\n polymorphicDiscriminator: {\r\n serializedName: \"instanceType\",\r\n clientName: \"instanceType\"\r\n },\r\n uberParent: \"OrchestratorSpecificConnectionDetails\",\r\n className: \"OrchestratorSpecificConnectionDetails\",\r\n modelProperties: {\r\n instanceType: {\r\n required: true,\r\n serializedName: \"instanceType\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ControllerConnectionDetails = {\r\n serializedName: \"ControllerConnectionDetails\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ControllerConnectionDetails\",\r\n modelProperties: {\r\n authKey: {\r\n readOnly: true,\r\n serializedName: \"authKey\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n workspaceStorageAccountName: {\r\n readOnly: true,\r\n serializedName: \"workspaceStorageAccountName\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n workspaceStorageSasToken: {\r\n readOnly: true,\r\n serializedName: \"workspaceStorageSasToken\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n orchestratorSpecificConnectionDetails: {\r\n serializedName: \"orchestratorSpecificConnectionDetails\",\r\n type: {\r\n name: \"Composite\",\r\n polymorphicDiscriminator: {\r\n serializedName: \"instanceType\",\r\n clientName: \"instanceType\"\r\n },\r\n uberParent: \"OrchestratorSpecificConnectionDetails\",\r\n className: \"OrchestratorSpecificConnectionDetails\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ControllerConnectionDetailsList = {\r\n serializedName: \"ControllerConnectionDetailsList\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ControllerConnectionDetailsList\",\r\n modelProperties: {\r\n connectionDetailsList: {\r\n serializedName: \"connectionDetailsList\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"ControllerConnectionDetails\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ResourceProviderOperationDisplay = {\r\n serializedName: \"ResourceProviderOperationDisplay\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ResourceProviderOperationDisplay\",\r\n modelProperties: {\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 operation: {\r\n serializedName: \"operation\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n description: {\r\n serializedName: \"description\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ResourceProviderOperationDefinition = {\r\n serializedName: \"ResourceProviderOperationDefinition\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ResourceProviderOperationDefinition\",\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: \"ResourceProviderOperationDisplay\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var KubernetesConnectionDetails = {\r\n serializedName: \"Kubernetes\",\r\n type: {\r\n name: \"Composite\",\r\n polymorphicDiscriminator: OrchestratorSpecificConnectionDetails.type.polymorphicDiscriminator,\r\n uberParent: \"OrchestratorSpecificConnectionDetails\",\r\n className: \"KubernetesConnectionDetails\",\r\n modelProperties: tslib_1.__assign({}, OrchestratorSpecificConnectionDetails.type.modelProperties, { kubeConfig: {\r\n serializedName: \"kubeConfig\",\r\n type: {\r\n name: \"String\"\r\n }\r\n } })\r\n }\r\n};\r\nexport var ErrorDetails = {\r\n serializedName: \"ErrorDetails\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorDetails\",\r\n modelProperties: {\r\n code: {\r\n readOnly: true,\r\n serializedName: \"code\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n message: {\r\n readOnly: true,\r\n serializedName: \"message\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n target: {\r\n readOnly: true,\r\n serializedName: \"target\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ErrorResponse = {\r\n serializedName: \"ErrorResponse\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorResponse\",\r\n modelProperties: {\r\n error: {\r\n serializedName: \"error\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorDetails\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ControllerList = {\r\n serializedName: \"ControllerList\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ControllerList\",\r\n modelProperties: {\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: \"Controller\"\r\n }\r\n }\r\n }\r\n },\r\n nextLink: {\r\n readOnly: true,\r\n serializedName: \"nextLink\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ResourceProviderOperationList = {\r\n serializedName: \"ResourceProviderOperationList\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ResourceProviderOperationList\",\r\n modelProperties: {\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: \"ResourceProviderOperationDefinition\"\r\n }\r\n }\r\n }\r\n },\r\n nextLink: {\r\n readOnly: true,\r\n serializedName: \"nextLink\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var discriminators = {\r\n 'OrchestratorSpecificConnectionDetails': OrchestratorSpecificConnectionDetails,\r\n 'OrchestratorSpecificConnectionDetails.Kubernetes': KubernetesConnectionDetails\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 { discriminators, ContainerHostMapping, CloudError } from \"../models/mappers\";\r\n//# sourceMappingURL=containerHostMappingsMappers.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 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 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 name = {\r\n parameterPath: \"name\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"name\",\r\n constraints: {\r\n MaxLength: 31,\r\n MinLength: 3,\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 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 constraints: {\r\n MaxLength: 90,\r\n MinLength: 1\r\n },\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/containerHostMappingsMappers\";\r\nimport * as Parameters from \"../models/parameters\";\r\n/** Class representing a ContainerHostMappings. */\r\nvar ContainerHostMappings = /** @class */ (function () {\r\n /**\r\n * Create a ContainerHostMappings.\r\n * @param {DevSpacesManagementClientContext} client Reference to the service client.\r\n */\r\n function ContainerHostMappings(client) {\r\n this.client = client;\r\n }\r\n ContainerHostMappings.prototype.getContainerHostMapping = function (containerHostMapping, location, options, callback) {\r\n return this.client.sendOperationRequest({\r\n containerHostMapping: containerHostMapping,\r\n location: location,\r\n options: options\r\n }, getContainerHostMappingOperationSpec, callback);\r\n };\r\n return ContainerHostMappings;\r\n}());\r\nexport { ContainerHostMappings };\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar getContainerHostMappingOperationSpec = {\r\n httpMethod: \"POST\",\r\n path: \"providers/Microsoft.DevSpaces/locations/{location}/checkContainerHostMapping\",\r\n urlParameters: [\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: \"containerHostMapping\",\r\n mapper: tslib_1.__assign({}, Mappers.ContainerHostMapping, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: {\r\n serializedName: \"parsedResponse\",\r\n type: {\r\n name: \"Object\"\r\n }\r\n }\r\n },\r\n default: {\r\n bodyMapper: Mappers.CloudError\r\n }\r\n },\r\n serializer: serializer\r\n};\r\n//# sourceMappingURL=containerHostMappings.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 { discriminators, Controller, TrackedResource, Resource, BaseResource, Sku, ErrorResponse, ErrorDetails, ControllerUpdateParameters, ControllerList, ControllerConnectionDetailsList, ControllerConnectionDetails, OrchestratorSpecificConnectionDetails, KubernetesConnectionDetails } from \"../models/mappers\";\r\n//# sourceMappingURL=controllersMappers.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/controllersMappers\";\r\nimport * as Parameters from \"../models/parameters\";\r\n/** Class representing a Controllers. */\r\nvar Controllers = /** @class */ (function () {\r\n /**\r\n * Create a Controllers.\r\n * @param {DevSpacesManagementClientContext} client Reference to the service client.\r\n */\r\n function Controllers(client) {\r\n this.client = client;\r\n }\r\n Controllers.prototype.get = function (resourceGroupName, name, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n name: name,\r\n options: options\r\n }, getOperationSpec, callback);\r\n };\r\n /**\r\n * Creates an Azure Dev Spaces Controller with the specified create parameters.\r\n * @summary Creates an Azure Dev Spaces Controller.\r\n * @param resourceGroupName Resource group to which the resource belongs.\r\n * @param name Name of the resource.\r\n * @param controller Controller create parameters.\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n Controllers.prototype.create = function (resourceGroupName, name, controller, options) {\r\n return this.beginCreate(resourceGroupName, name, controller, options)\r\n .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });\r\n };\r\n /**\r\n * Deletes an existing Azure Dev Spaces Controller.\r\n * @summary Deletes an Azure Dev Spaces Controller.\r\n * @param resourceGroupName Resource group to which the resource belongs.\r\n * @param name Name of the resource.\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n Controllers.prototype.deleteMethod = function (resourceGroupName, name, options) {\r\n return this.beginDeleteMethod(resourceGroupName, name, options)\r\n .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });\r\n };\r\n Controllers.prototype.update = function (resourceGroupName, name, controllerUpdateParameters, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n name: name,\r\n controllerUpdateParameters: controllerUpdateParameters,\r\n options: options\r\n }, updateOperationSpec, callback);\r\n };\r\n Controllers.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 Controllers.prototype.list = function (options, callback) {\r\n return this.client.sendOperationRequest({\r\n options: options\r\n }, listOperationSpec, callback);\r\n };\r\n Controllers.prototype.listConnectionDetails = function (resourceGroupName, name, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n name: name,\r\n options: options\r\n }, listConnectionDetailsOperationSpec, callback);\r\n };\r\n /**\r\n * Creates an Azure Dev Spaces Controller with the specified create parameters.\r\n * @summary Creates an Azure Dev Spaces Controller.\r\n * @param resourceGroupName Resource group to which the resource belongs.\r\n * @param name Name of the resource.\r\n * @param controller Controller create parameters.\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n Controllers.prototype.beginCreate = function (resourceGroupName, name, controller, options) {\r\n return this.client.sendLRORequest({\r\n resourceGroupName: resourceGroupName,\r\n name: name,\r\n controller: controller,\r\n options: options\r\n }, beginCreateOperationSpec, options);\r\n };\r\n /**\r\n * Deletes an existing Azure Dev Spaces Controller.\r\n * @summary Deletes an Azure Dev Spaces Controller.\r\n * @param resourceGroupName Resource group to which the resource belongs.\r\n * @param name Name of the resource.\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n Controllers.prototype.beginDeleteMethod = function (resourceGroupName, name, options) {\r\n return this.client.sendLRORequest({\r\n resourceGroupName: resourceGroupName,\r\n name: name,\r\n options: options\r\n }, beginDeleteMethodOperationSpec, options);\r\n };\r\n Controllers.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 Controllers.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 Controllers;\r\n}());\r\nexport { Controllers };\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar getOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.name\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.Controller\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\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.DevSpaces/controllers/{name}\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.name\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: \"controllerUpdateParameters\",\r\n mapper: tslib_1.__assign({}, Mappers.ControllerUpdateParameters, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.Controller\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\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.DevSpaces/controllers\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName\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.ControllerList\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/providers/Microsoft.DevSpaces/controllers\",\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.ControllerList\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listConnectionDetailsOperationSpec = {\r\n httpMethod: \"POST\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}/listConnectionDetails\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.name\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.ControllerConnectionDetailsList\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar beginCreateOperationSpec = {\r\n httpMethod: \"PUT\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.name\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: \"controller\",\r\n mapper: tslib_1.__assign({}, Mappers.Controller, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.Controller\r\n },\r\n 201: {\r\n bodyMapper: Mappers.Controller\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar beginDeleteMethodOperationSpec = {\r\n httpMethod: \"DELETE\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.name\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 202: {},\r\n 204: {},\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\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.ControllerList\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\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.ControllerList\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\n//# sourceMappingURL=controllers.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 { discriminators, ResourceProviderOperationList, ResourceProviderOperationDefinition, ResourceProviderOperationDisplay, 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 {DevSpacesManagementClientContext} 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.DevSpaces/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.ResourceProviderOperationList\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.ResourceProviderOperationList\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 * from \"./containerHostMappings\";\r\nexport * from \"./controllers\";\r\nexport * from \"./operations\";\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-devspaces\";\r\nvar packageVersion = \"1.0.0-preview\";\r\nvar DevSpacesManagementClientContext = /** @class */ (function (_super) {\r\n tslib_1.__extends(DevSpacesManagementClientContext, _super);\r\n /**\r\n * Initializes a new instance of the DevSpacesManagementClient 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 DevSpacesManagementClientContext(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 = '2018-06-01-preview';\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 DevSpacesManagementClientContext;\r\n}(msRestAzure.AzureServiceClient));\r\nexport { DevSpacesManagementClientContext };\r\n//# sourceMappingURL=devSpacesManagementClientContext.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 { DevSpacesManagementClientContext } from \"./devSpacesManagementClientContext\";\r\nvar DevSpacesManagementClient = /** @class */ (function (_super) {\r\n tslib_1.__extends(DevSpacesManagementClient, _super);\r\n /**\r\n * Initializes a new instance of the DevSpacesManagementClient 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 DevSpacesManagementClient(credentials, subscriptionId, options) {\r\n var _this = _super.call(this, credentials, subscriptionId, options) || this;\r\n _this.containerHostMappings = new operations.ContainerHostMappings(_this);\r\n _this.controllers = new operations.Controllers(_this);\r\n _this.operations = new operations.Operations(_this);\r\n return _this;\r\n }\r\n return DevSpacesManagementClient;\r\n}(DevSpacesManagementClientContext));\r\n// Operation Specifications\r\nexport { DevSpacesManagementClient, DevSpacesManagementClientContext, Models as DevSpacesManagementModels, Mappers as DevSpacesManagementMappers };\r\nexport * from \"./operations\";\r\n//# sourceMappingURL=devSpacesManagementClient.js.map"],"names":["CloudErrorMapper","BaseResourceMapper","tslib_1.__assign","location","msRest.Serializer","Parameters.location","Parameters.apiVersion","Parameters.acceptLanguage","Mappers.ContainerHostMapping","Mappers.CloudError","resourceGroupName","name","nextPageLink","serializer","Mappers","Parameters.subscriptionId","Parameters.resourceGroupName","Parameters.name","Mappers.Controller","Mappers.ErrorResponse","Mappers.ControllerUpdateParameters","Mappers.ControllerList","Mappers.ControllerConnectionDetailsList","Parameters.nextPageLink","listOperationSpec","listNextOperationSpec","Mappers.ResourceProviderOperationList","tslib_1.__extends","msRestAzure.AzureServiceClient","operations.ContainerHostMappings","operations.Controllers","operations.Operations"],"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,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AAK,CAAC,CAAC;IAC5D,QAAQ,OAAO,KAAK,CAAC;IACrB,KAAK;IACL,IAAI,OAAO,yBAAyB,CAAC;IACrC,CAAC,CAAC,gCAAgC,CAAC,CAAC;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/packages/@azure/arm-devspaces/dist/arm-devspaces.min.js b/packages/@azure/arm-devspaces/dist/arm-devspaces.min.js new file mode 100644 index 000000000000..cbf643856e92 --- /dev/null +++ b/packages/@azure/arm-devspaces/dist/arm-devspaces.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.ArmDevspaces={}),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 n(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,o,s,p=function(){return(p=Object.assign||function(e){for(var r,t=1,a=arguments.length;t + */ +export interface ControllerList extends Array { + /** + * @member {string} [nextLink] The URI that can be used to request the next + * page for list of Azure Dev Spaces Controllers. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ResourceProviderOperationList. + * @extends Array + */ +export interface ResourceProviderOperationList extends Array { + /** + * @member {string} [nextLink] The URI that can be used to request the next + * page for list of Azure operations. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Updating', + * 'Creating', 'Deleting', 'Deleted' + * 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 { + Succeeded = 'Succeeded', + Failed = 'Failed', + Canceled = 'Canceled', + Updating = 'Updating', + Creating = 'Creating', + Deleting = 'Deleting', + Deleted = 'Deleted', +} + +/** + * Defines values for SkuTier. + * Possible values include: 'Standard' + * 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: SkuTier = "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum SkuTier { + Standard = 'Standard', +} + +/** + * Contains response data for the getContainerHostMapping operation. + */ +export type ContainerHostMappingsGetContainerHostMappingResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * 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: any; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ControllersGetResponse = Controller & { + /** + * 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: Controller; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type ControllersCreateResponse = Controller & { + /** + * 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: Controller; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ControllersUpdateResponse = Controller & { + /** + * 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: Controller; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type ControllersListByResourceGroupResponse = ControllerList & { + /** + * 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: ControllerList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ControllersListResponse = ControllerList & { + /** + * 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: ControllerList; + }; +}; + +/** + * Contains response data for the listConnectionDetails operation. + */ +export type ControllersListConnectionDetailsResponse = ControllerConnectionDetailsList & { + /** + * 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: ControllerConnectionDetailsList; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type ControllersBeginCreateResponse = Controller & { + /** + * 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: Controller; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type ControllersListByResourceGroupNextResponse = ControllerList & { + /** + * 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: ControllerList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ControllersListNextResponse = ControllerList & { + /** + * 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: ControllerList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = ResourceProviderOperationList & { + /** + * 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: ResourceProviderOperationList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = ResourceProviderOperationList & { + /** + * 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: ResourceProviderOperationList; + }; +}; diff --git a/packages/@azure/arm-devspaces/lib/models/mappers.ts b/packages/@azure/arm-devspaces/lib/models/mappers.ts new file mode 100644 index 000000000000..67902ecbc6d3 --- /dev/null +++ b/packages/@azure/arm-devspaces/lib/models/mappers.ts @@ -0,0 +1,517 @@ +/* + * 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 ContainerHostMapping: msRest.CompositeMapper = { + serializedName: "ContainerHostMapping", + type: { + name: "Composite", + className: "ContainerHostMapping", + modelProperties: { + containerHostResourceId: { + serializedName: "containerHostResourceId", + type: { + name: "String" + } + }, + mappedControllerResourceId: { + readOnly: true, + serializedName: "mappedControllerResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const ControllerProperties: msRest.CompositeMapper = { + serializedName: "ControllerProperties", + type: { + name: "Composite", + className: "ControllerProperties", + modelProperties: { + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + hostSuffix: { + required: true, + serializedName: "hostSuffix", + type: { + name: "String" + } + }, + dataPlaneFqdn: { + readOnly: true, + serializedName: "dataPlaneFqdn", + type: { + name: "String" + } + }, + targetContainerHostResourceId: { + required: true, + serializedName: "targetContainerHostResourceId", + type: { + name: "String" + } + }, + targetContainerHostCredentialsBase64: { + required: true, + serializedName: "targetContainerHostCredentialsBase64", + type: { + name: "String" + } + } + } + } +}; + +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + isConstant: true, + serializedName: "name", + defaultValue: 'S1', + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const Controller: msRest.CompositeMapper = { + serializedName: "Controller", + type: { + name: "Composite", + className: "Controller", + modelProperties: { + ...TrackedResource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + hostSuffix: { + required: true, + serializedName: "properties.hostSuffix", + type: { + name: "String" + } + }, + dataPlaneFqdn: { + readOnly: true, + serializedName: "properties.dataPlaneFqdn", + type: { + name: "String" + } + }, + targetContainerHostResourceId: { + required: true, + serializedName: "properties.targetContainerHostResourceId", + type: { + name: "String" + } + }, + targetContainerHostCredentialsBase64: { + required: true, + serializedName: "properties.targetContainerHostCredentialsBase64", + type: { + name: "String" + } + }, + sku: { + required: true, + serializedName: "sku", + defaultValue: {}, + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const ControllerUpdateParameters: msRest.CompositeMapper = { + serializedName: "ControllerUpdateParameters", + type: { + name: "Composite", + className: "ControllerUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const OrchestratorSpecificConnectionDetails: msRest.CompositeMapper = { + serializedName: "OrchestratorSpecificConnectionDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "OrchestratorSpecificConnectionDetails", + className: "OrchestratorSpecificConnectionDetails", + modelProperties: { + instanceType: { + required: true, + serializedName: "instanceType", + type: { + name: "String" + } + } + } + } +}; + +export const ControllerConnectionDetails: msRest.CompositeMapper = { + serializedName: "ControllerConnectionDetails", + type: { + name: "Composite", + className: "ControllerConnectionDetails", + modelProperties: { + authKey: { + readOnly: true, + serializedName: "authKey", + type: { + name: "String" + } + }, + workspaceStorageAccountName: { + readOnly: true, + serializedName: "workspaceStorageAccountName", + type: { + name: "String" + } + }, + workspaceStorageSasToken: { + readOnly: true, + serializedName: "workspaceStorageSasToken", + type: { + name: "String" + } + }, + orchestratorSpecificConnectionDetails: { + serializedName: "orchestratorSpecificConnectionDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "instanceType", + clientName: "instanceType" + }, + uberParent: "OrchestratorSpecificConnectionDetails", + className: "OrchestratorSpecificConnectionDetails" + } + } + } + } +}; + +export const ControllerConnectionDetailsList: msRest.CompositeMapper = { + serializedName: "ControllerConnectionDetailsList", + type: { + name: "Composite", + className: "ControllerConnectionDetailsList", + modelProperties: { + connectionDetailsList: { + serializedName: "connectionDetailsList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ControllerConnectionDetails" + } + } + } + } + } + } +}; + +export const ResourceProviderOperationDisplay: msRest.CompositeMapper = { + serializedName: "ResourceProviderOperationDisplay", + type: { + name: "Composite", + className: "ResourceProviderOperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceProviderOperationDefinition: msRest.CompositeMapper = { + serializedName: "ResourceProviderOperationDefinition", + type: { + name: "Composite", + className: "ResourceProviderOperationDefinition", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "ResourceProviderOperationDisplay" + } + } + } + } +}; + +export const KubernetesConnectionDetails: msRest.CompositeMapper = { + serializedName: "Kubernetes", + type: { + name: "Composite", + polymorphicDiscriminator: OrchestratorSpecificConnectionDetails.type.polymorphicDiscriminator, + uberParent: "OrchestratorSpecificConnectionDetails", + className: "KubernetesConnectionDetails", + modelProperties: { + ...OrchestratorSpecificConnectionDetails.type.modelProperties, + kubeConfig: { + serializedName: "kubeConfig", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorDetails: msRest.CompositeMapper = { + serializedName: "ErrorDetails", + type: { + name: "Composite", + className: "ErrorDetails", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetails" + } + } + } + } +}; + +export const ControllerList: msRest.CompositeMapper = { + serializedName: "ControllerList", + type: { + name: "Composite", + className: "ControllerList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Controller" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceProviderOperationList: msRest.CompositeMapper = { + serializedName: "ResourceProviderOperationList", + type: { + name: "Composite", + className: "ResourceProviderOperationList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceProviderOperationDefinition" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const discriminators = { + 'OrchestratorSpecificConnectionDetails' : OrchestratorSpecificConnectionDetails, + 'OrchestratorSpecificConnectionDetails.Kubernetes' : KubernetesConnectionDetails +}; diff --git a/packages/@azure/arm-devspaces/lib/models/operationsMappers.ts b/packages/@azure/arm-devspaces/lib/models/operationsMappers.ts new file mode 100644 index 000000000000..6cfbbc1c921b --- /dev/null +++ b/packages/@azure/arm-devspaces/lib/models/operationsMappers.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 { + discriminators, + ResourceProviderOperationList, + ResourceProviderOperationDefinition, + ResourceProviderOperationDisplay, + CloudError +} from "../models/mappers"; + diff --git a/packages/@azure/arm-devspaces/lib/models/parameters.ts b/packages/@azure/arm-devspaces/lib/models/parameters.ts new file mode 100644 index 000000000000..914762199427 --- /dev/null +++ b/packages/@azure/arm-devspaces/lib/models/parameters.ts @@ -0,0 +1,92 @@ +/* + * 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 apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; +export const location: msRest.OperationURLParameter = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } +}; +export const name: msRest.OperationURLParameter = { + parameterPath: "name", + mapper: { + required: true, + serializedName: "name", + constraints: { + MaxLength: 31, + MinLength: 3, + Pattern: /^[a-zA-Z0-9](-?[a-zA-Z0-9])*$/ + }, + 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", + constraints: { + MaxLength: 90, + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; diff --git a/packages/@azure/arm-devspaces/lib/operations/containerHostMappings.ts b/packages/@azure/arm-devspaces/lib/operations/containerHostMappings.ts new file mode 100644 index 000000000000..e5644f70809b --- /dev/null +++ b/packages/@azure/arm-devspaces/lib/operations/containerHostMappings.ts @@ -0,0 +1,98 @@ +/* + * 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/containerHostMappingsMappers"; +import * as Parameters from "../models/parameters"; +import { DevSpacesManagementClientContext } from "../devSpacesManagementClientContext"; + +/** Class representing a ContainerHostMappings. */ +export class ContainerHostMappings { + private readonly client: DevSpacesManagementClientContext; + + /** + * Create a ContainerHostMappings. + * @param {DevSpacesManagementClientContext} client Reference to the service client. + */ + constructor(client: DevSpacesManagementClientContext) { + this.client = client; + } + + /** + * @summary Returns container host mapping object for a container host resource ID if an associated + * controller exists. + * @param containerHostMapping + * @param location Location of the container host. + * @param [options] The optional parameters + * @returns Promise + */ + getContainerHostMapping(containerHostMapping: Models.ContainerHostMapping, location: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param containerHostMapping + * @param location Location of the container host. + * @param callback The callback + */ + getContainerHostMapping(containerHostMapping: Models.ContainerHostMapping, location: string, callback: msRest.ServiceCallback): void; + /** + * @param containerHostMapping + * @param location Location of the container host. + * @param options The optional parameters + * @param callback The callback + */ + getContainerHostMapping(containerHostMapping: Models.ContainerHostMapping, location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getContainerHostMapping(containerHostMapping: Models.ContainerHostMapping, location: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + containerHostMapping, + location, + options + }, + getContainerHostMappingOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getContainerHostMappingOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "providers/Microsoft.DevSpaces/locations/{location}/checkContainerHostMapping", + urlParameters: [ + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "containerHostMapping", + mapper: { + ...Mappers.ContainerHostMapping, + required: true + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Object" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-devspaces/lib/operations/controllers.ts b/packages/@azure/arm-devspaces/lib/operations/controllers.ts new file mode 100644 index 000000000000..d5dd1c2b9402 --- /dev/null +++ b/packages/@azure/arm-devspaces/lib/operations/controllers.ts @@ -0,0 +1,548 @@ +/* + * 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 msRestAzure from "ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/controllersMappers"; +import * as Parameters from "../models/parameters"; +import { DevSpacesManagementClientContext } from "../devSpacesManagementClientContext"; + +/** Class representing a Controllers. */ +export class Controllers { + private readonly client: DevSpacesManagementClientContext; + + /** + * Create a Controllers. + * @param {DevSpacesManagementClientContext} client Reference to the service client. + */ + constructor(client: DevSpacesManagementClientContext) { + this.client = client; + } + + /** + * Gets the properties for an Azure Dev Spaces Controller. + * @summary Gets an Azure Dev Spaces Controller. + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param callback The callback + */ + get(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates an Azure Dev Spaces Controller with the specified create parameters. + * @summary Creates an Azure Dev Spaces Controller. + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param controller Controller create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, name: string, controller: Models.Controller, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,name,controller,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes an existing Azure Dev Spaces Controller. + * @summary Deletes an Azure Dev Spaces Controller. + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,name,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Updates the properties of an existing Azure Dev Spaces Controller with the specified update + * parameters. + * @summary Updates an Azure Dev Spaces Controller. + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param controllerUpdateParameters Parameters for updating the Azure Dev Spaces Controller. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, name: string, controllerUpdateParameters: Models.ControllerUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param controllerUpdateParameters Parameters for updating the Azure Dev Spaces Controller. + * @param callback The callback + */ + update(resourceGroupName: string, name: string, controllerUpdateParameters: Models.ControllerUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param controllerUpdateParameters Parameters for updating the Azure Dev Spaces Controller. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, name: string, controllerUpdateParameters: Models.ControllerUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, name: string, controllerUpdateParameters: Models.ControllerUpdateParameters, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + controllerUpdateParameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group + * and subscription. + * @summary Lists the Azure Dev Spaces Controllers in a resource group. + * @param resourceGroupName Resource group to which the resource belongs. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Resource group to which the resource belongs. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Resource group to which the resource belongs. + * @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; + } + + /** + * Lists all the Azure Dev Spaces Controllers with their properties in the subscription. + * @summary Lists the Azure Dev Spaces Controllers in 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 connection details for the underlying container resources of an Azure Dev Spaces + * Controller. + * @summary Lists connection details for an Azure Dev Spaces Controller. + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + listConnectionDetails(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param callback The callback + */ + listConnectionDetails(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param options The optional parameters + * @param callback The callback + */ + listConnectionDetails(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConnectionDetails(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + listConnectionDetailsOperationSpec, + callback) as Promise; + } + + /** + * Creates an Azure Dev Spaces Controller with the specified create parameters. + * @summary Creates an Azure Dev Spaces Controller. + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param controller Controller create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, name: string, controller: Models.Controller, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + controller, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Deletes an existing Azure Dev Spaces Controller. + * @summary Deletes an Azure Dev Spaces Controller. + * @param resourceGroupName Resource group to which the resource belongs. + * @param name Name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + name, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group + * and subscription. + * @summary Lists the Azure Dev Spaces Controllers in 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; + } + + /** + * Lists all the Azure Dev Spaces Controllers with their properties in the subscription. + * @summary Lists the Azure Dev Spaces Controllers in 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 getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Controller + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "controllerUpdateParameters", + mapper: { + ...Mappers.ControllerUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Controller + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ControllerList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DevSpaces/controllers", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ControllerList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listConnectionDetailsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}/listConnectionDetails", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ControllerConnectionDetailsList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "controller", + mapper: { + ...Mappers.Controller, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Controller + }, + 201: { + bodyMapper: Mappers.Controller + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ControllerList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ControllerList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-devspaces/lib/operations/index.ts b/packages/@azure/arm-devspaces/lib/operations/index.ts new file mode 100644 index 000000000000..83e428cb6fcc --- /dev/null +++ b/packages/@azure/arm-devspaces/lib/operations/index.ts @@ -0,0 +1,13 @@ +/* + * 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 "./containerHostMappings"; +export * from "./controllers"; +export * from "./operations"; diff --git a/packages/@azure/arm-devspaces/lib/operations/operations.ts b/packages/@azure/arm-devspaces/lib/operations/operations.ts new file mode 100644 index 000000000000..3d2bf4d31682 --- /dev/null +++ b/packages/@azure/arm-devspaces/lib/operations/operations.ts @@ -0,0 +1,127 @@ +/* + * 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 { DevSpacesManagementClientContext } from "../devSpacesManagementClientContext"; + +/** Class representing a Operations. */ +export class Operations { + private readonly client: DevSpacesManagementClientContext; + + /** + * Create a Operations. + * @param {DevSpacesManagementClientContext} client Reference to the service client. + */ + constructor(client: DevSpacesManagementClientContext) { + this.client = client; + } + + /** + * Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their + * description. + * @summary Lists operations for the resource provider. + * @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 supported operations by the Microsoft.DevSpaces resource provider along with their + * description. + * @summary Lists operations for the resource provider. + * @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.DevSpaces/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceProviderOperationList + }, + 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.ResourceProviderOperationList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-devspaces/package.json b/packages/@azure/arm-devspaces/package.json new file mode 100644 index 000000000000..42c06214cfda --- /dev/null +++ b/packages/@azure/arm-devspaces/package.json @@ -0,0 +1,42 @@ +{ + "name": "@azure/arm-devspaces", + "author": "Microsoft Corporation", + "description": "DevSpacesManagementClient Library with typescript type definitions for node.js and browser.", + "version": "1.0.0-preview", + "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-devspaces.js", + "module": "./esm/devSpacesManagementClient.js", + "types": "./esm/devSpacesManagementClient.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-devspaces.js.map'\" -o ./dist/arm-devspaces.min.js ./dist/arm-devspaces.js", + "prepare": "npm run build" + }, + "sideEffects": false +} diff --git a/packages/@azure/arm-devspaces/rollup.config.js b/packages/@azure/arm-devspaces/rollup.config.js new file mode 100644 index 000000000000..49277d62924c --- /dev/null +++ b/packages/@azure/arm-devspaces/rollup.config.js @@ -0,0 +1,31 @@ +import nodeResolve from "rollup-plugin-node-resolve"; +/** + * @type {import('rollup').RollupFileOptions} + */ +const config = { + input: './esm/devSpacesManagementClient.js', + external: ["ms-rest-js", "ms-rest-azure-js"], + output: { + file: "./dist/arm-devspaces.js", + format: "umd", + name: "Azure.ArmDevspaces", + 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-devspaces/tsconfig.json b/packages/@azure/arm-devspaces/tsconfig.json new file mode 100644 index 000000000000..f32d1664f320 --- /dev/null +++ b/packages/@azure/arm-devspaces/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"] +}