@azure/arm-visualstudio 4.0.0-alpha.20250718.1 → 4.0.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +17 -7
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/accounts.js +1 -0
- package/dist/browser/operations/accounts.js.map +1 -1
- package/dist/browser/operations/extensions.js +1 -0
- package/dist/browser/operations/extensions.js.map +1 -1
- package/dist/browser/operations/operations.js +1 -0
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/projects.js +12 -6
- package/dist/browser/operations/projects.js.map +1 -1
- package/dist/browser/visualStudioResourceProviderClient.js +17 -5
- package/dist/browser/visualStudioResourceProviderClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +17 -7
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/accounts.js +1 -0
- package/dist/commonjs/operations/accounts.js.map +1 -1
- package/dist/commonjs/operations/extensions.js +1 -0
- package/dist/commonjs/operations/extensions.js.map +1 -1
- package/dist/commonjs/operations/operations.js +1 -0
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/projects.js +12 -6
- package/dist/commonjs/operations/projects.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/commonjs/visualStudioResourceProviderClient.js +17 -5
- package/dist/commonjs/visualStudioResourceProviderClient.js.map +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +17 -7
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/accounts.js +1 -0
- package/dist/esm/operations/accounts.js.map +1 -1
- package/dist/esm/operations/extensions.js +1 -0
- package/dist/esm/operations/extensions.js.map +1 -1
- package/dist/esm/operations/operations.js +1 -0
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/projects.js +12 -6
- package/dist/esm/operations/projects.js.map +1 -1
- package/dist/esm/visualStudioResourceProviderClient.js +17 -5
- package/dist/esm/visualStudioResourceProviderClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +17 -7
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/accounts.js +1 -0
- package/dist/react-native/operations/accounts.js.map +1 -1
- package/dist/react-native/operations/extensions.js +1 -0
- package/dist/react-native/operations/extensions.js.map +1 -1
- package/dist/react-native/operations/operations.js +1 -0
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/projects.js +12 -6
- package/dist/react-native/operations/projects.js.map +1 -1
- package/dist/react-native/visualStudioResourceProviderClient.js +17 -5
- package/dist/react-native/visualStudioResourceProviderClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-visualstudio-node.api.md +314 -314
package/dist/browser/lroImpl.js
CHANGED
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __rest } from "tslib";
|
|
9
8
|
export class LroImpl {
|
|
9
|
+
sendOperationFn;
|
|
10
|
+
args;
|
|
11
|
+
spec;
|
|
12
|
+
requestPath;
|
|
13
|
+
requestMethod;
|
|
10
14
|
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
11
15
|
this.sendOperationFn = sendOperationFn;
|
|
12
16
|
this.args = args;
|
|
@@ -18,8 +22,12 @@ export class LroImpl {
|
|
|
18
22
|
return this.sendOperationFn(this.args, this.spec);
|
|
19
23
|
}
|
|
20
24
|
async sendPollRequest(path) {
|
|
21
|
-
const
|
|
22
|
-
return this.sendOperationFn(this.args,
|
|
25
|
+
const { requestBody, ...restSpec } = this.spec;
|
|
26
|
+
return this.sendOperationFn(this.args, {
|
|
27
|
+
...restSpec,
|
|
28
|
+
path,
|
|
29
|
+
httpMethod: "GET"
|
|
30
|
+
});
|
|
23
31
|
}
|
|
24
32
|
}
|
|
25
33
|
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,OAAO,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","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"]}
|
|
@@ -353,45 +353,55 @@ export const AccountResource = {
|
|
|
353
353
|
type: {
|
|
354
354
|
name: "Composite",
|
|
355
355
|
className: "AccountResource",
|
|
356
|
-
modelProperties:
|
|
356
|
+
modelProperties: {
|
|
357
|
+
...Resource.type.modelProperties,
|
|
358
|
+
properties: {
|
|
357
359
|
serializedName: "properties",
|
|
358
360
|
type: {
|
|
359
361
|
name: "Dictionary",
|
|
360
362
|
value: { type: { name: "String" } }
|
|
361
363
|
}
|
|
362
|
-
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
363
366
|
}
|
|
364
367
|
};
|
|
365
368
|
export const ExtensionResource = {
|
|
366
369
|
type: {
|
|
367
370
|
name: "Composite",
|
|
368
371
|
className: "ExtensionResource",
|
|
369
|
-
modelProperties:
|
|
372
|
+
modelProperties: {
|
|
373
|
+
...Resource.type.modelProperties,
|
|
374
|
+
plan: {
|
|
370
375
|
serializedName: "plan",
|
|
371
376
|
type: {
|
|
372
377
|
name: "Composite",
|
|
373
378
|
className: "ExtensionResourcePlan"
|
|
374
379
|
}
|
|
375
|
-
},
|
|
380
|
+
},
|
|
381
|
+
properties: {
|
|
376
382
|
serializedName: "properties",
|
|
377
383
|
type: {
|
|
378
384
|
name: "Dictionary",
|
|
379
385
|
value: { type: { name: "String" } }
|
|
380
386
|
}
|
|
381
|
-
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
382
389
|
}
|
|
383
390
|
};
|
|
384
391
|
export const ProjectResource = {
|
|
385
392
|
type: {
|
|
386
393
|
name: "Composite",
|
|
387
394
|
className: "ProjectResource",
|
|
388
|
-
modelProperties:
|
|
395
|
+
modelProperties: {
|
|
396
|
+
...Resource.type.modelProperties,
|
|
397
|
+
properties: {
|
|
389
398
|
serializedName: "properties",
|
|
390
399
|
type: {
|
|
391
400
|
name: "Dictionary",
|
|
392
401
|
value: { type: { name: "String" } }
|
|
393
402
|
}
|
|
394
|
-
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
395
405
|
}
|
|
396
406
|
};
|
|
397
407
|
//# sourceMappingURL=mappers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAA+B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,WAAW;yBACvB;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA+B;IACnD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,WAAW;QACtB,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,IAAI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,MAAM,CAAC,MAAM,iBAAiB,GAA+B;IAC3D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,mBAAmB;QAC9B,eAAe,kCACV,QAAQ,CAAC,IAAI,CAAC,eAAe,KAChC,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,uBAAuB;iBACnC;aACF,EACD,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBACpC;aACF,GACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAA+B;IACzD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,iBAAiB;QAC5B,eAAe,kCACV,QAAQ,CAAC,IAAI,CAAC,eAAe,KAChC,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBACpC;aACF,GACF;KACF;CACF,CAAC","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 const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationProperties\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationProperties\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CheckNameAvailabilityParameter: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameAvailabilityParameter\",\n modelProperties: {\n resourceName: {\n serializedName: \"resourceName\",\n type: {\n name: \"String\"\n }\n },\n resourceType: {\n serializedName: \"resourceType\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CheckNameAvailabilityResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameAvailabilityResult\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n nameAvailable: {\n serializedName: \"nameAvailable\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const AccountResourceListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AccountResourceListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"AccountResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ExtensionResourceListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ExtensionResourceListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ExtensionResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ExtensionResourcePlan: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ExtensionResourcePlan\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n product: {\n serializedName: \"product\",\n type: {\n name: \"String\"\n }\n },\n promotionCode: {\n serializedName: \"promotionCode\",\n type: {\n name: \"String\"\n }\n },\n publisher: {\n serializedName: \"publisher\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"version\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ExtensionResourceRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ExtensionResourceRequest\",\n modelProperties: {\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n plan: {\n serializedName: \"plan\",\n type: {\n name: \"Composite\",\n className: \"ExtensionResourcePlan\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const AccountResourceRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AccountResourceRequest\",\n modelProperties: {\n accountName: {\n serializedName: \"accountName\",\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n operationType: {\n serializedName: \"operationType\",\n type: {\n name: \"Enum\",\n allowedValues: [\"unknown\", \"create\", \"update\", \"link\"]\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const AccountTagRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AccountTagRequest\",\n modelProperties: {\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const ProjectResourceListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProjectResourceListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ProjectResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const AccountResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AccountResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const ExtensionResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ExtensionResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n plan: {\n serializedName: \"plan\",\n type: {\n name: \"Composite\",\n className: \"ExtensionResourcePlan\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const ProjectResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProjectResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n"]}
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAA+B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,WAAW;yBACvB;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA+B;IACnD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,WAAW;QACtB,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,qBAAqB;iBACjC;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAA+B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,WAAW,EAAE;gBACX,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,SAAS,EAAE;gBACT,cAAc,EAAE,WAAW;gBAC3B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,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AS,EAAE,iBAAiB;QAC5B,eAAe,EAAE;YACf,GAAG,QAAQ,CAAC,IAAI,CAAC,eAAe;YAChC,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBACpC;aACF;SACF;KACF;CACF,CAAC","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 const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationProperties\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OperationProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationProperties\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CheckNameAvailabilityParameter: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameAvailabilityParameter\",\n modelProperties: {\n resourceName: {\n serializedName: \"resourceName\",\n type: {\n name: \"String\"\n }\n },\n resourceType: {\n serializedName: \"resourceType\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CheckNameAvailabilityResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameAvailabilityResult\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n nameAvailable: {\n serializedName: \"nameAvailable\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const AccountResourceListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AccountResourceListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"AccountResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ExtensionResourceListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ExtensionResourceListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ExtensionResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ExtensionResourcePlan: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ExtensionResourcePlan\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n product: {\n serializedName: \"product\",\n type: {\n name: \"String\"\n }\n },\n promotionCode: {\n serializedName: \"promotionCode\",\n type: {\n name: \"String\"\n }\n },\n publisher: {\n serializedName: \"publisher\",\n type: {\n name: \"String\"\n }\n },\n version: {\n serializedName: \"version\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ExtensionResourceRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ExtensionResourceRequest\",\n modelProperties: {\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n plan: {\n serializedName: \"plan\",\n type: {\n name: \"Composite\",\n className: \"ExtensionResourcePlan\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const AccountResourceRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AccountResourceRequest\",\n modelProperties: {\n accountName: {\n serializedName: \"accountName\",\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n operationType: {\n serializedName: \"operationType\",\n type: {\n name: \"Enum\",\n allowedValues: [\"unknown\", \"create\", \"update\", \"link\"]\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const AccountTagRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AccountTagRequest\",\n modelProperties: {\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const ProjectResourceListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProjectResourceListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ProjectResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const AccountResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AccountResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const ExtensionResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ExtensionResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n plan: {\n serializedName: \"plan\",\n type: {\n name: \"Composite\",\n className: \"ExtensionResourcePlan\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const ProjectResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProjectResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Accounts operations. */
|
|
12
12
|
export class AccountsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Accounts class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/operations/accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAmBtD,4CAA4C;AAC5C,MAAM,OAAO,YA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AU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 { Accounts } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { VisualStudioResourceProviderClient } from \"../visualStudioResourceProviderClient.js\";\nimport {\n CheckNameAvailabilityParameter,\n AccountsCheckNameAvailabilityOptionalParams,\n AccountsCheckNameAvailabilityResponse,\n AccountsListByResourceGroupOptionalParams,\n AccountsListByResourceGroupResponse,\n AccountResourceRequest,\n AccountsCreateOrUpdateOptionalParams,\n AccountsCreateOrUpdateResponse,\n AccountsDeleteOptionalParams,\n AccountsGetOptionalParams,\n AccountsGetResponse,\n AccountTagRequest,\n AccountsUpdateOptionalParams,\n AccountsUpdateResponse\n} from \"../models/index.js\";\n\n/** Class containing Accounts operations. */\nexport class AccountsImpl implements Accounts {\n private readonly client: VisualStudioResourceProviderClient;\n\n /**\n * Initialize a new instance of the class Accounts class.\n * @param client Reference to the service client\n */\n constructor(client: VisualStudioResourceProviderClient) {\n this.client = client;\n }\n\n /**\n * Checks if the specified Visual Studio Team Services account name is available. Resource name can be\n * either an account name or an account name and PUID.\n * @param body Parameters describing the name to check availability for.\n * @param options The options parameters.\n */\n checkNameAvailability(\n body: CheckNameAvailabilityParameter,\n options?: AccountsCheckNameAvailabilityOptionalParams\n ): Promise<AccountsCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { body, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\n /**\n * Gets all Visual Studio Team Services account resources under the resource group linked to the\n * specified Azure subscription.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: AccountsListByResourceGroupOptionalParams\n ): Promise<AccountsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Creates or updates a Visual Studio Team Services account resource.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param resourceName Name of the resource.\n * @param body The request data.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n body: AccountResourceRequest,\n options?: AccountsCreateOrUpdateOptionalParams\n ): Promise<AccountsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, body, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a Visual Studio Team Services account resource.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param resourceName Name of the resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: AccountsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Gets the Visual Studio Team Services account resource details.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param resourceName Name of the resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: AccountsGetOptionalParams\n ): Promise<AccountsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates tags for Visual Studio Team Services account resource.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param resourceName Name of the resource.\n * @param body The request data.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n body: AccountTagRequest,\n options?: AccountsUpdateOptionalParams\n ): Promise<AccountsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, body, options },\n updateOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/microsoft.visualstudio/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResult\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccountResourceListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccountResource\n },\n 404: {}\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccountResource\n },\n 404: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccountResource\n },\n 404: {}\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/operations/accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAmBtD,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAAqC;IAE5D;;;OAGG;IACH,YAAY,MAA0C;QACpD,IAAI,CAAC,MAAM,G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C;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 { Accounts } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { VisualStudioResourceProviderClient } from \"../visualStudioResourceProviderClient.js\";\nimport {\n CheckNameAvailabilityParameter,\n AccountsCheckNameAvailabilityOptionalParams,\n AccountsCheckNameAvailabilityResponse,\n AccountsListByResourceGroupOptionalParams,\n AccountsListByResourceGroupResponse,\n AccountResourceRequest,\n AccountsCreateOrUpdateOptionalParams,\n AccountsCreateOrUpdateResponse,\n AccountsDeleteOptionalParams,\n AccountsGetOptionalParams,\n AccountsGetResponse,\n AccountTagRequest,\n AccountsUpdateOptionalParams,\n AccountsUpdateResponse\n} from \"../models/index.js\";\n\n/** Class containing Accounts operations. */\nexport class AccountsImpl implements Accounts {\n private readonly client: VisualStudioResourceProviderClient;\n\n /**\n * Initialize a new instance of the class Accounts class.\n * @param client Reference to the service client\n */\n constructor(client: VisualStudioResourceProviderClient) {\n this.client = client;\n }\n\n /**\n * Checks if the specified Visual Studio Team Services account name is available. Resource name can be\n * either an account name or an account name and PUID.\n * @param body Parameters describing the name to check availability for.\n * @param options The options parameters.\n */\n checkNameAvailability(\n body: CheckNameAvailabilityParameter,\n options?: AccountsCheckNameAvailabilityOptionalParams\n ): Promise<AccountsCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { body, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\n /**\n * Gets all Visual Studio Team Services account resources under the resource group linked to the\n * specified Azure subscription.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: AccountsListByResourceGroupOptionalParams\n ): Promise<AccountsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Creates or updates a Visual Studio Team Services account resource.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param resourceName Name of the resource.\n * @param body The request data.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n body: AccountResourceRequest,\n options?: AccountsCreateOrUpdateOptionalParams\n ): Promise<AccountsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, body, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a Visual Studio Team Services account resource.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param resourceName Name of the resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: AccountsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Gets the Visual Studio Team Services account resource details.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param resourceName Name of the resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: AccountsGetOptionalParams\n ): Promise<AccountsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates tags for Visual Studio Team Services account resource.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param resourceName Name of the resource.\n * @param body The request data.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n body: AccountTagRequest,\n options?: AccountsUpdateOptionalParams\n ): Promise<AccountsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, body, options },\n updateOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/microsoft.visualstudio/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResult\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccountResourceListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccountResource\n },\n 404: {}\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccountResource\n },\n 404: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccountResource\n },\n 404: {}\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Extensions operations. */
|
|
12
12
|
export class ExtensionsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Extensions class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../../src/operations/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KA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AW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 { Extensions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { VisualStudioResourceProviderClient } from \"../visualStudioResourceProviderClient.js\";\nimport {\n ExtensionsListByAccountOptionalParams,\n ExtensionsListByAccountResponse,\n ExtensionResourceRequest,\n ExtensionsCreateOptionalParams,\n ExtensionsCreateResponse,\n ExtensionsDeleteOptionalParams,\n ExtensionsGetOptionalParams,\n ExtensionsGetResponse,\n ExtensionsUpdateOptionalParams,\n ExtensionsUpdateResponse\n} from \"../models/index.js\";\n\n/** Class containing Extensions operations. */\nexport class ExtensionsImpl implements Extensions {\n private readonly client: VisualStudioResourceProviderClient;\n\n /**\n * Initialize a new instance of the class Extensions class.\n * @param client Reference to the service client\n */\n constructor(client: VisualStudioResourceProviderClient) {\n this.client = client;\n }\n\n /**\n * Gets the details of the extension resources created within the resource group.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param accountResourceName The name of the Visual Studio Team Services account resource.\n * @param options The options parameters.\n */\n listByAccount(\n resourceGroupName: string,\n accountResourceName: string,\n options?: ExtensionsListByAccountOptionalParams\n ): Promise<ExtensionsListByAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountResourceName, options },\n listByAccountOperationSpec\n );\n }\n\n /**\n * Registers the extension with a Visual Studio Team Services account.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param accountResourceName The name of the Visual Studio Team Services account resource.\n * @param extensionResourceName The name of the extension.\n * @param body An object containing additional information related to the extension request.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountResourceName: string,\n extensionResourceName: string,\n body: ExtensionResourceRequest,\n options?: ExtensionsCreateOptionalParams\n ): Promise<ExtensionsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountResourceName,\n extensionResourceName,\n body,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Removes an extension resource registration for a Visual Studio Team Services account.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param accountResourceName The name of the Visual Studio Team Services account resource.\n * @param extensionResourceName The name of the extension.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountResourceName: string,\n extensionResourceName: string,\n options?: ExtensionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountResourceName,\n extensionResourceName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Gets the details of an extension associated with a Visual Studio Team Services account resource.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param accountResourceName The name of the Visual Studio Team Services account resource.\n * @param extensionResourceName The name of the extension.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountResourceName: string,\n extensionResourceName: string,\n options?: ExtensionsGetOptionalParams\n ): Promise<ExtensionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountResourceName,\n extensionResourceName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Updates an existing extension registration for the Visual Studio Team Services account.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param accountResourceName The name of the Visual Studio Team Services account resource.\n * @param extensionResourceName The name of the extension.\n * @param body An object containing additional information related to the extension request.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountResourceName: string,\n extensionResourceName: string,\n body: ExtensionResourceRequest,\n options?: ExtensionsUpdateOptionalParams\n ): Promise<ExtensionsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountResourceName,\n extensionResourceName,\n body,\n options\n },\n updateOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionResourceListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionResource\n }\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountResourceName,\n Parameters.extensionResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountResourceName,\n Parameters.extensionResourceName\n ],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionResource\n },\n 404: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountResourceName,\n Parameters.extensionResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionResource\n }\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountResourceName,\n Parameters.extensionResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../../src/operations/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAqC;IAE5D;;;OAGG;IACH,YAAY,MAA0C;QACpD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,iBAAyB,EACzB,mBAA2B,EAC3B,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,OAAO,EAAE,EACnD,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAyB,EACzB,mBAA2B,EAC3B,qBAA6B,EAC7B,IAA8B,EAC9B,OAAwC;QAExC,OAAO,I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AAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,qKAAqK;IACvK,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","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 { Extensions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { VisualStudioResourceProviderClient } from \"../visualStudioResourceProviderClient.js\";\nimport {\n ExtensionsListByAccountOptionalParams,\n ExtensionsListByAccountResponse,\n ExtensionResourceRequest,\n ExtensionsCreateOptionalParams,\n ExtensionsCreateResponse,\n ExtensionsDeleteOptionalParams,\n ExtensionsGetOptionalParams,\n ExtensionsGetResponse,\n ExtensionsUpdateOptionalParams,\n ExtensionsUpdateResponse\n} from \"../models/index.js\";\n\n/** Class containing Extensions operations. */\nexport class ExtensionsImpl implements Extensions {\n private readonly client: VisualStudioResourceProviderClient;\n\n /**\n * Initialize a new instance of the class Extensions class.\n * @param client Reference to the service client\n */\n constructor(client: VisualStudioResourceProviderClient) {\n this.client = client;\n }\n\n /**\n * Gets the details of the extension resources created within the resource group.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param accountResourceName The name of the Visual Studio Team Services account resource.\n * @param options The options parameters.\n */\n listByAccount(\n resourceGroupName: string,\n accountResourceName: string,\n options?: ExtensionsListByAccountOptionalParams\n ): Promise<ExtensionsListByAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountResourceName, options },\n listByAccountOperationSpec\n );\n }\n\n /**\n * Registers the extension with a Visual Studio Team Services account.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param accountResourceName The name of the Visual Studio Team Services account resource.\n * @param extensionResourceName The name of the extension.\n * @param body An object containing additional information related to the extension request.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountResourceName: string,\n extensionResourceName: string,\n body: ExtensionResourceRequest,\n options?: ExtensionsCreateOptionalParams\n ): Promise<ExtensionsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountResourceName,\n extensionResourceName,\n body,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Removes an extension resource registration for a Visual Studio Team Services account.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param accountResourceName The name of the Visual Studio Team Services account resource.\n * @param extensionResourceName The name of the extension.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountResourceName: string,\n extensionResourceName: string,\n options?: ExtensionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountResourceName,\n extensionResourceName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Gets the details of an extension associated with a Visual Studio Team Services account resource.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param accountResourceName The name of the Visual Studio Team Services account resource.\n * @param extensionResourceName The name of the extension.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountResourceName: string,\n extensionResourceName: string,\n options?: ExtensionsGetOptionalParams\n ): Promise<ExtensionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountResourceName,\n extensionResourceName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Updates an existing extension registration for the Visual Studio Team Services account.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param accountResourceName The name of the Visual Studio Team Services account resource.\n * @param extensionResourceName The name of the extension.\n * @param body An object containing additional information related to the extension request.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountResourceName: string,\n extensionResourceName: string,\n body: ExtensionResourceRequest,\n options?: ExtensionsUpdateOptionalParams\n ): Promise<ExtensionsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountResourceName,\n extensionResourceName,\n body,\n options\n },\n updateOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionResourceListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionResource\n }\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountResourceName,\n Parameters.extensionResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountResourceName,\n Parameters.extensionResourceName\n ],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionResource\n },\n 404: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountResourceName,\n Parameters.extensionResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtensionResource\n }\n },\n requestBody: Parameters.body3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.accountResourceName,\n Parameters.extensionResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Operations operations. */
|
|
12
12
|
export class OperationsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Operations class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAqC;IAE5D;;;OAGG;IACH,YAAY,MAA0C;QACpD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,8CAA8C;IACpD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { VisualStudioResourceProviderClient } from \"../visualStudioResourceProviderClient.js\";\nimport {\n OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models/index.js\";\n\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: VisualStudioResourceProviderClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: VisualStudioResourceProviderClient) {\n this.client = client;\n }\n\n /**\n * Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/microsoft.visualstudio/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -12,6 +12,7 @@ import { LroEngine } from "@azure/core-lro";
|
|
|
12
12
|
import { LroImpl } from "../lroImpl.js";
|
|
13
13
|
/** Class containing Projects operations. */
|
|
14
14
|
export class ProjectsImpl {
|
|
15
|
+
client;
|
|
15
16
|
/**
|
|
16
17
|
* Initialize a new instance of the class Projects class.
|
|
17
18
|
* @param client Reference to the service client
|
|
@@ -47,14 +48,19 @@ export class ProjectsImpl {
|
|
|
47
48
|
return this.client.sendOperationRequest(args, spec);
|
|
48
49
|
};
|
|
49
50
|
const sendOperation = async (args, spec) => {
|
|
50
|
-
var _a;
|
|
51
51
|
let currentRawResponse = undefined;
|
|
52
|
-
const providedCallback =
|
|
52
|
+
const providedCallback = args.options?.onResponse;
|
|
53
53
|
const callback = (rawResponse, flatResponse) => {
|
|
54
54
|
currentRawResponse = rawResponse;
|
|
55
|
-
providedCallback
|
|
55
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
56
|
+
};
|
|
57
|
+
const updatedArgs = {
|
|
58
|
+
...args,
|
|
59
|
+
options: {
|
|
60
|
+
...args.options,
|
|
61
|
+
onResponse: callback
|
|
62
|
+
}
|
|
56
63
|
};
|
|
57
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
58
64
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
59
65
|
return {
|
|
60
66
|
flatResponse,
|
|
@@ -67,8 +73,8 @@ export class ProjectsImpl {
|
|
|
67
73
|
};
|
|
68
74
|
const lro = new LroImpl(sendOperation, { resourceGroupName, rootResourceName, resourceName, body, options }, createOperationSpec);
|
|
69
75
|
const poller = new LroEngine(lro, {
|
|
70
|
-
resumeFrom: options
|
|
71
|
-
intervalInMs: options
|
|
76
|
+
resumeFrom: options?.resumeFrom,
|
|
77
|
+
intervalInMs: options?.updateIntervalInMs
|
|
72
78
|
});
|
|
73
79
|
await poller.poll();
|
|
74
80
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/operations/projects.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,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C,eAAe;SACpC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EACF,+LAA+L;IACjM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,GAAG,EAAE,EAAE;KACR;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,KAAK;KACjB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { Projects } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { VisualStudioResourceProviderClient } from \"../visualStudioResourceProviderClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n ProjectsListByResourceGroupOptionalParams,\n ProjectsListByResourceGroupResponse,\n ProjectResource,\n ProjectsCreateOptionalParams,\n ProjectsCreateResponse,\n ProjectsGetOptionalParams,\n ProjectsGetResponse,\n ProjectsUpdateOptionalParams,\n ProjectsUpdateResponse,\n ProjectsGetJobStatusOptionalParams,\n ProjectsGetJobStatusResponse\n} from \"../models/index.js\";\n\n/** Class containing Projects operations. */\nexport class ProjectsImpl implements Projects {\n private readonly client: VisualStudioResourceProviderClient;\n\n /**\n * Initialize a new instance of the class Projects class.\n * @param client Reference to the service client\n */\n constructor(client: VisualStudioResourceProviderClient) {\n this.client = client;\n }\n\n /**\n * Gets all Visual Studio Team Services project resources created in the specified Team Services\n * account.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n rootResourceName: string,\n options?: ProjectsListByResourceGroupOptionalParams\n ): Promise<ProjectsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, rootResourceName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'\n * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for\n * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:\n * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,\n * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process\n * templates).\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param resourceName Name of the Team Services project.\n * @param body The request data.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n rootResourceName: string,\n resourceName: string,\n body: ProjectResource,\n options?: ProjectsCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ProjectsCreateResponse>,\n ProjectsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ProjectsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, rootResourceName, resourceName, body, options },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'\n * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for\n * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:\n * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,\n * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process\n * templates).\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param resourceName Name of the Team Services project.\n * @param body The request data.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n rootResourceName: string,\n resourceName: string,\n body: ProjectResource,\n options?: ProjectsCreateOptionalParams\n ): Promise<ProjectsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n rootResourceName,\n resourceName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the details of a Team Services project resource.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param resourceName Name of the Team Services project.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n rootResourceName: string,\n resourceName: string,\n options?: ProjectsGetOptionalParams\n ): Promise<ProjectsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, rootResourceName, resourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates the tags of the specified Team Services project.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param resourceName Name of the Team Services project.\n * @param body The request data.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n rootResourceName: string,\n resourceName: string,\n body: ProjectResource,\n options?: ProjectsUpdateOptionalParams\n ): Promise<ProjectsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, rootResourceName, resourceName, body, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets the status of the project resource creation job.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param resourceName Name of the Team Services project.\n * @param subContainerName This parameter should be set to the resourceName.\n * @param operation The operation type. The only supported value is 'put'.\n * @param options The options parameters.\n */\n getJobStatus(\n resourceGroupName: string,\n rootResourceName: string,\n resourceName: string,\n subContainerName: string,\n operation: string,\n options?: ProjectsGetJobStatusOptionalParams\n ): Promise<ProjectsGetJobStatusResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n rootResourceName,\n resourceName,\n subContainerName,\n operation,\n options\n },\n getJobStatusOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectResourceListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.rootResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectResource\n },\n 201: {\n bodyMapper: Mappers.ProjectResource\n },\n 202: {\n bodyMapper: Mappers.ProjectResource\n },\n 204: {\n bodyMapper: Mappers.ProjectResource\n }\n },\n requestBody: Parameters.body4,\n queryParameters: [Parameters.apiVersion, Parameters.validating],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.rootResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectResource\n },\n 404: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.rootResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectResource\n }\n },\n requestBody: Parameters.body4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.rootResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getJobStatusOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}/subContainers/{subContainerName}/status\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectResource\n },\n 202: {}\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.operation,\n Parameters.jobId\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.rootResourceName,\n Parameters.subContainerName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/operations/projects.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAexC,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAAqC;IAE5D;;;OAGG;IACH,YAAY,MAA0C;QACpD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,mBAAmB,CACjB,iBAAyB,EACzB,gBAAwB,EACxB,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CA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AAE,OAAO,CAAC,eAAe;SACpC;QACD,GAAG,EAAE,EAAE;KACR;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,KAAK;KACjB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { Projects } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { VisualStudioResourceProviderClient } from \"../visualStudioResourceProviderClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n ProjectsListByResourceGroupOptionalParams,\n ProjectsListByResourceGroupResponse,\n ProjectResource,\n ProjectsCreateOptionalParams,\n ProjectsCreateResponse,\n ProjectsGetOptionalParams,\n ProjectsGetResponse,\n ProjectsUpdateOptionalParams,\n ProjectsUpdateResponse,\n ProjectsGetJobStatusOptionalParams,\n ProjectsGetJobStatusResponse\n} from \"../models/index.js\";\n\n/** Class containing Projects operations. */\nexport class ProjectsImpl implements Projects {\n private readonly client: VisualStudioResourceProviderClient;\n\n /**\n * Initialize a new instance of the class Projects class.\n * @param client Reference to the service client\n */\n constructor(client: VisualStudioResourceProviderClient) {\n this.client = client;\n }\n\n /**\n * Gets all Visual Studio Team Services project resources created in the specified Team Services\n * account.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n rootResourceName: string,\n options?: ProjectsListByResourceGroupOptionalParams\n ): Promise<ProjectsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, rootResourceName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'\n * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for\n * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:\n * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,\n * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process\n * templates).\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param resourceName Name of the Team Services project.\n * @param body The request data.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n rootResourceName: string,\n resourceName: string,\n body: ProjectResource,\n options?: ProjectsCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ProjectsCreateResponse>,\n ProjectsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ProjectsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, rootResourceName, resourceName, body, options },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'\n * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for\n * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:\n * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,\n * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process\n * templates).\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param resourceName Name of the Team Services project.\n * @param body The request data.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n rootResourceName: string,\n resourceName: string,\n body: ProjectResource,\n options?: ProjectsCreateOptionalParams\n ): Promise<ProjectsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n rootResourceName,\n resourceName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the details of a Team Services project resource.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param resourceName Name of the Team Services project.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n rootResourceName: string,\n resourceName: string,\n options?: ProjectsGetOptionalParams\n ): Promise<ProjectsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, rootResourceName, resourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates the tags of the specified Team Services project.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param resourceName Name of the Team Services project.\n * @param body The request data.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n rootResourceName: string,\n resourceName: string,\n body: ProjectResource,\n options?: ProjectsUpdateOptionalParams\n ): Promise<ProjectsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, rootResourceName, resourceName, body, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets the status of the project resource creation job.\n * @param resourceGroupName Name of the resource group within the Azure subscription.\n * @param rootResourceName Name of the Team Services account.\n * @param resourceName Name of the Team Services project.\n * @param subContainerName This parameter should be set to the resourceName.\n * @param operation The operation type. The only supported value is 'put'.\n * @param options The options parameters.\n */\n getJobStatus(\n resourceGroupName: string,\n rootResourceName: string,\n resourceName: string,\n subContainerName: string,\n operation: string,\n options?: ProjectsGetJobStatusOptionalParams\n ): Promise<ProjectsGetJobStatusResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n rootResourceName,\n resourceName,\n subContainerName,\n operation,\n options\n },\n getJobStatusOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectResourceListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.rootResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectResource\n },\n 201: {\n bodyMapper: Mappers.ProjectResource\n },\n 202: {\n bodyMapper: Mappers.ProjectResource\n },\n 204: {\n bodyMapper: Mappers.ProjectResource\n }\n },\n requestBody: Parameters.body4,\n queryParameters: [Parameters.apiVersion, Parameters.validating],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.rootResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectResource\n },\n 404: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.rootResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectResource\n }\n },\n requestBody: Parameters.body4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.rootResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getJobStatusOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}/subContainers/{subContainerName}/status\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectResource\n },\n 202: {}\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.operation,\n Parameters.jobId\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.rootResourceName,\n Parameters.subContainerName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { OperationsImpl, AccountsImpl, ExtensionsImpl, ProjectsImpl } from "./operations/index.js";
|
|
11
11
|
export class VisualStudioResourceProviderClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
subscriptionId;
|
|
14
|
+
apiVersion;
|
|
12
15
|
/**
|
|
13
16
|
* Initializes a new instance of the VisualStudioResourceProviderClient class.
|
|
14
17
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -16,7 +19,6 @@ export class VisualStudioResourceProviderClient extends coreClient.ServiceClient
|
|
|
16
19
|
* @param options The parameter options
|
|
17
20
|
*/
|
|
18
21
|
constructor(credentials, subscriptionId, options) {
|
|
19
|
-
var _a, _b, _c;
|
|
20
22
|
if (credentials === undefined) {
|
|
21
23
|
throw new Error("'credentials' cannot be null");
|
|
22
24
|
}
|
|
@@ -35,12 +37,17 @@ export class VisualStudioResourceProviderClient extends coreClient.ServiceClient
|
|
|
35
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
39
|
: `${packageDetails}`;
|
|
38
|
-
const optionsWithDefaults =
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
39
44
|
userAgentPrefix
|
|
40
|
-
},
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
47
|
+
};
|
|
41
48
|
super(optionsWithDefaults);
|
|
42
49
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
43
|
-
if (
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
51
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
52
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
46
53
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -54,7 +61,8 @@ export class VisualStudioResourceProviderClient extends coreClient.ServiceClient
|
|
|
54
61
|
});
|
|
55
62
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
56
63
|
credential: credentials,
|
|
57
|
-
scopes:
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
58
66
|
challengeCallbacks: {
|
|
59
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
60
68
|
}
|
|
@@ -96,5 +104,9 @@ export class VisualStudioResourceProviderClient extends coreClient.ServiceClient
|
|
|
96
104
|
};
|
|
97
105
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
98
106
|
}
|
|
107
|
+
operations;
|
|
108
|
+
accounts;
|
|
109
|
+
extensions;
|
|
110
|
+
projects;
|
|
99
111
|
}
|
|
100
112
|
//# sourceMappingURL=visualStudioResourceProviderClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualStudioResourceProviderClient.js","sourceRoot":"","sources":["../../src/visualStudioResourceProviderClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,YAAY,EACb,MAAM,uBAAuB,CAAC;AAS/B,MAAM,OAAO,kCAAmC,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"visualStudioResourceProviderClient.js","sourceRoot":"","sources":["../../src/visualStudioResourceProviderClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,YAAY,EACb,MAAM,uBAAuB,CAAC;AAS/B,MAAM,OAAO,kCAAmC,SAAQ,UAAU,CAAC,aAAa;IAC9E,KAAK,CAAS;IACd,cAAc,CAAS;IACvB,UAAU,CAAS;IAEnB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA0D;QAE1D,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAqD;YACjE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,wCAAwC,CAAC;QAChE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,GAAG;YAC1B,GAAG,QAAQ;YACX,GAAG,OAAO;YACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB;YACD,QAAQ,EACN,OAAO,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,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,QAAQ,CAAW;IACnB,UAAU,CAAa;IACvB,QAAQ,CAAW;CACpB","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 OperationsImpl,\n AccountsImpl,\n ExtensionsImpl,\n ProjectsImpl\n} from \"./operations/index.js\";\nimport {\n Operations,\n Accounts,\n Extensions,\n Projects\n} from \"./operationsInterfaces/index.js\";\nimport { VisualStudioResourceProviderClientOptionalParams } from \"./models/index.js\";\n\nexport class VisualStudioResourceProviderClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the VisualStudioResourceProviderClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription identifier.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: VisualStudioResourceProviderClientOptionalParams\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: VisualStudioResourceProviderClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-visualstudio/4.0.0-beta.3`;\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 || \"2014-04-01-preview\";\n this.operations = new OperationsImpl(this);\n this.accounts = new AccountsImpl(this);\n this.extensions = new ExtensionsImpl(this);\n this.projects = new ProjectsImpl(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 operations: Operations;\n accounts: Accounts;\n extensions: Extensions;\n projects: Projects;\n}\n"]}
|