@azure/arm-devcenter 1.0.0-beta.1 → 1.0.0-beta.2

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.
Files changed (130) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/index.js +290 -74
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/attachedNetworksCreateOrUpdateSample.js +1 -1
  7. package/dist-esm/samples-dev/attachedNetworksDeleteSample.js +1 -1
  8. package/dist-esm/samples-dev/attachedNetworksGetByDevCenterSample.js +1 -1
  9. package/dist-esm/samples-dev/attachedNetworksGetByProjectSample.js +1 -1
  10. package/dist-esm/samples-dev/attachedNetworksListByDevCenterSample.js +1 -1
  11. package/dist-esm/samples-dev/attachedNetworksListByProjectSample.js +1 -1
  12. package/dist-esm/samples-dev/catalogsCreateOrUpdateSample.js +2 -2
  13. package/dist-esm/samples-dev/catalogsDeleteSample.js +1 -1
  14. package/dist-esm/samples-dev/catalogsGetSample.js +1 -1
  15. package/dist-esm/samples-dev/catalogsListByDevCenterSample.js +1 -1
  16. package/dist-esm/samples-dev/catalogsSyncSample.js +1 -1
  17. package/dist-esm/samples-dev/catalogsUpdateSample.js +1 -1
  18. package/dist-esm/samples-dev/devBoxDefinitionsCreateOrUpdateSample.js +1 -1
  19. package/dist-esm/samples-dev/devBoxDefinitionsDeleteSample.js +1 -1
  20. package/dist-esm/samples-dev/devBoxDefinitionsGetByProjectSample.js +1 -1
  21. package/dist-esm/samples-dev/devBoxDefinitionsGetSample.js +1 -1
  22. package/dist-esm/samples-dev/devBoxDefinitionsListByDevCenterSample.js +1 -1
  23. package/dist-esm/samples-dev/devBoxDefinitionsListByProjectSample.js +1 -1
  24. package/dist-esm/samples-dev/devBoxDefinitionsUpdateSample.js +1 -1
  25. package/dist-esm/samples-dev/devCentersCreateOrUpdateSample.js +2 -2
  26. package/dist-esm/samples-dev/devCentersDeleteSample.js +1 -1
  27. package/dist-esm/samples-dev/devCentersGetSample.js +1 -1
  28. package/dist-esm/samples-dev/devCentersListByResourceGroupSample.js +1 -1
  29. package/dist-esm/samples-dev/devCentersListBySubscriptionSample.js +1 -1
  30. package/dist-esm/samples-dev/devCentersUpdateSample.js +1 -1
  31. package/dist-esm/samples-dev/environmentTypesCreateOrUpdateSample.js +1 -1
  32. package/dist-esm/samples-dev/environmentTypesDeleteSample.js +1 -1
  33. package/dist-esm/samples-dev/environmentTypesGetSample.js +1 -1
  34. package/dist-esm/samples-dev/environmentTypesListByDevCenterSample.js +1 -1
  35. package/dist-esm/samples-dev/environmentTypesUpdateSample.js +1 -1
  36. package/dist-esm/samples-dev/galleriesCreateOrUpdateSample.js +1 -1
  37. package/dist-esm/samples-dev/galleriesDeleteSample.js +1 -1
  38. package/dist-esm/samples-dev/galleriesGetSample.js +1 -1
  39. package/dist-esm/samples-dev/galleriesListByDevCenterSample.js +1 -1
  40. package/dist-esm/samples-dev/imageVersionsGetSample.js +1 -1
  41. package/dist-esm/samples-dev/imageVersionsListByImageSample.js +1 -1
  42. package/dist-esm/samples-dev/imagesGetSample.js +1 -1
  43. package/dist-esm/samples-dev/imagesListByDevCenterSample.js +1 -1
  44. package/dist-esm/samples-dev/imagesListByGallerySample.js +1 -1
  45. package/dist-esm/samples-dev/networkConnectionsCreateOrUpdateSample.js +1 -1
  46. package/dist-esm/samples-dev/networkConnectionsDeleteSample.js +1 -1
  47. package/dist-esm/samples-dev/networkConnectionsGetHealthDetailsSample.js +1 -1
  48. package/dist-esm/samples-dev/networkConnectionsGetSample.js +1 -1
  49. package/dist-esm/samples-dev/networkConnectionsListByResourceGroupSample.js +1 -1
  50. package/dist-esm/samples-dev/networkConnectionsListBySubscriptionSample.js +1 -1
  51. package/dist-esm/samples-dev/networkConnectionsListHealthDetailsSample.js +1 -1
  52. package/dist-esm/samples-dev/networkConnectionsRunHealthChecksSample.js +1 -1
  53. package/dist-esm/samples-dev/networkConnectionsUpdateSample.js +1 -1
  54. package/dist-esm/samples-dev/operationStatusesGetSample.js +1 -1
  55. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  56. package/dist-esm/samples-dev/poolsCreateOrUpdateSample.js +1 -1
  57. package/dist-esm/samples-dev/poolsDeleteSample.js +1 -1
  58. package/dist-esm/samples-dev/poolsGetSample.js +1 -1
  59. package/dist-esm/samples-dev/poolsListByProjectSample.js +1 -1
  60. package/dist-esm/samples-dev/poolsUpdateSample.js +1 -1
  61. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.d.ts +2 -0
  62. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.d.ts.map +1 -0
  63. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.js +32 -0
  64. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesGetSample.js.map +1 -0
  65. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.d.ts +2 -0
  66. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.d.ts.map +1 -0
  67. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.js +45 -0
  68. package/dist-esm/samples-dev/projectAllowedEnvironmentTypesListSample.js.map +1 -0
  69. package/dist-esm/samples-dev/projectEnvironmentTypesCreateOrUpdateSample.js +1 -1
  70. package/dist-esm/samples-dev/projectEnvironmentTypesDeleteSample.js +1 -1
  71. package/dist-esm/samples-dev/projectEnvironmentTypesGetSample.js +1 -1
  72. package/dist-esm/samples-dev/projectEnvironmentTypesListSample.js +1 -1
  73. package/dist-esm/samples-dev/projectEnvironmentTypesUpdateSample.js +1 -1
  74. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +1 -1
  75. package/dist-esm/samples-dev/projectsDeleteSample.js +1 -1
  76. package/dist-esm/samples-dev/projectsGetSample.js +1 -1
  77. package/dist-esm/samples-dev/projectsListByResourceGroupSample.js +1 -1
  78. package/dist-esm/samples-dev/projectsListBySubscriptionSample.js +1 -1
  79. package/dist-esm/samples-dev/projectsUpdateSample.js +1 -1
  80. package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js +1 -1
  81. package/dist-esm/samples-dev/schedulesDeleteSample.js +1 -1
  82. package/dist-esm/samples-dev/schedulesGetSample.js +1 -1
  83. package/dist-esm/samples-dev/schedulesListByPoolSample.js +1 -1
  84. package/dist-esm/samples-dev/schedulesUpdateSample.js +1 -1
  85. package/dist-esm/samples-dev/skusListBySubscriptionSample.js +1 -1
  86. package/dist-esm/samples-dev/usagesListByLocationSample.js +1 -1
  87. package/dist-esm/src/devCenterClient.d.ts +2 -1
  88. package/dist-esm/src/devCenterClient.d.ts.map +1 -1
  89. package/dist-esm/src/devCenterClient.js +4 -3
  90. package/dist-esm/src/devCenterClient.js.map +1 -1
  91. package/dist-esm/src/models/index.d.ts +45 -0
  92. package/dist-esm/src/models/index.d.ts.map +1 -1
  93. package/dist-esm/src/models/index.js.map +1 -1
  94. package/dist-esm/src/models/mappers.d.ts +2 -0
  95. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  96. package/dist-esm/src/models/mappers.js +48 -0
  97. package/dist-esm/src/models/mappers.js.map +1 -1
  98. package/dist-esm/src/models/parameters.js +1 -1
  99. package/dist-esm/src/operations/index.d.ts +1 -0
  100. package/dist-esm/src/operations/index.d.ts.map +1 -1
  101. package/dist-esm/src/operations/index.js +1 -0
  102. package/dist-esm/src/operations/index.js.map +1 -1
  103. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.d.ts +46 -0
  104. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.d.ts.map +1 -0
  105. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.js +169 -0
  106. package/dist-esm/src/operations/projectAllowedEnvironmentTypes.js.map +1 -0
  107. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  108. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  109. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  110. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  111. package/dist-esm/src/operationsInterfaces/projectAllowedEnvironmentTypes.d.ts +21 -0
  112. package/dist-esm/src/operationsInterfaces/projectAllowedEnvironmentTypes.d.ts.map +1 -0
  113. package/dist-esm/src/operationsInterfaces/projectAllowedEnvironmentTypes.js +9 -0
  114. package/dist-esm/src/operationsInterfaces/projectAllowedEnvironmentTypes.js.map +1 -0
  115. package/dist-esm/test/devcenter_examples.spec.d.ts +4 -0
  116. package/dist-esm/test/devcenter_examples.spec.d.ts.map +1 -0
  117. package/dist-esm/test/devcenter_examples.spec.js +109 -0
  118. package/dist-esm/test/devcenter_examples.spec.js.map +1 -0
  119. package/package.json +3 -3
  120. package/review/arm-devcenter.api.md +43 -0
  121. package/src/devCenterClient.ts +8 -2
  122. package/src/models/index.ts +55 -0
  123. package/src/models/mappers.ts +53 -0
  124. package/src/models/parameters.ts +1 -1
  125. package/src/operations/index.ts +1 -0
  126. package/src/operations/projectAllowedEnvironmentTypes.ts +222 -0
  127. package/src/operationsInterfaces/index.ts +1 -0
  128. package/src/operationsInterfaces/projectAllowedEnvironmentTypes.ts +44 -0
  129. package/types/arm-devcenter.d.ts +73 -0
  130. package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1,21 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { AllowedEnvironmentType, ProjectAllowedEnvironmentTypesListOptionalParams, ProjectAllowedEnvironmentTypesGetOptionalParams, ProjectAllowedEnvironmentTypesGetResponse } from "../models";
3
+ /** Interface representing a ProjectAllowedEnvironmentTypes. */
4
+ export interface ProjectAllowedEnvironmentTypes {
5
+ /**
6
+ * Lists allowed environment types for a project.
7
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
8
+ * @param projectName The name of the project.
9
+ * @param options The options parameters.
10
+ */
11
+ list(resourceGroupName: string, projectName: string, options?: ProjectAllowedEnvironmentTypesListOptionalParams): PagedAsyncIterableIterator<AllowedEnvironmentType>;
12
+ /**
13
+ * Gets an allowed environment type.
14
+ * @param resourceGroupName Name of the resource group within the Azure subscription.
15
+ * @param projectName The name of the project.
16
+ * @param environmentTypeName The name of the environment type.
17
+ * @param options The options parameters.
18
+ */
19
+ get(resourceGroupName: string, projectName: string, environmentTypeName: string, options?: ProjectAllowedEnvironmentTypesGetOptionalParams): Promise<ProjectAllowedEnvironmentTypesGetResponse>;
20
+ }
21
+ //# sourceMappingURL=projectAllowedEnvironmentTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectAllowedEnvironmentTypes.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/projectAllowedEnvironmentTypes.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,sBAAsB,EACtB,gDAAgD,EAChD,+CAA+C,EAC/C,yCAAyC,EAC1C,MAAM,WAAW,CAAC;AAGnB,+DAA+D;AAC/D,MAAM,WAAW,8BAA8B;IAC7C;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gDAAgD,GACzD,0BAA0B,CAAC,sBAAsB,CAAC,CAAC;IACtD;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC,CAAC;CACvD"}
@@ -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=projectAllowedEnvironmentTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectAllowedEnvironmentTypes.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/projectAllowedEnvironmentTypes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,4 @@
1
+ export declare const testPollingOptions: {
2
+ updateIntervalInMs: number | undefined;
3
+ };
4
+ //# sourceMappingURL=devcenter_examples.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devcenter_examples.spec.d.ts","sourceRoot":"","sources":["../../test/devcenter_examples.spec.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
@@ -0,0 +1,109 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
10
+ import { createTestCredential } from "@azure-tools/test-credential";
11
+ import { assert } from "chai";
12
+ import { DevCenterClient } from "../src/devCenterClient";
13
+ const replaceableVariables = {
14
+ AZURE_CLIENT_ID: "azure_client_id",
15
+ AZURE_CLIENT_SECRET: "azure_client_secret",
16
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
17
+ SUBSCRIPTION_ID: "azure_subscription_id"
18
+ };
19
+ const recorderOptions = {
20
+ envSetupForPlayback: replaceableVariables
21
+ };
22
+ export const testPollingOptions = {
23
+ updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
24
+ };
25
+ describe.skip("devcenter test", () => {
26
+ let recorder;
27
+ let subscriptionId;
28
+ let client;
29
+ let location;
30
+ let resourceGroup;
31
+ let body;
32
+ let devCenterName;
33
+ beforeEach(function () {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ recorder = new Recorder(this.currentTest);
36
+ yield recorder.start(recorderOptions);
37
+ subscriptionId = env.SUBSCRIPTION_ID || '';
38
+ // This is an example of how the environment variables are used
39
+ const credential = createTestCredential();
40
+ client = new DevCenterClient(credential, subscriptionId, recorder.configureClientOptions({}));
41
+ location = "eastus";
42
+ resourceGroup = "myjstest";
43
+ devCenterName = "Contoso";
44
+ body = {
45
+ location: location,
46
+ tags: { costCode: "12345" }
47
+ };
48
+ });
49
+ });
50
+ afterEach(function () {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ yield recorder.stop();
53
+ });
54
+ });
55
+ it("devcenters create test", function () {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ const res = yield client.devCenters.beginCreateOrUpdateAndWait(resourceGroup, devCenterName, body, testPollingOptions);
58
+ assert.equal(res.name, devCenterName);
59
+ });
60
+ });
61
+ it("devcenters get test", function () {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const res = yield client.devCenters.get(resourceGroup, devCenterName);
64
+ assert.equal(res.name, devCenterName);
65
+ });
66
+ });
67
+ it("devcenters list test", function () {
68
+ var e_1, _a;
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const resArray = new Array();
71
+ try {
72
+ for (var _b = __asyncValues(client.devCenters.listByResourceGroup(resourceGroup)), _c; _c = yield _b.next(), !_c.done;) {
73
+ let item = _c.value;
74
+ resArray.push(item);
75
+ }
76
+ }
77
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
+ finally {
79
+ try {
80
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
81
+ }
82
+ finally { if (e_1) throw e_1.error; }
83
+ }
84
+ assert.equal(resArray.length, 1);
85
+ });
86
+ });
87
+ it("devcenters delete test", function () {
88
+ var e_2, _a;
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const resArray = new Array();
91
+ const res = yield client.devCenters.beginDeleteAndWait(resourceGroup, devCenterName);
92
+ try {
93
+ for (var _b = __asyncValues(client.devCenters.listByResourceGroup(resourceGroup)), _c; _c = yield _b.next(), !_c.done;) {
94
+ let item = _c.value;
95
+ resArray.push(item);
96
+ }
97
+ }
98
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
99
+ finally {
100
+ try {
101
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
102
+ }
103
+ finally { if (e_2) throw e_2.error; }
104
+ }
105
+ assert.equal(resArray.length, 0);
106
+ });
107
+ });
108
+ });
109
+ //# sourceMappingURL=devcenter_examples.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devcenter_examples.spec.js","sourceRoot":"","sources":["../../test/devcenter_examples.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,GAAG,EAAE;IACnC,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAuB,CAAC;IAC5B,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,IAAe,CAAC;IACpB,IAAI,aAAqB,CAAC;IAE1B,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YACtC,cAAc,GAAG,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC;YAC3C,+DAA+D;YAC/D,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC;YAC1C,MAAM,GAAG,IAAI,eAAe,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC,CAAC;YAC9F,QAAQ,GAAG,QAAQ,CAAC;YACpB,aAAa,GAAG,UAAU,CAAC;YAC3B,aAAa,GAAG,SAAS,CAAC;YAC1B,IAAI,GAAG;gBACL,QAAQ,EAAE,QAAQ;gBAClB,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE;aAC5B,CAAC;QACJ,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE;;YAC3B,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,0BAA0B,CAC5D,aAAa,EACb,aAAa,EACb,IAAI,EACJ,kBAAkB,CAAC,CAAC;YACtB,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE;;YACxB,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;YACtE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE;;;YACzB,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA,IAAA;oBAAhE,IAAI,IAAI,WAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACrB;;;;;;;;;YACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KAClC,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE;;;YAC3B,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;YAC7B,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;;gBACpF,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA,IAAA;oBAAhE,IAAI,IAAI,WAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACrB;;;;;;;;;YACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for DevCenterClient.",
6
- "version": "1.0.0-beta.1",
6
+ "version": "1.0.0-beta.2",
7
7
  "engines": {
8
8
  "node": ">=12.0.0"
9
9
  },
@@ -28,7 +28,7 @@
28
28
  "module": "./dist-esm/src/index.js",
29
29
  "types": "./types/arm-devcenter.d.ts",
30
30
  "devDependencies": {
31
- "@microsoft/api-extractor": "7.18.11",
31
+ "@microsoft/api-extractor": "^7.31.1",
32
32
  "@rollup/plugin-commonjs": "^21.0.1",
33
33
  "@rollup/plugin-json": "^4.1.0",
34
34
  "@rollup/plugin-multi-entry": "^4.1.0",
@@ -118,4 +118,4 @@
118
118
  "disableDocsMs": true,
119
119
  "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-devcenter?view=azure-node-preview"
120
120
  }
121
- }
121
+ }
@@ -13,6 +13,17 @@ import { PollOperationState } from '@azure/core-lro';
13
13
  // @public
14
14
  export type ActionType = string;
15
15
 
16
+ // @public
17
+ export interface AllowedEnvironmentType extends Resource {
18
+ readonly provisioningState?: string;
19
+ }
20
+
21
+ // @public
22
+ export interface AllowedEnvironmentTypeListResult {
23
+ readonly nextLink?: string;
24
+ readonly value?: AllowedEnvironmentType[];
25
+ }
26
+
16
27
  // @public
17
28
  export interface AttachedNetworkConnection extends Resource {
18
29
  readonly domainJoinType?: DomainJoinType;
@@ -386,6 +397,8 @@ export class DevCenterClient extends coreClient.ServiceClient {
386
397
  // (undocumented)
387
398
  pools: Pools;
388
399
  // (undocumented)
400
+ projectAllowedEnvironmentTypes: ProjectAllowedEnvironmentTypes;
401
+ // (undocumented)
389
402
  projectEnvironmentTypes: ProjectEnvironmentTypes;
390
403
  // (undocumented)
391
404
  projects: Projects;
@@ -1112,6 +1125,7 @@ export interface OperationStatus {
1112
1125
  readonly name?: string;
1113
1126
  readonly percentComplete?: number;
1114
1127
  readonly properties?: Record<string, unknown>;
1128
+ readonly resourceId?: string;
1115
1129
  readonly startTime?: Date;
1116
1130
  readonly status?: string;
1117
1131
  }
@@ -1239,6 +1253,35 @@ export interface Project extends TrackedResource {
1239
1253
  readonly provisioningState?: string;
1240
1254
  }
1241
1255
 
1256
+ // @public
1257
+ export interface ProjectAllowedEnvironmentTypes {
1258
+ get(resourceGroupName: string, projectName: string, environmentTypeName: string, options?: ProjectAllowedEnvironmentTypesGetOptionalParams): Promise<ProjectAllowedEnvironmentTypesGetResponse>;
1259
+ list(resourceGroupName: string, projectName: string, options?: ProjectAllowedEnvironmentTypesListOptionalParams): PagedAsyncIterableIterator<AllowedEnvironmentType>;
1260
+ }
1261
+
1262
+ // @public
1263
+ export interface ProjectAllowedEnvironmentTypesGetOptionalParams extends coreClient.OperationOptions {
1264
+ }
1265
+
1266
+ // @public
1267
+ export type ProjectAllowedEnvironmentTypesGetResponse = AllowedEnvironmentType;
1268
+
1269
+ // @public
1270
+ export interface ProjectAllowedEnvironmentTypesListNextOptionalParams extends coreClient.OperationOptions {
1271
+ top?: number;
1272
+ }
1273
+
1274
+ // @public
1275
+ export type ProjectAllowedEnvironmentTypesListNextResponse = AllowedEnvironmentTypeListResult;
1276
+
1277
+ // @public
1278
+ export interface ProjectAllowedEnvironmentTypesListOptionalParams extends coreClient.OperationOptions {
1279
+ top?: number;
1280
+ }
1281
+
1282
+ // @public
1283
+ export type ProjectAllowedEnvironmentTypesListResponse = AllowedEnvironmentTypeListResult;
1284
+
1242
1285
  // @public
1243
1286
  export interface ProjectEnvironmentType extends Resource {
1244
1287
  creatorRoleAssignment?: ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment;
@@ -23,6 +23,7 @@ import {
23
23
  ImageVersionsImpl,
24
24
  CatalogsImpl,
25
25
  EnvironmentTypesImpl,
26
+ ProjectAllowedEnvironmentTypesImpl,
26
27
  ProjectEnvironmentTypesImpl,
27
28
  DevBoxDefinitionsImpl,
28
29
  OperationsImpl,
@@ -42,6 +43,7 @@ import {
42
43
  ImageVersions,
43
44
  Catalogs,
44
45
  EnvironmentTypes,
46
+ ProjectAllowedEnvironmentTypes,
45
47
  ProjectEnvironmentTypes,
46
48
  DevBoxDefinitions,
47
49
  Operations,
@@ -87,7 +89,7 @@ export class DevCenterClient extends coreClient.ServiceClient {
87
89
  credential: credentials
88
90
  };
89
91
 
90
- const packageDetails = `azsdk-js-arm-devcenter/1.0.0-beta.1`;
92
+ const packageDetails = `azsdk-js-arm-devcenter/1.0.0-beta.2`;
91
93
  const userAgentPrefix =
92
94
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
93
95
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -141,7 +143,7 @@ export class DevCenterClient extends coreClient.ServiceClient {
141
143
 
142
144
  // Assigning values to Constant parameters
143
145
  this.$host = options.$host || "https://management.azure.com";
144
- this.apiVersion = options.apiVersion || "2022-08-01-preview";
146
+ this.apiVersion = options.apiVersion || "2022-09-01-preview";
145
147
  this.devCenters = new DevCentersImpl(this);
146
148
  this.projects = new ProjectsImpl(this);
147
149
  this.attachedNetworks = new AttachedNetworksImpl(this);
@@ -150,6 +152,9 @@ export class DevCenterClient extends coreClient.ServiceClient {
150
152
  this.imageVersions = new ImageVersionsImpl(this);
151
153
  this.catalogs = new CatalogsImpl(this);
152
154
  this.environmentTypes = new EnvironmentTypesImpl(this);
155
+ this.projectAllowedEnvironmentTypes = new ProjectAllowedEnvironmentTypesImpl(
156
+ this
157
+ );
153
158
  this.projectEnvironmentTypes = new ProjectEnvironmentTypesImpl(this);
154
159
  this.devBoxDefinitions = new DevBoxDefinitionsImpl(this);
155
160
  this.operations = new OperationsImpl(this);
@@ -198,6 +203,7 @@ export class DevCenterClient extends coreClient.ServiceClient {
198
203
  imageVersions: ImageVersions;
199
204
  catalogs: Catalogs;
200
205
  environmentTypes: EnvironmentTypes;
206
+ projectAllowedEnvironmentTypes: ProjectAllowedEnvironmentTypes;
201
207
  projectEnvironmentTypes: ProjectEnvironmentTypes;
202
208
  devBoxDefinitions: DevBoxDefinitions;
203
209
  operations: Operations;
@@ -290,6 +290,20 @@ export interface EnvironmentTypeUpdate {
290
290
  tags?: { [propertyName: string]: string };
291
291
  }
292
292
 
293
+ /** Result of the allowed environment type list operation. */
294
+ export interface AllowedEnvironmentTypeListResult {
295
+ /**
296
+ * Current page of results.
297
+ * NOTE: This property will not be serialized. It can only be populated by the server.
298
+ */
299
+ readonly value?: AllowedEnvironmentType[];
300
+ /**
301
+ * URL to get the next set of results if there are any.
302
+ * NOTE: This property will not be serialized. It can only be populated by the server.
303
+ */
304
+ readonly nextLink?: string;
305
+ }
306
+
293
307
  /** Result of the project environment type list operation. */
294
308
  export interface ProjectEnvironmentTypeListResult {
295
309
  /**
@@ -502,6 +516,11 @@ export interface OperationStatus {
502
516
  * NOTE: This property will not be serialized. It can only be populated by the server.
503
517
  */
504
518
  readonly status?: string;
519
+ /**
520
+ * The id of the resource.
521
+ * NOTE: This property will not be serialized. It can only be populated by the server.
522
+ */
523
+ readonly resourceId?: string;
505
524
  /**
506
525
  * The start time of the operation
507
526
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -814,6 +833,15 @@ export interface EnvironmentType extends Resource {
814
833
  readonly provisioningState?: string;
815
834
  }
816
835
 
836
+ /** Represents an allowed environment type. */
837
+ export interface AllowedEnvironmentType extends Resource {
838
+ /**
839
+ * The provisioning state of the resource.
840
+ * NOTE: This property will not be serialized. It can only be populated by the server.
841
+ */
842
+ readonly provisioningState?: string;
843
+ }
844
+
817
845
  /** Represents an environment type. */
818
846
  export interface ProjectEnvironmentType extends Resource {
819
847
  /** Resource tags. */
@@ -1935,6 +1963,33 @@ export interface EnvironmentTypesListByDevCenterNextOptionalParams
1935
1963
  /** Contains response data for the listByDevCenterNext operation. */
1936
1964
  export type EnvironmentTypesListByDevCenterNextResponse = EnvironmentTypeListResult;
1937
1965
 
1966
+ /** Optional parameters. */
1967
+ export interface ProjectAllowedEnvironmentTypesListOptionalParams
1968
+ extends coreClient.OperationOptions {
1969
+ /** The maximum number of resources to return from the operation. Example: '$top=10'. */
1970
+ top?: number;
1971
+ }
1972
+
1973
+ /** Contains response data for the list operation. */
1974
+ export type ProjectAllowedEnvironmentTypesListResponse = AllowedEnvironmentTypeListResult;
1975
+
1976
+ /** Optional parameters. */
1977
+ export interface ProjectAllowedEnvironmentTypesGetOptionalParams
1978
+ extends coreClient.OperationOptions {}
1979
+
1980
+ /** Contains response data for the get operation. */
1981
+ export type ProjectAllowedEnvironmentTypesGetResponse = AllowedEnvironmentType;
1982
+
1983
+ /** Optional parameters. */
1984
+ export interface ProjectAllowedEnvironmentTypesListNextOptionalParams
1985
+ extends coreClient.OperationOptions {
1986
+ /** The maximum number of resources to return from the operation. Example: '$top=10'. */
1987
+ top?: number;
1988
+ }
1989
+
1990
+ /** Contains response data for the listNext operation. */
1991
+ export type ProjectAllowedEnvironmentTypesListNextResponse = AllowedEnvironmentTypeListResult;
1992
+
1938
1993
  /** Optional parameters. */
1939
1994
  export interface ProjectEnvironmentTypesListOptionalParams
1940
1995
  extends coreClient.OperationOptions {
@@ -632,6 +632,35 @@ export const EnvironmentTypeUpdate: coreClient.CompositeMapper = {
632
632
  }
633
633
  };
634
634
 
635
+ export const AllowedEnvironmentTypeListResult: coreClient.CompositeMapper = {
636
+ type: {
637
+ name: "Composite",
638
+ className: "AllowedEnvironmentTypeListResult",
639
+ modelProperties: {
640
+ value: {
641
+ serializedName: "value",
642
+ readOnly: true,
643
+ type: {
644
+ name: "Sequence",
645
+ element: {
646
+ type: {
647
+ name: "Composite",
648
+ className: "AllowedEnvironmentType"
649
+ }
650
+ }
651
+ }
652
+ },
653
+ nextLink: {
654
+ serializedName: "nextLink",
655
+ readOnly: true,
656
+ type: {
657
+ name: "String"
658
+ }
659
+ }
660
+ }
661
+ }
662
+ };
663
+
635
664
  export const ProjectEnvironmentTypeListResult: coreClient.CompositeMapper = {
636
665
  type: {
637
666
  name: "Composite",
@@ -1102,6 +1131,13 @@ export const OperationStatus: coreClient.CompositeMapper = {
1102
1131
  name: "String"
1103
1132
  }
1104
1133
  },
1134
+ resourceId: {
1135
+ serializedName: "resourceId",
1136
+ readOnly: true,
1137
+ type: {
1138
+ name: "String"
1139
+ }
1140
+ },
1105
1141
  startTime: {
1106
1142
  serializedName: "startTime",
1107
1143
  readOnly: true,
@@ -1753,6 +1789,23 @@ export const EnvironmentType: coreClient.CompositeMapper = {
1753
1789
  }
1754
1790
  };
1755
1791
 
1792
+ export const AllowedEnvironmentType: coreClient.CompositeMapper = {
1793
+ type: {
1794
+ name: "Composite",
1795
+ className: "AllowedEnvironmentType",
1796
+ modelProperties: {
1797
+ ...Resource.type.modelProperties,
1798
+ provisioningState: {
1799
+ serializedName: "properties.provisioningState",
1800
+ readOnly: true,
1801
+ type: {
1802
+ name: "String"
1803
+ }
1804
+ }
1805
+ }
1806
+ }
1807
+ };
1808
+
1756
1809
  export const ProjectEnvironmentType: coreClient.CompositeMapper = {
1757
1810
  type: {
1758
1811
  name: "Composite",
@@ -61,7 +61,7 @@ export const $host: OperationURLParameter = {
61
61
  export const apiVersion: OperationQueryParameter = {
62
62
  parameterPath: "apiVersion",
63
63
  mapper: {
64
- defaultValue: "2022-08-01-preview",
64
+ defaultValue: "2022-09-01-preview",
65
65
  isConstant: true,
66
66
  serializedName: "api-version",
67
67
  type: {
@@ -14,6 +14,7 @@ export * from "./images";
14
14
  export * from "./imageVersions";
15
15
  export * from "./catalogs";
16
16
  export * from "./environmentTypes";
17
+ export * from "./projectAllowedEnvironmentTypes";
17
18
  export * from "./projectEnvironmentTypes";
18
19
  export * from "./devBoxDefinitions";
19
20
  export * from "./operations";