diff --git a/sdk/devspaces/arm-devspaces/LICENSE.txt b/sdk/devspaces/arm-devspaces/LICENSE.txt index a70e8cf66038..ea8fb1516028 100644 --- a/sdk/devspaces/arm-devspaces/LICENSE.txt +++ b/sdk/devspaces/arm-devspaces/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2020 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 diff --git a/sdk/devspaces/arm-devspaces/README.md b/sdk/devspaces/arm-devspaces/README.md index 5f5f691cba70..8874b4780ae5 100644 --- a/sdk/devspaces/arm-devspaces/README.md +++ b/sdk/devspaces/arm-devspaces/README.md @@ -9,23 +9,24 @@ This package contains an isomorphic SDK for DevSpacesManagementClient. ### How to Install -``` +```bash npm install @azure/arm-devspaces ``` ### How to use -#### nodejs - Authentication, client creation and get controllers as an example written in TypeScript. +#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth -``` -npm install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -34,9 +35,7 @@ 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) => { + client.operations.list().then((result) => { console.log("The result is:"); console.log(result); }); @@ -45,11 +44,11 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and get controllers as an example written in JavaScript. +#### browser - Authentication, client creation and list operations as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -79,9 +78,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to authManager.login(); } const client = new Azure.ArmDevspaces.DevSpacesManagementClient(res.creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const name = "testname"; - client.controllers.get(resourceGroupName, name).then((result) => { + client.operations.list().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -99,5 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fdevspaces%2Farm-devspaces%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/devspaces/arm-devspaces/README.png) diff --git a/sdk/devspaces/arm-devspaces/package.json b/sdk/devspaces/arm-devspaces/package.json index 8d5d724734f0..081d126fe846 100644 --- a/sdk/devspaces/arm-devspaces/package.json +++ b/sdk/devspaces/arm-devspaces/package.json @@ -4,9 +4,9 @@ "description": "DevSpacesManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,18 +20,19 @@ "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" + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/devspaces/arm-devspaces", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/devspaces/arm-devspaces", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/devspaces/arm-devspaces/rollup.config.js b/sdk/devspaces/arm-devspaces/rollup.config.js index 895e39184316..df7c16933d23 100644 --- a/sdk/devspaces/arm-devspaces/rollup.config.js +++ b/sdk/devspaces/arm-devspaces/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/devSpacesManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/devSpacesManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-devspaces.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/devspaces/arm-devspaces/src/devSpacesManagementClient.ts b/sdk/devspaces/arm-devspaces/src/devSpacesManagementClient.ts index be116e003310..c39ca90cf495 100644 --- a/sdk/devspaces/arm-devspaces/src/devSpacesManagementClient.ts +++ b/sdk/devspaces/arm-devspaces/src/devSpacesManagementClient.ts @@ -18,8 +18,8 @@ import { DevSpacesManagementClientContext } from "./devSpacesManagementClientCon class DevSpacesManagementClient extends DevSpacesManagementClientContext { // Operation groups containerHostMappings: operations.ContainerHostMappings; - controllers: operations.Controllers; operations: operations.Operations; + controllers: operations.Controllers; /** * Initializes a new instance of the DevSpacesManagementClient class. @@ -30,8 +30,8 @@ class DevSpacesManagementClient extends DevSpacesManagementClientContext { constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.DevSpacesManagementClientOptions) { super(credentials, subscriptionId, options); this.containerHostMappings = new operations.ContainerHostMappings(this); - this.controllers = new operations.Controllers(this); this.operations = new operations.Operations(this); + this.controllers = new operations.Controllers(this); } } diff --git a/sdk/devspaces/arm-devspaces/src/devSpacesManagementClientContext.ts b/sdk/devspaces/arm-devspaces/src/devSpacesManagementClientContext.ts index 1369a6260a07..d95c67364ae9 100644 --- a/sdk/devspaces/arm-devspaces/src/devSpacesManagementClientContext.ts +++ b/sdk/devspaces/arm-devspaces/src/devSpacesManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-devspaces"; -const packageVersion = "0.1.0"; +const packageVersion = "1.1.0"; export class DevSpacesManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -44,7 +44,7 @@ export class DevSpacesManagementClientContext extends msRestAzure.AzureServiceCl super(credentials, options); - this.apiVersion = '2018-06-01-preview'; + this.apiVersion = '2019-04-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/devspaces/arm-devspaces/src/models/containerHostMappingsMappers.ts b/sdk/devspaces/arm-devspaces/src/models/containerHostMappingsMappers.ts index 1f786f72af48..a9d9eae70e7b 100644 --- a/sdk/devspaces/arm-devspaces/src/models/containerHostMappingsMappers.ts +++ b/sdk/devspaces/arm-devspaces/src/models/containerHostMappingsMappers.ts @@ -1,16 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, ContainerHostMapping, - CloudError + DevSpacesErrorResponse, + ErrorDetails } from "../models/mappers"; - diff --git a/sdk/devspaces/arm-devspaces/src/models/controllersMappers.ts b/sdk/devspaces/arm-devspaces/src/models/controllersMappers.ts index 61b20f92a7b1..2da1ad12165d 100644 --- a/sdk/devspaces/arm-devspaces/src/models/controllersMappers.ts +++ b/sdk/devspaces/arm-devspaces/src/models/controllersMappers.ts @@ -1,27 +1,25 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - Controller, - TrackedResource, - Resource, BaseResource, - Sku, - ErrorResponse, - ErrorDetails, - ControllerUpdateParameters, - ControllerList, - ControllerConnectionDetailsList, + Controller, ControllerConnectionDetails, + ControllerConnectionDetailsList, + ControllerList, + ControllerUpdateParameters, + DevSpacesErrorResponse, + ErrorDetails, + KubernetesConnectionDetails, + ListConnectionDetailsParameters, OrchestratorSpecificConnectionDetails, - KubernetesConnectionDetails + Resource, + Sku, + TrackedResource } from "../models/mappers"; - diff --git a/sdk/devspaces/arm-devspaces/src/models/index.ts b/sdk/devspaces/arm-devspaces/src/models/index.ts index 00f02d05de56..79d3facb5154 100644 --- a/sdk/devspaces/arm-devspaces/src/models/index.ts +++ b/sdk/devspaces/arm-devspaces/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,143 +11,158 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing ContainerHostMapping. - * Container host mapping object specifying the Container host resource ID and - * its associated Controller resource. - * + * Container host mapping object specifying the Container host resource ID and its associated + * Controller resource. */ export interface ContainerHostMapping { /** - * @member {string} [containerHostResourceId] ARM ID of the Container Host - * resource + * ARM ID of the Container Host resource */ containerHostResourceId?: string; /** - * @member {string} [mappedControllerResourceId] ARM ID of the mapped - * Controller resource - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * ARM ID of the mapped Controller resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly mappedControllerResourceId?: string; } /** - * @interface - * An interface representing Sku. - * Model representing SKU for Azure Dev Spaces Controller. - * - */ -export interface Sku { - /** - * @member {SkuTier} [tier] The tier of the SKU for Azure Dev Spaces - * Controller. Possible values include: 'Standard' - */ - tier?: SkuTier; -} - -/** - * @interface - * An interface representing Resource. * An Azure resource. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Fully qualified resource Id for the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Fully qualified resource Id for the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] The type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing TrackedResource. * The resource model definition for a ARM tracked top level resource. - * - * @extends Resource */ export interface TrackedResource extends Resource { /** - * @member {{ [propertyName: string]: string }} [tags] Tags for the Azure - * resource. + * Tags for the Azure resource. */ tags?: { [propertyName: string]: string }; /** - * @member {string} [location] Region where the Azure resource is located. + * Region where the Azure resource is located. */ location?: string; } /** - * @interface + * An interface representing ResourceProviderOperationDisplay. + */ +export interface ResourceProviderOperationDisplay { + /** + * Name of the resource provider. + */ + provider?: string; + /** + * Name of the resource type. + */ + resource?: string; + /** + * Name of the resource provider operation. + */ + operation?: string; + /** + * Description of the resource provider operation. + */ + description?: string; +} + +/** + * An interface representing ResourceProviderOperationDefinition. + */ +export interface ResourceProviderOperationDefinition { + /** + * Resource provider operation name. + */ + name?: string; + display?: ResourceProviderOperationDisplay; +} + +/** + * Model representing SKU for Azure Dev Spaces Controller. + */ +export interface Sku { + /** + * The tier of the SKU for Azure Dev Spaces Controller. Possible values include: 'Standard' + */ + tier?: SkuTier; +} + +/** * An interface representing Controller. - * @extends TrackedResource */ export interface Controller extends TrackedResource { /** - * @member {ProvisioningState} [provisioningState] Provisioning state of the - * Azure Dev Spaces Controller. Possible values include: 'Succeeded', + * Provisioning state of the Azure Dev Spaces Controller. Possible values include: 'Succeeded', * 'Failed', 'Canceled', 'Updating', 'Creating', 'Deleting', 'Deleted' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {string} hostSuffix DNS suffix for public endpoints running in the - * Azure Dev Spaces Controller. + * DNS suffix for public endpoints running in the Azure Dev Spaces Controller. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - hostSuffix: string; + readonly hostSuffix?: string; /** - * @member {string} [dataPlaneFqdn] DNS name for accessing DataPlane services - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * DNS name for accessing DataPlane services + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly dataPlaneFqdn?: string; /** - * @member {string} targetContainerHostResourceId Resource ID of the target - * container host + * DNS of the target container host's API server + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - targetContainerHostResourceId: string; + readonly targetContainerHostApiServerFqdn?: string; /** - * @member {string} targetContainerHostCredentialsBase64 Credentials of the - * target container host (base64). + * Resource ID of the target container host */ - targetContainerHostCredentialsBase64: string; + targetContainerHostResourceId: string; /** - * @member {Sku} sku + * Credentials of the target container host (base64). */ + targetContainerHostCredentialsBase64: string; sku: Sku; } /** - * @interface - * An interface representing ControllerUpdateParameters. * Parameters for updating an Azure Dev Spaces Controller. - * */ export interface ControllerUpdateParameters { /** - * @member {{ [propertyName: string]: string }} [tags] Tags for the Azure Dev - * Spaces Controller. + * Tags for the Azure Dev Spaces Controller. */ tags?: { [propertyName: string]: string }; + /** + * Credentials of the target container host (base64). + */ + targetContainerHostCredentialsBase64?: string; +} + +/** + * Parameters for listing connection details of an Azure Dev Spaces Controller. + */ +export interface ListConnectionDetailsParameters { + /** + * Resource ID of the target container host mapped to the Azure Dev Spaces Controller. + */ + targetContainerHostResourceId: string; } /** @@ -158,198 +171,107 @@ export interface ControllerUpdateParameters { export type OrchestratorSpecificConnectionDetailsUnion = OrchestratorSpecificConnectionDetails | KubernetesConnectionDetails; /** - * @interface - * An interface representing OrchestratorSpecificConnectionDetails. - * Base class for types that supply values used to connect to container - * orchestrators - * + * Base class for types that supply values used to connect to container orchestrators */ export interface OrchestratorSpecificConnectionDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "OrchestratorSpecificConnectionDetails"; } /** - * @interface * An interface representing ControllerConnectionDetails. */ export interface ControllerConnectionDetails { - /** - * @member {string} [authKey] Authentication key for communicating with - * services. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly authKey?: string; - /** - * @member {string} [workspaceStorageAccountName] Workspace storage account - * name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly workspaceStorageAccountName?: string; - /** - * @member {string} [workspaceStorageSasToken] Workspace storage account SAS - * token. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly workspaceStorageSasToken?: string; - /** - * @member {OrchestratorSpecificConnectionDetailsUnion} - * [orchestratorSpecificConnectionDetails] - */ orchestratorSpecificConnectionDetails?: OrchestratorSpecificConnectionDetailsUnion; } /** - * @interface * An interface representing ControllerConnectionDetailsList. */ export interface ControllerConnectionDetailsList { /** - * @member {ControllerConnectionDetails[]} [connectionDetailsList] List of - * Azure Dev Spaces Controller connection details. + * List of Azure Dev Spaces Controller connection details. */ connectionDetailsList?: ControllerConnectionDetails[]; } /** - * @interface - * An interface representing ResourceProviderOperationDisplay. - */ -export interface ResourceProviderOperationDisplay { - /** - * @member {string} [provider] Name of the resource provider. - */ - provider?: string; - /** - * @member {string} [resource] Name of the resource type. - */ - resource?: string; - /** - * @member {string} [operation] Name of the resource provider operation. - */ - operation?: string; - /** - * @member {string} [description] Description of the resource provider - * operation. - */ - description?: string; -} - -/** - * @interface - * An interface representing ResourceProviderOperationDefinition. - */ -export interface ResourceProviderOperationDefinition { - /** - * @member {string} [name] Resource provider operation name. - */ - name?: string; - /** - * @member {ResourceProviderOperationDisplay} [display] - */ - display?: ResourceProviderOperationDisplay; -} - -/** - * @interface - * An interface representing KubernetesConnectionDetails. * Contains information used to connect to a Kubernetes cluster - * */ export interface KubernetesConnectionDetails { /** - * @member {string} instanceType Polymorphic Discriminator + * Polymorphic Discriminator */ instanceType: "Kubernetes"; /** - * @member {string} [kubeConfig] Gets the kubeconfig for the cluster. + * Gets the kubeconfig for the cluster. */ kubeConfig?: string; } /** - * @interface * An interface representing ErrorDetails. */ export interface ErrorDetails { /** - * @member {string} [code] Status code for the error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Status code for the error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly code?: string; /** - * @member {string} [message] Error message describing the error in detail. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Error message describing the error in detail. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; /** - * @member {string} [target] The target of the particular error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The target of the particular error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly target?: string; } /** - * @interface - * An interface representing ErrorResponse. - * Error response indicates that the service is not able to process the - * incoming request. The reason is provided in the error message. - * + * Error response indicates that the service is not able to process the incoming request. The + * reason is provided in the error message. */ -export interface ErrorResponse { +export interface DevSpacesErrorResponse { /** - * @member {ErrorDetails} [error] The details of the error. + * The details of the error. */ error?: ErrorDetails; } /** - * @interface * An interface representing DevSpacesManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface DevSpacesManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the ControllerList. - * @extends Array + * An interface representing the ResourceProviderOperationList. + * @extends Array */ -export interface ControllerList 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 Dev Spaces Controllers. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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; } /** * @interface - * An interface representing the ResourceProviderOperationList. - * @extends Array + * An interface representing the ControllerList. + * @extends Array */ -export interface ResourceProviderOperationList extends Array { +export interface ControllerList 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.** + * 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; } @@ -374,11 +296,7 @@ export type SkuTier = 'Standard'; /** * Contains response data for the getContainerHostMapping operation. */ -export type ContainerHostMappingsGetContainerHostMappingResponse = { - /** - * The parsed response body. - */ - body: any; +export type ContainerHostMappingsGetContainerHostMappingResponse = ContainerHostMapping & { /** * The underlying HTTP response. */ @@ -387,17 +305,18 @@ export type ContainerHostMappingsGetContainerHostMappingResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: ContainerHostMapping; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type ControllersGetResponse = Controller & { +export type OperationsListResponse = ResourceProviderOperationList & { /** * The underlying HTTP response. */ @@ -406,17 +325,18 @@ export type ControllersGetResponse = Controller & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Controller; + parsedBody: ResourceProviderOperationList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listNext operation. */ -export type ControllersCreateResponse = Controller & { +export type OperationsListNextResponse = ResourceProviderOperationList & { /** * The underlying HTTP response. */ @@ -425,17 +345,18 @@ export type ControllersCreateResponse = Controller & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Controller; + parsedBody: ResourceProviderOperationList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type ControllersUpdateResponse = Controller & { +export type ControllersGetResponse = Controller & { /** * The underlying HTTP response. */ @@ -444,6 +365,7 @@ export type ControllersUpdateResponse = Controller & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -452,9 +374,9 @@ export type ControllersUpdateResponse = Controller & { }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the create operation. */ -export type ControllersListByResourceGroupResponse = ControllerList & { +export type ControllersCreateResponse = Controller & { /** * The underlying HTTP response. */ @@ -463,17 +385,18 @@ export type ControllersListByResourceGroupResponse = ControllerList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ControllerList; + parsedBody: Controller; }; }; /** - * Contains response data for the list operation. + * Contains response data for the update operation. */ -export type ControllersListResponse = ControllerList & { +export type ControllersUpdateResponse = Controller & { /** * The underlying HTTP response. */ @@ -482,17 +405,18 @@ export type ControllersListResponse = ControllerList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ControllerList; + parsedBody: Controller; }; }; /** - * Contains response data for the listConnectionDetails operation. + * Contains response data for the listByResourceGroup operation. */ -export type ControllersListConnectionDetailsResponse = ControllerConnectionDetailsList & { +export type ControllersListByResourceGroupResponse = ControllerList & { /** * The underlying HTTP response. */ @@ -501,17 +425,18 @@ export type ControllersListConnectionDetailsResponse = ControllerConnectionDetai * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ControllerConnectionDetailsList; + parsedBody: ControllerList; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the list operation. */ -export type ControllersBeginCreateResponse = Controller & { +export type ControllersListResponse = ControllerList & { /** * The underlying HTTP response. */ @@ -520,17 +445,18 @@ export type ControllersBeginCreateResponse = Controller & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Controller; + parsedBody: ControllerList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listConnectionDetails operation. */ -export type ControllersListByResourceGroupNextResponse = ControllerList & { +export type ControllersListConnectionDetailsResponse = ControllerConnectionDetailsList & { /** * The underlying HTTP response. */ @@ -539,17 +465,18 @@ export type ControllersListByResourceGroupNextResponse = ControllerList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ControllerList; + parsedBody: ControllerConnectionDetailsList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginCreate operation. */ -export type ControllersListNextResponse = ControllerList & { +export type ControllersBeginCreateResponse = Controller & { /** * The underlying HTTP response. */ @@ -558,17 +485,18 @@ export type ControllersListNextResponse = ControllerList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ControllerList; + parsedBody: Controller; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type OperationsListResponse = ResourceProviderOperationList & { +export type ControllersListByResourceGroupNextResponse = ControllerList & { /** * The underlying HTTP response. */ @@ -577,17 +505,18 @@ export type OperationsListResponse = ResourceProviderOperationList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ResourceProviderOperationList; + parsedBody: ControllerList; }; }; /** * Contains response data for the listNext operation. */ -export type OperationsListNextResponse = ResourceProviderOperationList & { +export type ControllersListNextResponse = ControllerList & { /** * The underlying HTTP response. */ @@ -596,9 +525,10 @@ export type OperationsListNextResponse = ResourceProviderOperationList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ResourceProviderOperationList; + parsedBody: ControllerList; }; }; diff --git a/sdk/devspaces/arm-devspaces/src/models/mappers.ts b/sdk/devspaces/arm-devspaces/src/models/mappers.ts index e1e7156e95ce..e80dc604c540 100644 --- a/sdk/devspaces/arm-devspaces/src/models/mappers.ts +++ b/sdk/devspaces/arm-devspaces/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -37,31 +35,6 @@ export const ContainerHostMapping: msRest.CompositeMapper = { } }; -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: { @@ -121,6 +94,88 @@ export const TrackedResource: msRest.CompositeMapper = { } }; +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 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 Controller: msRest.CompositeMapper = { serializedName: "Controller", type: { @@ -136,7 +191,7 @@ export const Controller: msRest.CompositeMapper = { } }, hostSuffix: { - required: true, + readOnly: true, serializedName: "properties.hostSuffix", type: { name: "String" @@ -149,6 +204,13 @@ export const Controller: msRest.CompositeMapper = { name: "String" } }, + targetContainerHostApiServerFqdn: { + readOnly: true, + serializedName: "properties.targetContainerHostApiServerFqdn", + type: { + name: "String" + } + }, targetContainerHostResourceId: { required: true, serializedName: "properties.targetContainerHostResourceId", @@ -192,6 +254,29 @@ export const ControllerUpdateParameters: msRest.CompositeMapper = { } } } + }, + targetContainerHostCredentialsBase64: { + serializedName: "properties.targetContainerHostCredentialsBase64", + type: { + name: "String" + } + } + } + } +}; + +export const ListConnectionDetailsParameters: msRest.CompositeMapper = { + serializedName: "ListConnectionDetailsParameters", + type: { + name: "Composite", + className: "ListConnectionDetailsParameters", + modelProperties: { + targetContainerHostResourceId: { + required: true, + serializedName: "targetContainerHostResourceId", + type: { + name: "String" + } } } } @@ -225,27 +310,6 @@ export const ControllerConnectionDetails: msRest.CompositeMapper = { 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: { @@ -279,63 +343,6 @@ export const ControllerConnectionDetailsList: msRest.CompositeMapper = { } }; -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: { @@ -386,11 +393,11 @@ export const ErrorDetails: msRest.CompositeMapper = { } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const DevSpacesErrorResponse: msRest.CompositeMapper = { + serializedName: "DevSpacesErrorResponse", type: { name: "Composite", - className: "ErrorResponse", + className: "DevSpacesErrorResponse", modelProperties: { error: { serializedName: "error", @@ -403,11 +410,11 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; -export const ControllerList: msRest.CompositeMapper = { - serializedName: "ControllerList", +export const ResourceProviderOperationList: msRest.CompositeMapper = { + serializedName: "ResourceProviderOperationList", type: { name: "Composite", - className: "ControllerList", + className: "ResourceProviderOperationList", modelProperties: { value: { serializedName: "", @@ -416,7 +423,7 @@ export const ControllerList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Controller" + className: "ResourceProviderOperationDefinition" } } } @@ -432,11 +439,11 @@ export const ControllerList: msRest.CompositeMapper = { } }; -export const ResourceProviderOperationList: msRest.CompositeMapper = { - serializedName: "ResourceProviderOperationList", +export const ControllerList: msRest.CompositeMapper = { + serializedName: "ControllerList", type: { name: "Composite", - className: "ResourceProviderOperationList", + className: "ControllerList", modelProperties: { value: { serializedName: "", @@ -445,7 +452,7 @@ export const ResourceProviderOperationList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceProviderOperationDefinition" + className: "Controller" } } } @@ -464,4 +471,5 @@ export const ResourceProviderOperationList: msRest.CompositeMapper = { export const discriminators = { 'OrchestratorSpecificConnectionDetails' : OrchestratorSpecificConnectionDetails, 'OrchestratorSpecificConnectionDetails.Kubernetes' : KubernetesConnectionDetails + }; diff --git a/sdk/devspaces/arm-devspaces/src/models/operationsMappers.ts b/sdk/devspaces/arm-devspaces/src/models/operationsMappers.ts index 6cfbbc1c921b..3f0548e5825f 100644 --- a/sdk/devspaces/arm-devspaces/src/models/operationsMappers.ts +++ b/sdk/devspaces/arm-devspaces/src/models/operationsMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - ResourceProviderOperationList, + CloudError, ResourceProviderOperationDefinition, ResourceProviderOperationDisplay, - CloudError + ResourceProviderOperationList } from "../models/mappers"; - diff --git a/sdk/devspaces/arm-devspaces/src/models/parameters.ts b/sdk/devspaces/arm-devspaces/src/models/parameters.ts index 3ccc2a31c110..f197b8d605fa 100644 --- a/sdk/devspaces/arm-devspaces/src/models/parameters.ts +++ b/sdk/devspaces/arm-devspaces/src/models/parameters.ts @@ -46,9 +46,9 @@ export const name: msRest.OperationURLParameter = { required: true, serializedName: "name", constraints: { - MaxLength: 31, - MinLength: 3, - Pattern: /^[a-zA-Z0-9](-?[a-zA-Z0-9])*$/ + MaxLength: 63, + MinLength: 1, + Pattern: /^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$/ }, type: { name: "String" diff --git a/sdk/devspaces/arm-devspaces/src/operations/containerHostMappings.ts b/sdk/devspaces/arm-devspaces/src/operations/containerHostMappings.ts index 87261e09645c..087bbb7ba778 100644 --- a/sdk/devspaces/arm-devspaces/src/operations/containerHostMappings.ts +++ b/sdk/devspaces/arm-devspaces/src/operations/containerHostMappings.ts @@ -30,28 +30,32 @@ export class ContainerHostMappings { * @summary Returns container host mapping object for a container host resource ID if an associated * controller exists. * @param containerHostMapping + * @param resourceGroupName Resource group to which the resource belongs. * @param location Location of the container host. * @param [options] The optional parameters * @returns Promise */ - getContainerHostMapping(containerHostMapping: Models.ContainerHostMapping, location: string, options?: msRest.RequestOptionsBase): Promise; + getContainerHostMapping(containerHostMapping: Models.ContainerHostMapping, resourceGroupName: string, location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param containerHostMapping + * @param resourceGroupName Resource group to which the resource belongs. * @param location Location of the container host. * @param callback The callback */ - getContainerHostMapping(containerHostMapping: Models.ContainerHostMapping, location: string, callback: msRest.ServiceCallback): void; + getContainerHostMapping(containerHostMapping: Models.ContainerHostMapping, resourceGroupName: string, location: string, callback: msRest.ServiceCallback): void; /** * @param containerHostMapping + * @param resourceGroupName Resource group to which the resource belongs. * @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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getContainerHostMapping(containerHostMapping: Models.ContainerHostMapping, resourceGroupName: string, location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getContainerHostMapping(containerHostMapping: Models.ContainerHostMapping, resourceGroupName: string, location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { containerHostMapping, + resourceGroupName, location, options }, @@ -64,8 +68,10 @@ export class ContainerHostMappings { const serializer = new msRest.Serializer(Mappers); const getContainerHostMappingOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "providers/Microsoft.DevSpaces/locations/{location}/checkContainerHostMapping", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/locations/{location}/checkContainerHostMapping", urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.location ], queryParameters: [ @@ -83,15 +89,11 @@ const getContainerHostMappingOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } + bodyMapper: Mappers.ContainerHostMapping }, + 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.DevSpacesErrorResponse } }, serializer diff --git a/sdk/devspaces/arm-devspaces/src/operations/controllers.ts b/sdk/devspaces/arm-devspaces/src/operations/controllers.ts index 50d5f3e2d213..449bc54249f5 100644 --- a/sdk/devspaces/arm-devspaces/src/operations/controllers.ts +++ b/sdk/devspaces/arm-devspaces/src/operations/controllers.ts @@ -186,28 +186,35 @@ export class Controllers { * @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 listConnectionDetailsParameters Parameters for listing connection details of Azure Dev + * Spaces Controller. * @param [options] The optional parameters * @returns Promise */ - listConnectionDetails(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + listConnectionDetails(resourceGroupName: string, name: string, listConnectionDetailsParameters: Models.ListConnectionDetailsParameters, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Resource group to which the resource belongs. * @param name Name of the resource. + * @param listConnectionDetailsParameters Parameters for listing connection details of Azure Dev + * Spaces Controller. * @param callback The callback */ - listConnectionDetails(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + listConnectionDetails(resourceGroupName: string, name: string, listConnectionDetailsParameters: Models.ListConnectionDetailsParameters, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Resource group to which the resource belongs. * @param name Name of the resource. + * @param listConnectionDetailsParameters Parameters for listing connection details of Azure Dev + * Spaces Controller. * @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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listConnectionDetails(resourceGroupName: string, name: string, listConnectionDetailsParameters: Models.ListConnectionDetailsParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConnectionDetails(resourceGroupName: string, name: string, listConnectionDetailsParameters: Models.ListConnectionDetailsParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, + listConnectionDetailsParameters, options }, listConnectionDetailsOperationSpec, @@ -335,7 +342,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Controller }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.DevSpacesErrorResponse } }, serializer @@ -366,8 +373,11 @@ const updateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.Controller }, + 201: { + bodyMapper: Mappers.Controller + }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.DevSpacesErrorResponse } }, serializer @@ -391,7 +401,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ControllerList }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.DevSpacesErrorResponse } }, serializer @@ -414,7 +424,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ControllerList }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.DevSpacesErrorResponse } }, serializer @@ -434,12 +444,19 @@ const listConnectionDetailsOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "listConnectionDetailsParameters", + mapper: { + ...Mappers.ListConnectionDetailsParameters, + required: true + } + }, responses: { 200: { bodyMapper: Mappers.ControllerConnectionDetailsList }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.DevSpacesErrorResponse } }, serializer @@ -474,7 +491,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Controller }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.DevSpacesErrorResponse } }, serializer @@ -499,7 +516,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.DevSpacesErrorResponse } }, serializer @@ -520,7 +537,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ControllerList }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.DevSpacesErrorResponse } }, serializer @@ -541,7 +558,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ControllerList }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.DevSpacesErrorResponse } }, serializer diff --git a/sdk/devspaces/arm-devspaces/src/operations/index.ts b/sdk/devspaces/arm-devspaces/src/operations/index.ts index 83e428cb6fcc..4c7b0e9f92a1 100644 --- a/sdk/devspaces/arm-devspaces/src/operations/index.ts +++ b/sdk/devspaces/arm-devspaces/src/operations/index.ts @@ -9,5 +9,5 @@ */ export * from "./containerHostMappings"; -export * from "./controllers"; export * from "./operations"; +export * from "./controllers"; diff --git a/sdk/devspaces/arm-devspaces/tsconfig.json b/sdk/devspaces/arm-devspaces/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/devspaces/arm-devspaces/tsconfig.json +++ b/sdk/devspaces/arm-devspaces/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true