@azure/arm-devspaces 1.2.1 → 2.0.1-alpha.20220201.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/LICENSE +21 -0
- package/README.md +69 -83
- package/dist/index.js +1321 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/devSpacesManagementClient.d.ts +20 -0
- package/dist-esm/src/devSpacesManagementClient.d.ts.map +1 -0
- package/dist-esm/src/devSpacesManagementClient.js +53 -0
- package/dist-esm/src/devSpacesManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +287 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +29 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +23 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +204 -231
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +15 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +129 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/containerHostMappings.d.ts +23 -0
- package/dist-esm/src/operations/containerHostMappings.d.ts.map +1 -0
- package/dist-esm/src/operations/containerHostMappings.js +59 -0
- package/dist-esm/src/operations/containerHostMappings.js.map +1 -0
- package/dist-esm/src/operations/controllers.d.ts +111 -0
- package/dist-esm/src/operations/controllers.d.ts.map +1 -0
- package/dist-esm/src/operations/controllers.js +490 -0
- package/dist-esm/src/operations/controllers.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +1 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +4 -6
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +34 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +116 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerHostMappings.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/containerHostMappings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerHostMappings.js +9 -0
- package/dist-esm/src/operationsInterfaces/containerHostMappings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/controllers.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/controllers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/controllers.js +9 -0
- package/dist-esm/src/operationsInterfaces/controllers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +69 -24
- package/review/arm-devspaces.api.md +300 -0
- package/rollup.config.js +184 -27
- package/src/devSpacesManagementClient.ts +74 -39
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +251 -512
- package/src/models/mappers.ts +202 -226
- package/src/models/parameters.ts +98 -38
- package/src/operations/containerHostMappings.ts +51 -69
- package/src/operations/controllers.ts +469 -377
- package/src/operations/index.ts +4 -6
- package/src/operations/operations.ts +87 -81
- package/src/operationsInterfaces/containerHostMappings.ts +32 -0
- package/src/operationsInterfaces/controllers.ts +140 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +26 -0
- package/tsconfig.json +4 -4
- package/types/arm-devspaces.d.ts +451 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-devspaces.js +0 -1261
- package/dist/arm-devspaces.js.map +0 -1
- package/dist/arm-devspaces.min.js +0 -1
- package/dist/arm-devspaces.min.js.map +0 -1
- package/esm/devSpacesManagementClient.d.ts +0 -26
- package/esm/devSpacesManagementClient.d.ts.map +0 -1
- package/esm/devSpacesManagementClient.js +0 -40
- package/esm/devSpacesManagementClient.js.map +0 -1
- package/esm/devSpacesManagementClientContext.d.ts +0 -22
- package/esm/devSpacesManagementClientContext.d.ts.map +0 -1
- package/esm/devSpacesManagementClientContext.js +0 -61
- package/esm/devSpacesManagementClientContext.js.map +0 -1
- package/esm/models/containerHostMappingsMappers.d.ts +0 -2
- package/esm/models/containerHostMappingsMappers.d.ts.map +0 -1
- package/esm/models/containerHostMappingsMappers.js +0 -11
- package/esm/models/containerHostMappingsMappers.js.map +0 -1
- package/esm/models/controllersMappers.d.ts +0 -2
- package/esm/models/controllersMappers.d.ts.map +0 -1
- package/esm/models/controllersMappers.js +0 -11
- package/esm/models/controllersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -564
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -24
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -9
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -90
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/containerHostMappings.d.ts +0 -35
- package/esm/operations/containerHostMappings.d.ts.map +0 -1
- package/esm/operations/containerHostMappings.js +0 -66
- package/esm/operations/containerHostMappings.js.map +0 -1
- package/esm/operations/controllers.d.ts +0 -198
- package/esm/operations/controllers.d.ts.map +0 -1
- package/esm/operations/controllers.js +0 -346
- package/esm/operations/controllers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -50
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/src/devSpacesManagementClientContext.ts +0 -68
- package/src/models/containerHostMappingsMappers.ts +0 -16
- package/src/models/controllersMappers.ts +0 -27
- package/src/models/operationsMappers.ts +0 -18
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Operations operations. */
|
|
14
|
+
export class OperationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Operations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
|
|
24
|
+
* description.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
list(options) {
|
|
28
|
+
const iter = this.listPagingAll(options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: () => {
|
|
37
|
+
return this.listPagingPage(options);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
listPagingPage(options) {
|
|
42
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
43
|
+
let result = yield __await(this._list(options));
|
|
44
|
+
yield yield __await(result.value || []);
|
|
45
|
+
let continuationToken = result.nextLink;
|
|
46
|
+
while (continuationToken) {
|
|
47
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
48
|
+
continuationToken = result.nextLink;
|
|
49
|
+
yield yield __await(result.value || []);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
listPagingAll(options) {
|
|
54
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
55
|
+
var e_1, _a;
|
|
56
|
+
try {
|
|
57
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
58
|
+
const page = _c.value;
|
|
59
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
63
|
+
finally {
|
|
64
|
+
try {
|
|
65
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
66
|
+
}
|
|
67
|
+
finally { if (e_1) throw e_1.error; }
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
|
|
73
|
+
* description.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
_list(options) {
|
|
77
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* ListNext
|
|
81
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
82
|
+
* @param options The options parameters.
|
|
83
|
+
*/
|
|
84
|
+
_listNext(nextLink, options) {
|
|
85
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// Operation Specifications
|
|
89
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
90
|
+
const listOperationSpec = {
|
|
91
|
+
path: "/providers/Microsoft.DevSpaces/operations",
|
|
92
|
+
httpMethod: "GET",
|
|
93
|
+
responses: {
|
|
94
|
+
200: {
|
|
95
|
+
bodyMapper: Mappers.ResourceProviderOperationList
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
queryParameters: [Parameters.apiVersion],
|
|
99
|
+
urlParameters: [Parameters.$host],
|
|
100
|
+
headerParameters: [Parameters.accept],
|
|
101
|
+
serializer
|
|
102
|
+
};
|
|
103
|
+
const listNextOperationSpec = {
|
|
104
|
+
path: "{nextLink}",
|
|
105
|
+
httpMethod: "GET",
|
|
106
|
+
responses: {
|
|
107
|
+
200: {
|
|
108
|
+
bodyMapper: Mappers.ResourceProviderOperationList
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
queryParameters: [Parameters.apiVersion],
|
|
112
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
113
|
+
headerParameters: [Parameters.accept],
|
|
114
|
+
serializer
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC;;YAEtC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA,CAAC;gBAC1D,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;gBACpC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;aAC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CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ContainerHostMapping, ContainerHostMappingsGetContainerHostMappingOptionalParams, ContainerHostMappingsGetContainerHostMappingResponse } from "../models";
|
|
2
|
+
/** Interface representing a ContainerHostMappings. */
|
|
3
|
+
export interface ContainerHostMappings {
|
|
4
|
+
/**
|
|
5
|
+
* Returns container host mapping object for a container host resource ID if an associated controller
|
|
6
|
+
* exists.
|
|
7
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
8
|
+
* @param location Location of the container host.
|
|
9
|
+
* @param containerHostMapping Container host mapping object specifying the Container host resource ID
|
|
10
|
+
* and its associated Controller resource.
|
|
11
|
+
* @param options The options parameters.
|
|
12
|
+
*/
|
|
13
|
+
getContainerHostMapping(resourceGroupName: string, location: string, containerHostMapping: ContainerHostMapping, options?: ContainerHostMappingsGetContainerHostMappingOptionalParams): Promise<ContainerHostMappingsGetContainerHostMappingResponse>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=containerHostMappings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerHostMappings.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/containerHostMappings.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,oBAAoB,EACpB,0DAA0D,EAC1D,oDAAoD,EACrD,MAAM,WAAW,CAAC;AAEnB,sDAAsD;AACtD,MAAM,WAAW,qBAAqB;IACpC;;;;;;;;OAQG;IACH,uBAAuB,CACrB,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,EAChB,oBAAoB,EAAE,oBAAoB,EAC1C,OAAO,CAAC,EAAE,0DAA0D,GACnE,OAAO,CAAC,oDAAoD,CAAC,CAAC;CAClE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=containerHostMappings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerHostMappings.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/containerHostMappings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
3
|
+
import { Controller, ControllersListByResourceGroupOptionalParams, ControllersListOptionalParams, ControllersGetOptionalParams, ControllersGetResponse, ControllersCreateOptionalParams, ControllersCreateResponse, ControllersDeleteOptionalParams, ControllerUpdateParameters, ControllersUpdateOptionalParams, ControllersUpdateResponse, ListConnectionDetailsParameters, ControllersListConnectionDetailsOptionalParams, ControllersListConnectionDetailsResponse } from "../models";
|
|
4
|
+
/** Interface representing a Controllers. */
|
|
5
|
+
export interface Controllers {
|
|
6
|
+
/**
|
|
7
|
+
* Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and
|
|
8
|
+
* subscription.
|
|
9
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
10
|
+
* @param options The options parameters.
|
|
11
|
+
*/
|
|
12
|
+
listByResourceGroup(resourceGroupName: string, options?: ControllersListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Controller>;
|
|
13
|
+
/**
|
|
14
|
+
* Lists all the Azure Dev Spaces Controllers with their properties in the subscription.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: ControllersListOptionalParams): PagedAsyncIterableIterator<Controller>;
|
|
18
|
+
/**
|
|
19
|
+
* Gets the properties for an Azure Dev Spaces Controller.
|
|
20
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
21
|
+
* @param name Name of the resource.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
get(resourceGroupName: string, name: string, options?: ControllersGetOptionalParams): Promise<ControllersGetResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Creates an Azure Dev Spaces Controller with the specified create parameters.
|
|
27
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
28
|
+
* @param name Name of the resource.
|
|
29
|
+
* @param controller Controller create parameters.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
beginCreate(resourceGroupName: string, name: string, controller: Controller, options?: ControllersCreateOptionalParams): Promise<PollerLike<PollOperationState<ControllersCreateResponse>, ControllersCreateResponse>>;
|
|
33
|
+
/**
|
|
34
|
+
* Creates an Azure Dev Spaces Controller with the specified create parameters.
|
|
35
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
36
|
+
* @param name Name of the resource.
|
|
37
|
+
* @param controller Controller create parameters.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
beginCreateAndWait(resourceGroupName: string, name: string, controller: Controller, options?: ControllersCreateOptionalParams): Promise<ControllersCreateResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Deletes an existing Azure Dev Spaces Controller.
|
|
43
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
44
|
+
* @param name Name of the resource.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
beginDelete(resourceGroupName: string, name: string, options?: ControllersDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
48
|
+
/**
|
|
49
|
+
* Deletes an existing Azure Dev Spaces Controller.
|
|
50
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
51
|
+
* @param name Name of the resource.
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
beginDeleteAndWait(resourceGroupName: string, name: string, options?: ControllersDeleteOptionalParams): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Updates the properties of an existing Azure Dev Spaces Controller with the specified update
|
|
57
|
+
* parameters.
|
|
58
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
59
|
+
* @param name Name of the resource.
|
|
60
|
+
* @param controllerUpdateParameters Parameters for updating the Azure Dev Spaces Controller.
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
update(resourceGroupName: string, name: string, controllerUpdateParameters: ControllerUpdateParameters, options?: ControllersUpdateOptionalParams): Promise<ControllersUpdateResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Lists connection details for the underlying container resources of an Azure Dev Spaces Controller.
|
|
66
|
+
* @param resourceGroupName Resource group to which the resource belongs.
|
|
67
|
+
* @param name Name of the resource.
|
|
68
|
+
* @param listConnectionDetailsParameters Parameters for listing connection details of Azure Dev Spaces
|
|
69
|
+
* Controller.
|
|
70
|
+
* @param options The options parameters.
|
|
71
|
+
*/
|
|
72
|
+
listConnectionDetails(resourceGroupName: string, name: string, listConnectionDetailsParameters: ListConnectionDetailsParameters, options?: ControllersListConnectionDetailsOptionalParams): Promise<ControllersListConnectionDetailsResponse>;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=controllers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controllers.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/controllers.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,UAAU,EACV,4CAA4C,EAC5C,6BAA6B,EAC7B,4BAA4B,EAC5B,sBAAsB,EACtB,+BAA+B,EAC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AM,EACZ,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,0BAA0B,EAAE,0BAA0B,EACtD,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;;;OAOG;IACH,qBAAqB,CACnB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,+BAA+B,EAAE,+BAA+B,EAChE,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC,CAAC;CACtD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=controllers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controllers.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/controllers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./containerHostMappings";
|
|
9
|
+
export * from "./operations";
|
|
10
|
+
export * from "./controllers";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { ResourceProviderOperationDefinition, OperationsListOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a Operations. */
|
|
4
|
+
export interface Operations {
|
|
5
|
+
/**
|
|
6
|
+
* Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
|
|
7
|
+
* description.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ResourceProviderOperationDefinition>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mCAAmC,EACnC,4BAA4B,EAC7B,MAAM,WAAW,CAAC;AAGnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,mCAAmC,CAAC,CAAC;CACpE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
import { record } from "@azure-tools/test-recorder";
|
|
10
|
+
const recorderEnvSetup = {
|
|
11
|
+
replaceableVariables: {
|
|
12
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
13
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
14
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
15
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
16
|
+
},
|
|
17
|
+
customizationsOnRecordings: [
|
|
18
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
19
|
+
],
|
|
20
|
+
queryParametersToSkip: []
|
|
21
|
+
};
|
|
22
|
+
describe("My test", () => {
|
|
23
|
+
let recorder;
|
|
24
|
+
beforeEach(function () {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
recorder = record(this, recorderEnvSetup);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
afterEach(function () {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
yield recorder.stop();
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
it("sample test", function () {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
console.log("Hi, I'm a test!");
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=sampleTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC5C,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/arm-devspaces",
|
|
3
|
+
"sdk-type": "mgmt",
|
|
3
4
|
"author": "Microsoft Corporation",
|
|
4
|
-
"description": "
|
|
5
|
-
"version": "1.
|
|
5
|
+
"description": "A generated SDK for DevSpacesManagementClient.",
|
|
6
|
+
"version": "2.0.1-alpha.20220201.1",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=12.0.0"
|
|
9
|
+
},
|
|
6
10
|
"dependencies": {
|
|
7
|
-
"@azure/
|
|
8
|
-
"@azure/
|
|
9
|
-
"@azure/core-
|
|
10
|
-
"
|
|
11
|
+
"@azure/core-lro": "^2.2.0",
|
|
12
|
+
"@azure/abort-controller": "^1.0.0",
|
|
13
|
+
"@azure/core-paging": "^1.2.0",
|
|
14
|
+
"@azure/core-client": "^1.0.0",
|
|
15
|
+
"@azure/core-auth": "^1.3.0",
|
|
16
|
+
"@azure/core-rest-pipeline": "^1.1.0",
|
|
17
|
+
"tslib": "^2.2.0"
|
|
11
18
|
},
|
|
12
19
|
"keywords": [
|
|
13
20
|
"node",
|
|
@@ -17,40 +24,78 @@
|
|
|
17
24
|
"isomorphic"
|
|
18
25
|
],
|
|
19
26
|
"license": "MIT",
|
|
20
|
-
"main": "./dist/
|
|
21
|
-
"module": "./esm/
|
|
22
|
-
"types": "./
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"module": "./dist-esm/src/index.js",
|
|
29
|
+
"types": "./types/arm-devspaces.d.ts",
|
|
23
30
|
"devDependencies": {
|
|
24
|
-
"
|
|
25
|
-
"rollup": "
|
|
26
|
-
"rollup
|
|
27
|
-
"
|
|
31
|
+
"@microsoft/api-extractor": "^7.18.11",
|
|
32
|
+
"@rollup/plugin-commonjs": "11.0.2",
|
|
33
|
+
"@rollup/plugin-json": "^4.0.0",
|
|
34
|
+
"@rollup/plugin-multi-entry": "^3.0.0",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^8.0.0",
|
|
36
|
+
"mkdirp": "^1.0.4",
|
|
37
|
+
"rollup": "^1.16.3",
|
|
38
|
+
"rollup-plugin-sourcemaps": "^0.4.2",
|
|
39
|
+
"typescript": "~4.2.0",
|
|
40
|
+
"uglify-js": "^3.4.9",
|
|
41
|
+
"rimraf": "^3.0.0",
|
|
42
|
+
"@azure/identity": "^2.0.1",
|
|
43
|
+
"@azure-tools/test-recorder": "^1.0.0",
|
|
44
|
+
"mocha": "^7.1.1",
|
|
45
|
+
"cross-env": "^7.0.2"
|
|
28
46
|
},
|
|
29
|
-
"homepage": "https://github.com/
|
|
47
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devspaces/arm-devspaces",
|
|
30
48
|
"repository": {
|
|
31
49
|
"type": "git",
|
|
32
|
-
"url": "https://github.com/
|
|
50
|
+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
33
51
|
},
|
|
34
52
|
"bugs": {
|
|
35
|
-
"url": "https://github.com/
|
|
53
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
36
54
|
},
|
|
37
55
|
"files": [
|
|
38
56
|
"dist/**/*.js",
|
|
39
57
|
"dist/**/*.js.map",
|
|
40
58
|
"dist/**/*.d.ts",
|
|
41
59
|
"dist/**/*.d.ts.map",
|
|
42
|
-
"esm/**/*.js",
|
|
43
|
-
"esm/**/*.js.map",
|
|
44
|
-
"esm/**/*.d.ts",
|
|
45
|
-
"esm/**/*.d.ts.map",
|
|
60
|
+
"dist-esm/**/*.js",
|
|
61
|
+
"dist-esm/**/*.js.map",
|
|
62
|
+
"dist-esm/**/*.d.ts",
|
|
63
|
+
"dist-esm/**/*.d.ts.map",
|
|
46
64
|
"src/**/*.ts",
|
|
65
|
+
"README.md",
|
|
66
|
+
"LICENSE",
|
|
47
67
|
"rollup.config.js",
|
|
48
|
-
"tsconfig.json"
|
|
68
|
+
"tsconfig.json",
|
|
69
|
+
"review/*",
|
|
70
|
+
"CHANGELOG.md",
|
|
71
|
+
"types/*"
|
|
49
72
|
],
|
|
50
73
|
"scripts": {
|
|
51
|
-
"build": "tsc && rollup -c
|
|
52
|
-
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/
|
|
53
|
-
"prepack": "npm
|
|
74
|
+
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
|
75
|
+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
76
|
+
"prepack": "npm run build",
|
|
77
|
+
"pack": "npm pack 2>&1",
|
|
78
|
+
"extract-api": "api-extractor run --local",
|
|
79
|
+
"lint": "echo skipped",
|
|
80
|
+
"audit": "echo skipped",
|
|
81
|
+
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
82
|
+
"build:node": "echo skipped",
|
|
83
|
+
"build:browser": "echo skipped",
|
|
84
|
+
"build:test": "echo skipped",
|
|
85
|
+
"build:samples": "echo skipped.",
|
|
86
|
+
"check-format": "echo skipped",
|
|
87
|
+
"execute:samples": "echo skipped",
|
|
88
|
+
"format": "echo skipped",
|
|
89
|
+
"test": "npm run integration-test",
|
|
90
|
+
"test:node": "echo skipped",
|
|
91
|
+
"test:browser": "echo skipped",
|
|
92
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
93
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
94
|
+
"unit-test:browser": "echo skipped",
|
|
95
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
+
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
|
|
97
|
+
"integration-test:browser": "echo skipped",
|
|
98
|
+
"docs": "echo skipped"
|
|
54
99
|
},
|
|
55
100
|
"sideEffects": false,
|
|
56
101
|
"autoPublish": true
|