@azure/arm-devspaces 2.1.2-alpha.20260226.1 → 2.1.2-alpha.20260303.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 (62) hide show
  1. package/dist/commonjs/devSpacesManagementClient.js +123 -111
  2. package/dist/commonjs/devSpacesManagementClient.js.map +7 -1
  3. package/dist/commonjs/index.js +28 -19
  4. package/dist/commonjs/index.js.map +7 -1
  5. package/dist/commonjs/lroImpl.js +40 -35
  6. package/dist/commonjs/lroImpl.js.map +7 -1
  7. package/dist/commonjs/models/index.js +42 -41
  8. package/dist/commonjs/models/index.js.map +7 -1
  9. package/dist/commonjs/models/mappers.js +400 -372
  10. package/dist/commonjs/models/mappers.js.map +7 -1
  11. package/dist/commonjs/models/parameters.js +135 -112
  12. package/dist/commonjs/models/parameters.js.map +7 -1
  13. package/dist/commonjs/operations/containerHostMappings.js +84 -60
  14. package/dist/commonjs/operations/containerHostMappings.js.map +7 -1
  15. package/dist/commonjs/operations/controllers.js +519 -457
  16. package/dist/commonjs/operations/controllers.js.map +7 -1
  17. package/dist/commonjs/operations/index.js +19 -14
  18. package/dist/commonjs/operations/index.js.map +7 -1
  19. package/dist/commonjs/operations/operations.js +131 -108
  20. package/dist/commonjs/operations/operations.js.map +7 -1
  21. package/dist/commonjs/operationsInterfaces/containerHostMappings.js +15 -10
  22. package/dist/commonjs/operationsInterfaces/containerHostMappings.js.map +7 -1
  23. package/dist/commonjs/operationsInterfaces/controllers.js +15 -10
  24. package/dist/commonjs/operationsInterfaces/controllers.js.map +7 -1
  25. package/dist/commonjs/operationsInterfaces/index.js +19 -14
  26. package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
  27. package/dist/commonjs/operationsInterfaces/operations.js +15 -10
  28. package/dist/commonjs/operationsInterfaces/operations.js.map +7 -1
  29. package/dist/commonjs/pagingHelper.js +34 -30
  30. package/dist/commonjs/pagingHelper.js.map +7 -1
  31. package/dist/commonjs/tsdoc-metadata.json +1 -1
  32. package/dist/esm/devSpacesManagementClient.js +97 -105
  33. package/dist/esm/devSpacesManagementClient.js.map +7 -1
  34. package/dist/esm/index.js +6 -11
  35. package/dist/esm/index.js.map +7 -1
  36. package/dist/esm/lroImpl.js +22 -32
  37. package/dist/esm/lroImpl.js.map +7 -1
  38. package/dist/esm/models/index.js +23 -38
  39. package/dist/esm/models/index.js.map +7 -1
  40. package/dist/esm/models/mappers.js +381 -369
  41. package/dist/esm/models/mappers.js.map +7 -1
  42. package/dist/esm/models/parameters.js +121 -109
  43. package/dist/esm/models/parameters.js.map +7 -1
  44. package/dist/esm/operations/containerHostMappings.js +53 -53
  45. package/dist/esm/operations/containerHostMappings.js.map +7 -1
  46. package/dist/esm/operations/controllers.js +485 -447
  47. package/dist/esm/operations/controllers.js.map +7 -1
  48. package/dist/esm/operations/index.js +0 -8
  49. package/dist/esm/operations/index.js.map +7 -1
  50. package/dist/esm/operations/operations.js +99 -100
  51. package/dist/esm/operations/operations.js.map +7 -1
  52. package/dist/esm/operationsInterfaces/containerHostMappings.js +0 -9
  53. package/dist/esm/operationsInterfaces/containerHostMappings.js.map +7 -1
  54. package/dist/esm/operationsInterfaces/controllers.js +0 -9
  55. package/dist/esm/operationsInterfaces/controllers.js.map +7 -1
  56. package/dist/esm/operationsInterfaces/index.js +0 -8
  57. package/dist/esm/operationsInterfaces/index.js.map +7 -1
  58. package/dist/esm/operationsInterfaces/operations.js +0 -9
  59. package/dist/esm/operationsInterfaces/operations.js.map +7 -1
  60. package/dist/esm/pagingHelper.js +17 -28
  61. package/dist/esm/pagingHelper.js.map +7 -1
  62. package/package.json +2 -19
@@ -1,115 +1,127 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.DevSpacesManagementClient = void 0;
11
- const tslib_1 = require("tslib");
12
- const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
- const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
- const index_js_1 = require("./operations/index.js");
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var devSpacesManagementClient_exports = {};
29
+ __export(devSpacesManagementClient_exports, {
30
+ DevSpacesManagementClient: () => DevSpacesManagementClient
31
+ });
32
+ module.exports = __toCommonJS(devSpacesManagementClient_exports);
33
+ var coreClient = __toESM(require("@azure/core-client"));
34
+ var coreRestPipeline = __toESM(require("@azure/core-rest-pipeline"));
35
+ var import_operations = require("./operations/index.js");
15
36
  class DevSpacesManagementClient extends coreClient.ServiceClient {
16
- $host;
17
- apiVersion;
18
- subscriptionId;
19
- /**
20
- * Initializes a new instance of the DevSpacesManagementClient class.
21
- * @param credentials Subscription credentials which uniquely identify client subscription.
22
- * @param subscriptionId Azure subscription ID.
23
- * @param options The parameter options
24
- */
25
- constructor(credentials, subscriptionId, options) {
26
- if (credentials === undefined) {
27
- throw new Error("'credentials' cannot be null");
28
- }
29
- if (subscriptionId === undefined) {
30
- throw new Error("'subscriptionId' cannot be null");
31
- }
32
- // Initializing default values for options
33
- if (!options) {
34
- options = {};
35
- }
36
- const defaults = {
37
- requestContentType: "application/json; charset=utf-8",
38
- credential: credentials
39
- };
40
- const packageDetails = `azsdk-js-arm-devspaces/2.1.2`;
41
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
42
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
43
- : `${packageDetails}`;
44
- const optionsWithDefaults = {
45
- ...defaults,
46
- ...options,
47
- userAgentOptions: {
48
- userAgentPrefix
49
- },
50
- endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
51
- };
52
- super(optionsWithDefaults);
53
- let bearerTokenAuthenticationPolicyFound = false;
54
- if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
55
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
56
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
57
- coreRestPipeline.bearerTokenAuthenticationPolicyName);
58
- }
59
- if (!options ||
60
- !options.pipeline ||
61
- options.pipeline.getOrderedPolicies().length == 0 ||
62
- !bearerTokenAuthenticationPolicyFound) {
63
- this.pipeline.removePolicy({
64
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
65
- });
66
- this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
67
- credential: credentials,
68
- scopes: optionsWithDefaults.credentialScopes ??
69
- `${optionsWithDefaults.endpoint}/.default`,
70
- challengeCallbacks: {
71
- authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
72
- }
73
- }));
74
- }
75
- // Parameter assignments
76
- this.subscriptionId = subscriptionId;
77
- // Assigning values to Constant parameters
78
- this.$host = options.$host || "https://management.azure.com";
79
- this.apiVersion = options.apiVersion || "2019-04-01";
80
- this.containerHostMappings = new index_js_1.ContainerHostMappingsImpl(this);
81
- this.operations = new index_js_1.OperationsImpl(this);
82
- this.controllers = new index_js_1.ControllersImpl(this);
83
- this.addCustomApiVersionPolicy(options.apiVersion);
37
+ $host;
38
+ apiVersion;
39
+ subscriptionId;
40
+ /**
41
+ * Initializes a new instance of the DevSpacesManagementClient class.
42
+ * @param credentials Subscription credentials which uniquely identify client subscription.
43
+ * @param subscriptionId Azure subscription ID.
44
+ * @param options The parameter options
45
+ */
46
+ constructor(credentials, subscriptionId, options) {
47
+ if (credentials === void 0) {
48
+ throw new Error("'credentials' cannot be null");
84
49
  }
85
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
86
- addCustomApiVersionPolicy(apiVersion) {
87
- if (!apiVersion) {
88
- return;
89
- }
90
- const apiVersionPolicy = {
91
- name: "CustomApiVersionPolicy",
92
- async sendRequest(request, next) {
93
- const param = request.url.split("?");
94
- if (param.length > 1) {
95
- const newParams = param[1].split("&").map((item) => {
96
- if (item.indexOf("api-version") > -1) {
97
- return "api-version=" + apiVersion;
98
- }
99
- else {
100
- return item;
101
- }
102
- });
103
- request.url = param[0] + "?" + newParams.join("&");
104
- }
105
- return next(request);
106
- }
107
- };
108
- this.pipeline.addPolicy(apiVersionPolicy);
50
+ if (subscriptionId === void 0) {
51
+ throw new Error("'subscriptionId' cannot be null");
109
52
  }
110
- containerHostMappings;
111
- operations;
112
- controllers;
53
+ if (!options) {
54
+ options = {};
55
+ }
56
+ const defaults = {
57
+ requestContentType: "application/json; charset=utf-8",
58
+ credential: credentials
59
+ };
60
+ const packageDetails = `azsdk-js-arm-devspaces/2.1.2`;
61
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
62
+ const optionsWithDefaults = {
63
+ ...defaults,
64
+ ...options,
65
+ userAgentOptions: {
66
+ userAgentPrefix
67
+ },
68
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
69
+ };
70
+ super(optionsWithDefaults);
71
+ let bearerTokenAuthenticationPolicyFound = false;
72
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
73
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
74
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
75
+ (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName
76
+ );
77
+ }
78
+ if (!options || !options.pipeline || options.pipeline.getOrderedPolicies().length == 0 || !bearerTokenAuthenticationPolicyFound) {
79
+ this.pipeline.removePolicy({
80
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
81
+ });
82
+ this.pipeline.addPolicy(
83
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
84
+ credential: credentials,
85
+ scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
86
+ challengeCallbacks: {
87
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
88
+ }
89
+ })
90
+ );
91
+ }
92
+ this.subscriptionId = subscriptionId;
93
+ this.$host = options.$host || "https://management.azure.com";
94
+ this.apiVersion = options.apiVersion || "2019-04-01";
95
+ this.containerHostMappings = new import_operations.ContainerHostMappingsImpl(this);
96
+ this.operations = new import_operations.OperationsImpl(this);
97
+ this.controllers = new import_operations.ControllersImpl(this);
98
+ this.addCustomApiVersionPolicy(options.apiVersion);
99
+ }
100
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
101
+ addCustomApiVersionPolicy(apiVersion) {
102
+ if (!apiVersion) {
103
+ return;
104
+ }
105
+ const apiVersionPolicy = {
106
+ name: "CustomApiVersionPolicy",
107
+ async sendRequest(request, next) {
108
+ const param = request.url.split("?");
109
+ if (param.length > 1) {
110
+ const newParams = param[1].split("&").map((item) => {
111
+ if (item.indexOf("api-version") > -1) {
112
+ return "api-version=" + apiVersion;
113
+ } else {
114
+ return item;
115
+ }
116
+ });
117
+ request.url = param[0] + "?" + newParams.join("&");
118
+ }
119
+ return next(request);
120
+ }
121
+ };
122
+ this.pipeline.addPolicy(apiVersionPolicy);
123
+ }
124
+ containerHostMappings;
125
+ operations;
126
+ controllers;
113
127
  }
114
- exports.DevSpacesManagementClient = DevSpacesManagementClient;
115
- //# sourceMappingURL=devSpacesManagementClient.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"devSpacesManagementClient.js","sourceRoot":"","sources":["../../src/devSpacesManagementClient.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n ContainerHostMappingsImpl,\n OperationsImpl,\n ControllersImpl\n} from \"./operations/index.js\";\nimport {\n ContainerHostMappings,\n Operations,\n Controllers\n} from \"./operationsInterfaces/index.js\";\nimport { DevSpacesManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class DevSpacesManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DevSpacesManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DevSpacesManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DevSpacesManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-devspaces/2.1.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2019-04-01\";\n this.containerHostMappings = new ContainerHostMappingsImpl(this);\n this.operations = new OperationsImpl(this);\n this.controllers = new ControllersImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n containerHostMappings: ContainerHostMappings;\n operations: Operations;\n controllers: Controllers;\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/devspaces/arm-devspaces/src/devSpacesManagementClient.ts"],
4
+ "sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n ContainerHostMappingsImpl,\n OperationsImpl,\n ControllersImpl\n} from \"./operations/index.js\";\nimport {\n ContainerHostMappings,\n Operations,\n Controllers\n} from \"./operationsInterfaces/index.js\";\nimport { DevSpacesManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class DevSpacesManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DevSpacesManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DevSpacesManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DevSpacesManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-devspaces/2.1.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2019-04-01\";\n this.containerHostMappings = new ContainerHostMappingsImpl(this);\n this.operations = new OperationsImpl(this);\n this.controllers = new ControllersImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n containerHostMappings: ContainerHostMappings;\n operations: Operations;\n controllers: Controllers;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,iBAA4B;AAC5B,uBAAkC;AAOlC,wBAIO;AAQA,MAAM,kCAAkC,WAAW,cAAc;AAAA,EACtE;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,YACE,aACA,gBACA,SACA;AACA,QAAI,gBAAgB,QAAW;AAC7B,YAAM,IAAI,MAAM,8BAA8B;AAAA,IAChD;AACA,QAAI,mBAAmB,QAAW;AAChC,YAAM,IAAI,MAAM,iCAAiC;AAAA,IACnD;AAGA,QAAI,CAAC,SAAS;AACZ,gBAAU,CAAC;AAAA,IACb;AACA,UAAM,WAAoD;AAAA,MACxD,oBAAoB;AAAA,MACpB,YAAY;AAAA,IACd;AAEA,UAAM,iBAAiB;AACvB,UAAM,kBACJ,QAAQ,oBAAoB,QAAQ,iBAAiB,kBACjD,GAAG,QAAQ,iBAAiB,eAAe,IAAI,cAAc,KAC7D,GAAG,cAAc;AAEvB,UAAM,sBAAsB;AAAA,MAC1B,GAAG;AAAA,MACH,GAAG;AAAA,MACH,kBAAkB;AAAA,QAChB;AAAA,MACF;AAAA,MACA,UACE,QAAQ,YAAY,QAAQ,WAAW;AAAA,IAC3C;AACA,UAAM,mBAAmB;AAEzB,QAAI,uCAAgD;AACpD,QAAI,SAAS,YAAY,QAAQ,SAAS,mBAAmB,EAAE,SAAS,GAAG;AACzE,YAAM,mBAAsD,QAAQ,SAAS,mBAAmB;AAChG,6CAAuC,iBAAiB;AAAA,QACtD,CAAC,mBACC,eAAe,SACf,iBAAiB;AAAA,MACrB;AAAA,IACF;AACA,QACE,CAAC,WACD,CAAC,QAAQ,YACT,QAAQ,SAAS,mBAAmB,EAAE,UAAU,KAChD,CAAC,sCACD;AACA,WAAK,SAAS,aAAa;AAAA,QACzB,MAAM,iBAAiB;AAAA,MACzB,CAAC;AACD,WAAK,SAAS;AAAA,QACZ,iBAAiB,gCAAgC;AAAA,UAC/C,YAAY;AAAA,UACZ,QACE,oBAAoB,oBACpB,GAAG,oBAAoB,QAAQ;AAAA,UACjC,oBAAoB;AAAA,YAClB,6BACE,WAAW;AAAA,UACf;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAEA,SAAK,iBAAiB;AAGtB,SAAK,QAAQ,QAAQ,SAAS;AAC9B,SAAK,aAAa,QAAQ,cAAc;AACxC,SAAK,wBAAwB,IAAI,4CAA0B,IAAI;AAC/D,SAAK,aAAa,IAAI,iCAAe,IAAI;AACzC,SAAK,cAAc,IAAI,kCAAgB,IAAI;AAC3C,SAAK,0BAA0B,QAAQ,UAAU;AAAA,EACnD;AAAA;AAAA,EAGQ,0BAA0B,YAAqB;AACrD,QAAI,CAAC,YAAY;AACf;AAAA,IACF;AACA,UAAM,mBAAmB;AAAA,MACvB,MAAM;AAAA,MACN,MAAM,YACJ,SACA,MAC2B;AAC3B,cAAM,QAAQ,QAAQ,IAAI,MAAM,GAAG;AACnC,YAAI,MAAM,SAAS,GAAG;AACpB,gBAAM,YAAY,MAAM,CAAC,EAAE,MAAM,GAAG,EAAE,IAAI,CAAC,SAAS;AAClD,gBAAI,KAAK,QAAQ,aAAa,IAAI,IAAI;AACpC,qBAAO,iBAAiB;AAAA,YAC1B,OAAO;AACL,qBAAO;AAAA,YACT;AAAA,UACF,CAAC;AACD,kBAAQ,MAAM,MAAM,CAAC,IAAI,MAAM,UAAU,KAAK,GAAG;AAAA,QACnD;AACA,eAAO,KAAK,OAAO;AAAA,MACrB;AAAA,IACF;AACA,SAAK,SAAS,UAAU,gBAAgB;AAAA,EAC1C;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AACF;",
6
+ "names": []
7
+ }
@@ -1,19 +1,28 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.DevSpacesManagementClient = exports.getContinuationToken = void 0;
11
- const tslib_1 = require("tslib");
12
- /// <reference lib="esnext.asynciterable" />
13
- var pagingHelper_js_1 = require("./pagingHelper.js");
14
- Object.defineProperty(exports, "getContinuationToken", { enumerable: true, get: function () { return pagingHelper_js_1.getContinuationToken; } });
15
- tslib_1.__exportStar(require("./models/index.js"), exports);
16
- var devSpacesManagementClient_js_1 = require("./devSpacesManagementClient.js");
17
- Object.defineProperty(exports, "DevSpacesManagementClient", { enumerable: true, get: function () { return devSpacesManagementClient_js_1.DevSpacesManagementClient; } });
18
- tslib_1.__exportStar(require("./operationsInterfaces/index.js"), exports);
19
- //# sourceMappingURL=index.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var src_exports = {};
20
+ __export(src_exports, {
21
+ DevSpacesManagementClient: () => import_devSpacesManagementClient.DevSpacesManagementClient,
22
+ getContinuationToken: () => import_pagingHelper.getContinuationToken
23
+ });
24
+ module.exports = __toCommonJS(src_exports);
25
+ var import_pagingHelper = require("./pagingHelper.js");
26
+ __reExport(src_exports, require("./models/index.js"), module.exports);
27
+ var import_devSpacesManagementClient = require("./devSpacesManagementClient.js");
28
+ __reExport(src_exports, require("./operationsInterfaces/index.js"), module.exports);
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,4CAA4C;AAC5C,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA;AAC7B,4DAAkC;AAClC,+EAA2E;AAAlE,yIAAA,yBAAyB,OAAA;AAClC,0EAAgD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { DevSpacesManagementClient } from \"./devSpacesManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/devspaces/arm-devspaces/src/index.ts"],
4
+ "sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { DevSpacesManagementClient } from \"./devSpacesManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAAqC;AACrC,wBAAc,8BAVd;AAWA,uCAA0C;AAC1C,wBAAc,4CAZd;",
6
+ "names": []
7
+ }
@@ -1,37 +1,42 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.LroImpl = void 0;
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var lroImpl_exports = {};
19
+ __export(lroImpl_exports, {
20
+ LroImpl: () => LroImpl
21
+ });
22
+ module.exports = __toCommonJS(lroImpl_exports);
11
23
  class LroImpl {
12
- sendOperationFn;
13
- args;
14
- spec;
15
- requestPath;
16
- requestMethod;
17
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
18
- this.sendOperationFn = sendOperationFn;
19
- this.args = args;
20
- this.spec = spec;
21
- this.requestPath = requestPath;
22
- this.requestMethod = requestMethod;
23
- }
24
- async sendInitialRequest() {
25
- return this.sendOperationFn(this.args, this.spec);
26
- }
27
- async sendPollRequest(path) {
28
- const { requestBody, ...restSpec } = this.spec;
29
- return this.sendOperationFn(this.args, {
30
- ...restSpec,
31
- path,
32
- httpMethod: "GET"
33
- });
34
- }
24
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
25
+ this.sendOperationFn = sendOperationFn;
26
+ this.args = args;
27
+ this.spec = spec;
28
+ this.requestPath = requestPath;
29
+ this.requestMethod = requestMethod;
30
+ }
31
+ async sendInitialRequest() {
32
+ return this.sendOperationFn(this.args, this.spec);
33
+ }
34
+ async sendPollRequest(path) {
35
+ const { requestBody, ...restSpec } = this.spec;
36
+ return this.sendOperationFn(this.args, {
37
+ ...restSpec,
38
+ path,
39
+ httpMethod: "GET"
40
+ });
41
+ }
35
42
  }
36
- exports.LroImpl = LroImpl;
37
- //# sourceMappingURL=lroImpl.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIH,MAAa,OAAO;IAER;IACA;IACA;IAKD;IACA;IATT,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE;YACrC,GAAG,QAAQ;YACX,IAAI;YACJ,UAAU,EAAE,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;CACF;AAvBD,0BAuBC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/devspaces/arm-devspaces/src/lroImpl.ts"],
4
+ "sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,MAAM,QAA8C;AAAA,EACzD,YACU,iBACA,MACA,MAKD,cAAsB,KAAK,MAC3B,gBAAwB,KAAK,YACpC;AATQ;AACA;AACA;AAKD;AACA;AAAA,EACN;AAAA,EACH,MAAa,qBAA8C;AACzD,WAAO,KAAK,gBAAgB,KAAK,MAAM,KAAK,IAAI;AAAA,EAClD;AAAA,EACA,MAAa,gBAAgB,MAAuC;AAClE,UAAM,EAAE,aAAa,GAAG,SAAS,IAAI,KAAK;AAC1C,WAAO,KAAK,gBAAgB,KAAK,MAAM;AAAA,MACrC,GAAG;AAAA,MACH;AAAA,MACA,YAAY;AAAA,IACd,CAAC;AAAA,EACH;AACF;",
6
+ "names": []
7
+ }
@@ -1,41 +1,42 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.KnownSkuTier = exports.KnownSkuName = exports.KnownProvisioningState = void 0;
11
- /** Known values of {@link ProvisioningState} that the service accepts. */
12
- var KnownProvisioningState;
13
- (function (KnownProvisioningState) {
14
- /** Succeeded */
15
- KnownProvisioningState["Succeeded"] = "Succeeded";
16
- /** Failed */
17
- KnownProvisioningState["Failed"] = "Failed";
18
- /** Canceled */
19
- KnownProvisioningState["Canceled"] = "Canceled";
20
- /** Updating */
21
- KnownProvisioningState["Updating"] = "Updating";
22
- /** Creating */
23
- KnownProvisioningState["Creating"] = "Creating";
24
- /** Deleting */
25
- KnownProvisioningState["Deleting"] = "Deleting";
26
- /** Deleted */
27
- KnownProvisioningState["Deleted"] = "Deleted";
28
- })(KnownProvisioningState || (exports.KnownProvisioningState = KnownProvisioningState = {}));
29
- /** Known values of {@link SkuName} that the service accepts. */
30
- var KnownSkuName;
31
- (function (KnownSkuName) {
32
- /** S1 */
33
- KnownSkuName["S1"] = "S1";
34
- })(KnownSkuName || (exports.KnownSkuName = KnownSkuName = {}));
35
- /** Known values of {@link SkuTier} that the service accepts. */
36
- var KnownSkuTier;
37
- (function (KnownSkuTier) {
38
- /** Standard */
39
- KnownSkuTier["Standard"] = "Standard";
40
- })(KnownSkuTier || (exports.KnownSkuTier = KnownSkuTier = {}));
41
- //# sourceMappingURL=index.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var models_exports = {};
19
+ __export(models_exports, {
20
+ KnownProvisioningState: () => KnownProvisioningState,
21
+ KnownSkuName: () => KnownSkuName,
22
+ KnownSkuTier: () => KnownSkuTier
23
+ });
24
+ module.exports = __toCommonJS(models_exports);
25
+ var KnownProvisioningState = /* @__PURE__ */ ((KnownProvisioningState2) => {
26
+ KnownProvisioningState2["Succeeded"] = "Succeeded";
27
+ KnownProvisioningState2["Failed"] = "Failed";
28
+ KnownProvisioningState2["Canceled"] = "Canceled";
29
+ KnownProvisioningState2["Updating"] = "Updating";
30
+ KnownProvisioningState2["Creating"] = "Creating";
31
+ KnownProvisioningState2["Deleting"] = "Deleting";
32
+ KnownProvisioningState2["Deleted"] = "Deleted";
33
+ return KnownProvisioningState2;
34
+ })(KnownProvisioningState || {});
35
+ var KnownSkuName = /* @__PURE__ */ ((KnownSkuName2) => {
36
+ KnownSkuName2["S1"] = "S1";
37
+ return KnownSkuName2;
38
+ })(KnownSkuName || {});
39
+ var KnownSkuTier = /* @__PURE__ */ ((KnownSkuTier2) => {
40
+ KnownSkuTier2["Standard"] = "Standard";
41
+ return KnownSkuTier2;
42
+ })(KnownSkuTier || {});
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAuLH,0EAA0E;AAC1E,IAAY,sBAeX;AAfD,WAAY,sBAAsB;IAChC,gBAAgB;IAChB,iDAAuB,CAAA;IACvB,aAAa;IACb,2CAAiB,CAAA;IACjB,eAAe;IACf,+CAAqB,CAAA;IACrB,eAAe;IACf,+CAAqB,CAAA;IACrB,eAAe;IACf,+CAAqB,CAAA;IACrB,eAAe;IACf,+CAAqB,CAAA;IACrB,cAAc;IACd,6CAAmB,CAAA;AACrB,CAAC,EAfW,sBAAsB,sCAAtB,sBAAsB,QAejC;AAiBD,gEAAgE;AAChE,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,SAAS;IACT,yBAAS,CAAA;AACX,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAWD,gEAAgE;AAChE,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,eAAe;IACf,qCAAqB,CAAA;AACvB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport type OrchestratorSpecificConnectionDetailsUnion =\n | OrchestratorSpecificConnectionDetails\n | KubernetesConnectionDetails;\n\n/** Container host mapping object specifying the Container host resource ID and its associated Controller resource. */\nexport interface ContainerHostMapping {\n /** ARM ID of the Container Host resource */\n containerHostResourceId?: string;\n /**\n * ARM ID of the mapped Controller resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly mappedControllerResourceId?: string;\n}\n\n/** Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. */\nexport interface DevSpacesErrorResponse {\n /** The details of the error. */\n error?: ErrorDetails;\n}\n\nexport interface ErrorDetails {\n /**\n * Status code for the error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * Error message describing the error in detail.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The target of the particular error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n}\n\nexport interface ResourceProviderOperationList {\n /** Resource provider operations list. */\n value?: ResourceProviderOperationDefinition[];\n /**\n * The URI that can be used to request the next page for list of Azure operations.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\nexport interface ResourceProviderOperationDefinition {\n /** Resource provider operation name. */\n name?: string;\n display?: ResourceProviderOperationDisplay;\n}\n\nexport interface ResourceProviderOperationDisplay {\n /** Name of the resource provider. */\n provider?: string;\n /** Name of the resource type. */\n resource?: string;\n /** Name of the resource provider operation. */\n operation?: string;\n /** Description of the resource provider operation. */\n description?: string;\n}\n\n/** Model representing SKU for Azure Dev Spaces Controller. */\nexport interface Sku {\n /** The name of the SKU for Azure Dev Spaces Controller. */\n name: SkuName;\n /** The tier of the SKU for Azure Dev Spaces Controller. */\n tier?: SkuTier;\n}\n\n/** An Azure resource. */\nexport interface Resource {\n /**\n * Fully qualified resource Id for the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** Parameters for updating an Azure Dev Spaces Controller. */\nexport interface ControllerUpdateParameters {\n /** Tags for the Azure Dev Spaces Controller. */\n tags?: { [propertyName: string]: string };\n /** Credentials of the target container host (base64). */\n targetContainerHostCredentialsBase64?: string;\n}\n\nexport interface ControllerList {\n /** List of Azure Dev Spaces Controllers. */\n value?: Controller[];\n /**\n * The URI that can be used to request the next page for list of Azure Dev Spaces Controllers.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Parameters for listing connection details of an Azure Dev Spaces Controller. */\nexport interface ListConnectionDetailsParameters {\n /** Resource ID of the target container host mapped to the Azure Dev Spaces Controller. */\n targetContainerHostResourceId: string;\n}\n\nexport interface ControllerConnectionDetailsList {\n /** List of Azure Dev Spaces Controller connection details. */\n connectionDetailsList?: ControllerConnectionDetails[];\n}\n\nexport interface ControllerConnectionDetails {\n /** Base class for types that supply values used to connect to container orchestrators */\n orchestratorSpecificConnectionDetails?: OrchestratorSpecificConnectionDetailsUnion;\n}\n\n/** Base class for types that supply values used to connect to container orchestrators */\nexport interface OrchestratorSpecificConnectionDetails {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n instanceType: \"Kubernetes\";\n}\n\n/** The resource model definition for a ARM tracked top level resource. */\nexport interface TrackedResource extends Resource {\n /** Tags for the Azure resource. */\n tags?: { [propertyName: string]: string };\n /** Region where the Azure resource is located. */\n location?: string;\n}\n\n/** Contains information used to connect to a Kubernetes cluster */\nexport interface KubernetesConnectionDetails\n extends OrchestratorSpecificConnectionDetails {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n instanceType: \"Kubernetes\";\n /** Gets the kubeconfig for the cluster. */\n kubeConfig?: string;\n}\n\nexport interface Controller extends TrackedResource {\n /** Model representing SKU for Azure Dev Spaces Controller. */\n sku: Sku;\n /**\n * Provisioning state of the Azure Dev Spaces Controller.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n /**\n * DNS suffix for public endpoints running in the Azure Dev Spaces Controller.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly hostSuffix?: string;\n /**\n * DNS name for accessing DataPlane services\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly dataPlaneFqdn?: string;\n /**\n * DNS of the target container host's API server\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly targetContainerHostApiServerFqdn?: string;\n /** Resource ID of the target container host */\n targetContainerHostResourceId: string;\n /** Credentials of the target container host (base64). */\n targetContainerHostCredentialsBase64: string;\n}\n\n/** Known values of {@link ProvisioningState} that the service accepts. */\nexport enum KnownProvisioningState {\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\",\n /** Canceled */\n Canceled = \"Canceled\",\n /** Updating */\n Updating = \"Updating\",\n /** Creating */\n Creating = \"Creating\",\n /** Deleting */\n Deleting = \"Deleting\",\n /** Deleted */\n Deleted = \"Deleted\"\n}\n\n/**\n * Defines values for ProvisioningState. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Failed** \\\n * **Canceled** \\\n * **Updating** \\\n * **Creating** \\\n * **Deleting** \\\n * **Deleted**\n */\nexport type ProvisioningState = string;\n\n/** Known values of {@link SkuName} that the service accepts. */\nexport enum KnownSkuName {\n /** S1 */\n S1 = \"S1\"\n}\n\n/**\n * Defines values for SkuName. \\\n * {@link KnownSkuName} can be used interchangeably with SkuName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **S1**\n */\nexport type SkuName = string;\n\n/** Known values of {@link SkuTier} that the service accepts. */\nexport enum KnownSkuTier {\n /** Standard */\n Standard = \"Standard\"\n}\n\n/**\n * Defines values for SkuTier. \\\n * {@link KnownSkuTier} can be used interchangeably with SkuTier,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Standard**\n */\nexport type SkuTier = string;\n\n/** Optional parameters. */\nexport interface ContainerHostMappingsGetContainerHostMappingOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getContainerHostMapping operation. */\nexport type ContainerHostMappingsGetContainerHostMappingResponse = ContainerHostMapping;\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationsListResponse = ResourceProviderOperationList;\n\n/** Optional parameters. */\nexport interface OperationsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type OperationsListNextResponse = ResourceProviderOperationList;\n\n/** Optional parameters. */\nexport interface ControllersGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ControllersGetResponse = Controller;\n\n/** Optional parameters. */\nexport interface ControllersCreateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the create operation. */\nexport type ControllersCreateResponse = Controller;\n\n/** Optional parameters. */\nexport interface ControllersDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ControllersUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type ControllersUpdateResponse = Controller;\n\n/** Optional parameters. */\nexport interface ControllersListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type ControllersListByResourceGroupResponse = ControllerList;\n\n/** Optional parameters. */\nexport interface ControllersListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type ControllersListResponse = ControllerList;\n\n/** Optional parameters. */\nexport interface ControllersListConnectionDetailsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listConnectionDetails operation. */\nexport type ControllersListConnectionDetailsResponse = ControllerConnectionDetailsList;\n\n/** Optional parameters. */\nexport interface ControllersListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type ControllersListByResourceGroupNextResponse = ControllerList;\n\n/** Optional parameters. */\nexport interface ControllersListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type ControllersListNextResponse = ControllerList;\n\n/** Optional parameters. */\nexport interface DevSpacesManagementClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/devspaces/arm-devspaces/src/models/index.ts"],
4
+ "sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport type OrchestratorSpecificConnectionDetailsUnion =\n | OrchestratorSpecificConnectionDetails\n | KubernetesConnectionDetails;\n\n/** Container host mapping object specifying the Container host resource ID and its associated Controller resource. */\nexport interface ContainerHostMapping {\n /** ARM ID of the Container Host resource */\n containerHostResourceId?: string;\n /**\n * ARM ID of the mapped Controller resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly mappedControllerResourceId?: string;\n}\n\n/** Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. */\nexport interface DevSpacesErrorResponse {\n /** The details of the error. */\n error?: ErrorDetails;\n}\n\nexport interface ErrorDetails {\n /**\n * Status code for the error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * Error message describing the error in detail.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The target of the particular error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n}\n\nexport interface ResourceProviderOperationList {\n /** Resource provider operations list. */\n value?: ResourceProviderOperationDefinition[];\n /**\n * The URI that can be used to request the next page for list of Azure operations.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\nexport interface ResourceProviderOperationDefinition {\n /** Resource provider operation name. */\n name?: string;\n display?: ResourceProviderOperationDisplay;\n}\n\nexport interface ResourceProviderOperationDisplay {\n /** Name of the resource provider. */\n provider?: string;\n /** Name of the resource type. */\n resource?: string;\n /** Name of the resource provider operation. */\n operation?: string;\n /** Description of the resource provider operation. */\n description?: string;\n}\n\n/** Model representing SKU for Azure Dev Spaces Controller. */\nexport interface Sku {\n /** The name of the SKU for Azure Dev Spaces Controller. */\n name: SkuName;\n /** The tier of the SKU for Azure Dev Spaces Controller. */\n tier?: SkuTier;\n}\n\n/** An Azure resource. */\nexport interface Resource {\n /**\n * Fully qualified resource Id for the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** Parameters for updating an Azure Dev Spaces Controller. */\nexport interface ControllerUpdateParameters {\n /** Tags for the Azure Dev Spaces Controller. */\n tags?: { [propertyName: string]: string };\n /** Credentials of the target container host (base64). */\n targetContainerHostCredentialsBase64?: string;\n}\n\nexport interface ControllerList {\n /** List of Azure Dev Spaces Controllers. */\n value?: Controller[];\n /**\n * The URI that can be used to request the next page for list of Azure Dev Spaces Controllers.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Parameters for listing connection details of an Azure Dev Spaces Controller. */\nexport interface ListConnectionDetailsParameters {\n /** Resource ID of the target container host mapped to the Azure Dev Spaces Controller. */\n targetContainerHostResourceId: string;\n}\n\nexport interface ControllerConnectionDetailsList {\n /** List of Azure Dev Spaces Controller connection details. */\n connectionDetailsList?: ControllerConnectionDetails[];\n}\n\nexport interface ControllerConnectionDetails {\n /** Base class for types that supply values used to connect to container orchestrators */\n orchestratorSpecificConnectionDetails?: OrchestratorSpecificConnectionDetailsUnion;\n}\n\n/** Base class for types that supply values used to connect to container orchestrators */\nexport interface OrchestratorSpecificConnectionDetails {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n instanceType: \"Kubernetes\";\n}\n\n/** The resource model definition for a ARM tracked top level resource. */\nexport interface TrackedResource extends Resource {\n /** Tags for the Azure resource. */\n tags?: { [propertyName: string]: string };\n /** Region where the Azure resource is located. */\n location?: string;\n}\n\n/** Contains information used to connect to a Kubernetes cluster */\nexport interface KubernetesConnectionDetails\n extends OrchestratorSpecificConnectionDetails {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n instanceType: \"Kubernetes\";\n /** Gets the kubeconfig for the cluster. */\n kubeConfig?: string;\n}\n\nexport interface Controller extends TrackedResource {\n /** Model representing SKU for Azure Dev Spaces Controller. */\n sku: Sku;\n /**\n * Provisioning state of the Azure Dev Spaces Controller.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n /**\n * DNS suffix for public endpoints running in the Azure Dev Spaces Controller.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly hostSuffix?: string;\n /**\n * DNS name for accessing DataPlane services\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly dataPlaneFqdn?: string;\n /**\n * DNS of the target container host's API server\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly targetContainerHostApiServerFqdn?: string;\n /** Resource ID of the target container host */\n targetContainerHostResourceId: string;\n /** Credentials of the target container host (base64). */\n targetContainerHostCredentialsBase64: string;\n}\n\n/** Known values of {@link ProvisioningState} that the service accepts. */\nexport enum KnownProvisioningState {\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\",\n /** Canceled */\n Canceled = \"Canceled\",\n /** Updating */\n Updating = \"Updating\",\n /** Creating */\n Creating = \"Creating\",\n /** Deleting */\n Deleting = \"Deleting\",\n /** Deleted */\n Deleted = \"Deleted\"\n}\n\n/**\n * Defines values for ProvisioningState. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Failed** \\\n * **Canceled** \\\n * **Updating** \\\n * **Creating** \\\n * **Deleting** \\\n * **Deleted**\n */\nexport type ProvisioningState = string;\n\n/** Known values of {@link SkuName} that the service accepts. */\nexport enum KnownSkuName {\n /** S1 */\n S1 = \"S1\"\n}\n\n/**\n * Defines values for SkuName. \\\n * {@link KnownSkuName} can be used interchangeably with SkuName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **S1**\n */\nexport type SkuName = string;\n\n/** Known values of {@link SkuTier} that the service accepts. */\nexport enum KnownSkuTier {\n /** Standard */\n Standard = \"Standard\"\n}\n\n/**\n * Defines values for SkuTier. \\\n * {@link KnownSkuTier} can be used interchangeably with SkuTier,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Standard**\n */\nexport type SkuTier = string;\n\n/** Optional parameters. */\nexport interface ContainerHostMappingsGetContainerHostMappingOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getContainerHostMapping operation. */\nexport type ContainerHostMappingsGetContainerHostMappingResponse = ContainerHostMapping;\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationsListResponse = ResourceProviderOperationList;\n\n/** Optional parameters. */\nexport interface OperationsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type OperationsListNextResponse = ResourceProviderOperationList;\n\n/** Optional parameters. */\nexport interface ControllersGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ControllersGetResponse = Controller;\n\n/** Optional parameters. */\nexport interface ControllersCreateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the create operation. */\nexport type ControllersCreateResponse = Controller;\n\n/** Optional parameters. */\nexport interface ControllersDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface ControllersUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the update operation. */\nexport type ControllersUpdateResponse = Controller;\n\n/** Optional parameters. */\nexport interface ControllersListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type ControllersListByResourceGroupResponse = ControllerList;\n\n/** Optional parameters. */\nexport interface ControllersListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type ControllersListResponse = ControllerList;\n\n/** Optional parameters. */\nexport interface ControllersListConnectionDetailsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listConnectionDetails operation. */\nexport type ControllersListConnectionDetailsResponse = ControllerConnectionDetailsList;\n\n/** Optional parameters. */\nexport interface ControllersListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type ControllersListByResourceGroupNextResponse = ControllerList;\n\n/** Optional parameters. */\nexport interface ControllersListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type ControllersListNextResponse = ControllerList;\n\n/** Optional parameters. */\nexport interface DevSpacesManagementClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA8LO,IAAK,yBAAL,kBAAKA,4BAAL;AAEL,EAAAA,wBAAA,eAAY;AAEZ,EAAAA,wBAAA,YAAS;AAET,EAAAA,wBAAA,cAAW;AAEX,EAAAA,wBAAA,cAAW;AAEX,EAAAA,wBAAA,cAAW;AAEX,EAAAA,wBAAA,cAAW;AAEX,EAAAA,wBAAA,aAAU;AAdA,SAAAA;AAAA,GAAA;AAiCL,IAAK,eAAL,kBAAKC,kBAAL;AAEL,EAAAA,cAAA,QAAK;AAFK,SAAAA;AAAA,GAAA;AAeL,IAAK,eAAL,kBAAKC,kBAAL;AAEL,EAAAA,cAAA,cAAW;AAFD,SAAAA;AAAA,GAAA;",
6
+ "names": ["KnownProvisioningState", "KnownSkuName", "KnownSkuTier"]
7
+ }