@azure/arm-visualstudio 4.0.0-beta.1 → 4.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -4
- package/LICENSE +4 -4
- package/README.md +31 -11
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +3 -3
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/lroImpl.js +13 -9
- package/dist/browser/lroImpl.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +22 -22
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +17 -7
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/accounts.d.ts +3 -3
- package/dist/browser/operations/accounts.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/accounts.js +3 -2
- package/dist/browser/operations/accounts.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/extensions.d.ts +3 -3
- package/dist/browser/operations/extensions.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/extensions.js +3 -2
- package/dist/browser/operations/extensions.js.map +1 -0
- package/dist/browser/operations/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +4 -4
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -2
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/projects.d.ts +3 -3
- package/dist/browser/operations/projects.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/projects.js +41 -38
- package/dist/browser/operations/projects.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/accounts.d.ts +1 -1
- package/dist/browser/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/accounts.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/extensions.d.ts +1 -1
- package/dist/browser/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/extensions.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +4 -4
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/projects.d.ts +1 -1
- package/dist/browser/operationsInterfaces/projects.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/projects.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/{dist-esm/src → dist/browser}/visualStudioResourceProviderClient.d.ts +4 -2
- package/dist/browser/visualStudioResourceProviderClient.d.ts.map +1 -0
- package/dist/browser/visualStudioResourceProviderClient.js +112 -0
- package/dist/browser/visualStudioResourceProviderClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +16 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +16 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +37 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +253 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +10 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +18 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +410 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +21 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +174 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/accounts.d.ts +57 -0
- package/dist/commonjs/operations/accounts.d.ts.map +1 -0
- package/dist/commonjs/operations/accounts.js +191 -0
- package/dist/commonjs/operations/accounts.js.map +1 -0
- package/dist/commonjs/operations/extensions.d.ts +54 -0
- package/dist/commonjs/operations/extensions.d.ts.map +1 -0
- package/dist/commonjs/operations/extensions.js +196 -0
- package/dist/commonjs/operations/extensions.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +5 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +15 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +18 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +48 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/projects.d.ts +77 -0
- package/dist/commonjs/operations/projects.d.ts.map +1 -0
- package/dist/commonjs/operations/projects.js +261 -0
- package/dist/commonjs/operations/projects.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/accounts.d.ts +49 -0
- package/dist/commonjs/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/accounts.js +10 -0
- package/dist/commonjs/operationsInterfaces/accounts.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensions.d.ts +46 -0
- package/dist/commonjs/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensions.js +10 -0
- package/dist/commonjs/operationsInterfaces/extensions.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +15 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +10 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/projects.d.ts +69 -0
- package/dist/commonjs/operationsInterfaces/projects.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/projects.js +10 -0
- package/dist/commonjs/operationsInterfaces/projects.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/commonjs/visualStudioResourceProviderClient.d.ts +23 -0
- package/dist/commonjs/visualStudioResourceProviderClient.d.ts.map +1 -0
- package/dist/commonjs/visualStudioResourceProviderClient.js +117 -0
- package/dist/commonjs/visualStudioResourceProviderClient.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +4 -4
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +33 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +253 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +18 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +407 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +21 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +171 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/accounts.d.ts +57 -0
- package/dist/esm/operations/accounts.d.ts.map +1 -0
- package/dist/esm/operations/accounts.js +186 -0
- package/dist/esm/operations/accounts.js.map +1 -0
- package/dist/esm/operations/extensions.d.ts +54 -0
- package/dist/esm/operations/extensions.d.ts.map +1 -0
- package/dist/esm/operations/extensions.js +191 -0
- package/dist/esm/operations/extensions.js.map +1 -0
- package/dist/esm/operations/index.d.ts +5 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +12 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +18 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +43 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/projects.d.ts +77 -0
- package/dist/esm/operations/projects.d.ts.map +1 -0
- package/dist/esm/operations/projects.js +256 -0
- package/dist/esm/operations/projects.js.map +1 -0
- package/dist/esm/operationsInterfaces/accounts.d.ts +49 -0
- package/dist/esm/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/accounts.js +9 -0
- package/dist/esm/operationsInterfaces/accounts.js.map +1 -0
- package/dist/esm/operationsInterfaces/extensions.d.ts +46 -0
- package/dist/esm/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/extensions.js +9 -0
- package/dist/esm/operationsInterfaces/extensions.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +5 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +12 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +10 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/projects.d.ts +69 -0
- package/dist/esm/operationsInterfaces/projects.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/projects.js +9 -0
- package/dist/esm/operationsInterfaces/projects.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/visualStudioResourceProviderClient.d.ts +23 -0
- package/dist/esm/visualStudioResourceProviderClient.d.ts.map +1 -0
- package/dist/esm/visualStudioResourceProviderClient.js +112 -0
- package/dist/esm/visualStudioResourceProviderClient.js.map +1 -0
- package/dist/react-native/index.d.ts +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +11 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +16 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +33 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +253 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +9 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +18 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +407 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +21 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +171 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/accounts.d.ts +57 -0
- package/dist/react-native/operations/accounts.d.ts.map +1 -0
- package/dist/react-native/operations/accounts.js +186 -0
- package/dist/react-native/operations/accounts.js.map +1 -0
- package/dist/react-native/operations/extensions.d.ts +54 -0
- package/dist/react-native/operations/extensions.d.ts.map +1 -0
- package/dist/react-native/operations/extensions.js +191 -0
- package/dist/react-native/operations/extensions.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +5 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +12 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +18 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +43 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/projects.d.ts +77 -0
- package/dist/react-native/operations/projects.d.ts.map +1 -0
- package/dist/react-native/operations/projects.js +256 -0
- package/dist/react-native/operations/projects.js.map +1 -0
- package/dist/react-native/operationsInterfaces/accounts.d.ts +49 -0
- package/dist/react-native/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/accounts.js +9 -0
- package/dist/react-native/operationsInterfaces/accounts.js.map +1 -0
- package/dist/react-native/operationsInterfaces/extensions.d.ts +46 -0
- package/dist/react-native/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/extensions.js +9 -0
- package/dist/react-native/operationsInterfaces/extensions.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +12 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +10 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/projects.d.ts +69 -0
- package/dist/react-native/operationsInterfaces/projects.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/projects.js +9 -0
- package/dist/react-native/operationsInterfaces/projects.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/visualStudioResourceProviderClient.d.ts +23 -0
- package/dist/react-native/visualStudioResourceProviderClient.d.ts.map +1 -0
- package/dist/react-native/visualStudioResourceProviderClient.js +112 -0
- package/dist/react-native/visualStudioResourceProviderClient.js.map +1 -0
- package/package.json +100 -75
- package/review/{arm-visualstudio.api.md → arm-visualstudio-node.api.md} +6 -6
- package/LICENSE.txt +0 -21
- package/dist/index.js +0 -1332
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.d.ts +0 -2
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.d.ts.map +0 -1
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.js +0 -33
- package/dist-esm/samples-dev/checkAvailabilityOfAnAccountName.js.map +0 -1
- package/dist-esm/samples-dev/createAProjectResource.d.ts +0 -2
- package/dist-esm/samples-dev/createAProjectResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/createAProjectResource.js +0 -43
- package/dist-esm/samples-dev/createAProjectResource.js.map +0 -1
- package/dist-esm/samples-dev/createAnAccountResource.d.ts +0 -2
- package/dist-esm/samples-dev/createAnAccountResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/createAnAccountResource.js +0 -32
- package/dist-esm/samples-dev/createAnAccountResource.js.map +0 -1
- package/dist-esm/samples-dev/createAnExtensionResource.d.ts +0 -2
- package/dist-esm/samples-dev/createAnExtensionResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/createAnExtensionResource.js +0 -44
- package/dist-esm/samples-dev/createAnExtensionResource.js.map +0 -1
- package/dist-esm/samples-dev/deleteAnAccountResource.d.ts +0 -2
- package/dist-esm/samples-dev/deleteAnAccountResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteAnAccountResource.js +0 -31
- package/dist-esm/samples-dev/deleteAnAccountResource.js.map +0 -1
- package/dist-esm/samples-dev/deleteAnExtensionResource.d.ts +0 -2
- package/dist-esm/samples-dev/deleteAnExtensionResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteAnExtensionResource.js +0 -32
- package/dist-esm/samples-dev/deleteAnExtensionResource.js.map +0 -1
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.js +0 -30
- package/dist-esm/samples-dev/getAListOfAccountResourcesInTheResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.js +0 -31
- package/dist-esm/samples-dev/getAListOfExtensionResourcesWithinTheResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.d.ts +0 -2
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.js +0 -29
- package/dist-esm/samples-dev/getAListOfOperationsForThisResourceProvider.js.map +0 -1
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.d.ts +0 -2
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.js +0 -31
- package/dist-esm/samples-dev/getAListOfProjectResourcesInTheTeamServicesAccount.js.map +0 -1
- package/dist-esm/samples-dev/getAProjectResource.d.ts +0 -2
- package/dist-esm/samples-dev/getAProjectResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAProjectResource.js +0 -32
- package/dist-esm/samples-dev/getAProjectResource.js.map +0 -1
- package/dist-esm/samples-dev/getAnAccountResource.d.ts +0 -2
- package/dist-esm/samples-dev/getAnAccountResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAnAccountResource.js +0 -31
- package/dist-esm/samples-dev/getAnAccountResource.js.map +0 -1
- package/dist-esm/samples-dev/getAnExtensionResource.d.ts +0 -2
- package/dist-esm/samples-dev/getAnExtensionResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/getAnExtensionResource.js +0 -32
- package/dist-esm/samples-dev/getAnExtensionResource.js.map +0 -1
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.d.ts +0 -2
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.d.ts.map +0 -1
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.js +0 -36
- package/dist-esm/samples-dev/getTheStatusOfTheProjectCreationJob.js.map +0 -1
- package/dist-esm/samples-dev/updateAProjectResource.d.ts +0 -2
- package/dist-esm/samples-dev/updateAProjectResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/updateAProjectResource.js +0 -40
- package/dist-esm/samples-dev/updateAProjectResource.js.map +0 -1
- package/dist-esm/samples-dev/updateAnExtensionResource.d.ts +0 -2
- package/dist-esm/samples-dev/updateAnExtensionResource.d.ts.map +0 -1
- package/dist-esm/samples-dev/updateAnExtensionResource.js +0 -44
- package/dist-esm/samples-dev/updateAnExtensionResource.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -4
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/accounts.d.ts.map +0 -1
- package/dist-esm/src/operations/accounts.js.map +0 -1
- package/dist-esm/src/operations/extensions.d.ts.map +0 -1
- package/dist-esm/src/operations/extensions.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -5
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/projects.d.ts.map +0 -1
- package/dist-esm/src/operations/projects.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/accounts.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/extensions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/projects.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/projects.js.map +0 -1
- package/dist-esm/src/visualStudioResourceProviderClient.d.ts.map +0 -1
- package/dist-esm/src/visualStudioResourceProviderClient.js +0 -54
- package/dist-esm/src/visualStudioResourceProviderClient.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -40
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -188
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -298
- package/src/models/mappers.ts +0 -424
- package/src/models/parameters.ts +0 -201
- package/src/operations/accounts.ts +0 -261
- package/src/operations/extensions.ts +0 -259
- package/src/operations/index.ts +0 -12
- package/src/operations/operations.ts +0 -55
- package/src/operations/projects.ts +0 -356
- package/src/operationsInterfaces/accounts.ts +0 -96
- package/src/operationsInterfaces/extensions.ts +0 -91
- package/src/operationsInterfaces/index.ts +0 -12
- package/src/operationsInterfaces/operations.ts +0 -21
- package/src/operationsInterfaces/projects.ts +0 -128
- package/src/visualStudioResourceProviderClient.ts +0 -91
- package/tsconfig.json +0 -20
- package/types/arm-visualstudio.d.ts +0 -493
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/accounts.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/extensions.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/projects.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
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,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAChD,gCAAgC,CACjC,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,WAAW,CACf,iBAAyB,EACzB,gBAAwB,EACxB,YAAoB,E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ChB,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"]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { CheckNameAvailabilityParameter, AccountsCheckNameAvailabilityOptionalParams, AccountsCheckNameAvailabilityResponse, AccountsListByResourceGroupOptionalParams, AccountsListByResourceGroupResponse, AccountResourceRequest, AccountsCreateOrUpdateOptionalParams, AccountsCreateOrUpdateResponse, AccountsDeleteOptionalParams, AccountsGetOptionalParams, AccountsGetResponse, AccountTagRequest, AccountsUpdateOptionalParams, AccountsUpdateResponse } from "../models/index.js";
|
|
2
|
+
/** Interface representing a Accounts. */
|
|
3
|
+
export interface Accounts {
|
|
4
|
+
/**
|
|
5
|
+
* Checks if the specified Visual Studio Team Services account name is available. Resource name can be
|
|
6
|
+
* either an account name or an account name and PUID.
|
|
7
|
+
* @param body Parameters describing the name to check availability for.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
checkNameAvailability(body: CheckNameAvailabilityParameter, options?: AccountsCheckNameAvailabilityOptionalParams): Promise<AccountsCheckNameAvailabilityResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Gets all Visual Studio Team Services account resources under the resource group linked to the
|
|
13
|
+
* specified Azure subscription.
|
|
14
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
listByResourceGroup(resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): Promise<AccountsListByResourceGroupResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Creates or updates a Visual Studio Team Services account resource.
|
|
20
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
21
|
+
* @param resourceName Name of the resource.
|
|
22
|
+
* @param body The request data.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
createOrUpdate(resourceGroupName: string, resourceName: string, body: AccountResourceRequest, options?: AccountsCreateOrUpdateOptionalParams): Promise<AccountsCreateOrUpdateResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Deletes a Visual Studio Team Services account resource.
|
|
28
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
29
|
+
* @param resourceName Name of the resource.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
delete(resourceGroupName: string, resourceName: string, options?: AccountsDeleteOptionalParams): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Gets the Visual Studio Team Services account resource details.
|
|
35
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
36
|
+
* @param resourceName Name of the resource.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
get(resourceGroupName: string, resourceName: string, options?: AccountsGetOptionalParams): Promise<AccountsGetResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Updates tags for Visual Studio Team Services account resource.
|
|
42
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
43
|
+
* @param resourceName Name of the resource.
|
|
44
|
+
* @param body The request data.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
update(resourceGroupName: string, resourceName: string, body: AccountTagRequest, options?: AccountsUpdateOptionalParams): Promise<AccountsUpdateResponse>;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/accounts.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,8BAA8B,EAC9B,2CAA2C,EAC3C,qCAAqC,EACrC,yCAAyC,EACzC,mCAAmC,EACnC,sBAAsB,EACtB,oCAAoC,EACpC,8BAA8B,EAC9B,4BAA4B,EAC5B,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;;;OAKG;IACH,qBAAqB,CACnB,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAClD;;;;;OAKG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAChD;;;;;;OAMG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAC3C;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 {\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/** Interface representing a Accounts. */\nexport interface Accounts {\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 /**\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 /**\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 /**\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 /**\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 /**\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}\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ExtensionsListByAccountOptionalParams, ExtensionsListByAccountResponse, ExtensionResourceRequest, ExtensionsCreateOptionalParams, ExtensionsCreateResponse, ExtensionsDeleteOptionalParams, ExtensionsGetOptionalParams, ExtensionsGetResponse, ExtensionsUpdateOptionalParams, ExtensionsUpdateResponse } from "../models/index.js";
|
|
2
|
+
/** Interface representing a Extensions. */
|
|
3
|
+
export interface Extensions {
|
|
4
|
+
/**
|
|
5
|
+
* Gets the details of the extension resources created within the resource group.
|
|
6
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
7
|
+
* @param accountResourceName The name of the Visual Studio Team Services account resource.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
listByAccount(resourceGroupName: string, accountResourceName: string, options?: ExtensionsListByAccountOptionalParams): Promise<ExtensionsListByAccountResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Registers the extension with a Visual Studio Team Services account.
|
|
13
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
14
|
+
* @param accountResourceName The name of the Visual Studio Team Services account resource.
|
|
15
|
+
* @param extensionResourceName The name of the extension.
|
|
16
|
+
* @param body An object containing additional information related to the extension request.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
create(resourceGroupName: string, accountResourceName: string, extensionResourceName: string, body: ExtensionResourceRequest, options?: ExtensionsCreateOptionalParams): Promise<ExtensionsCreateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Removes an extension resource registration for a Visual Studio Team Services account.
|
|
22
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
23
|
+
* @param accountResourceName The name of the Visual Studio Team Services account resource.
|
|
24
|
+
* @param extensionResourceName The name of the extension.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
delete(resourceGroupName: string, accountResourceName: string, extensionResourceName: string, options?: ExtensionsDeleteOptionalParams): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Gets the details of an extension associated with a Visual Studio Team Services account resource.
|
|
30
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
31
|
+
* @param accountResourceName The name of the Visual Studio Team Services account resource.
|
|
32
|
+
* @param extensionResourceName The name of the extension.
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
get(resourceGroupName: string, accountResourceName: string, extensionResourceName: string, options?: ExtensionsGetOptionalParams): Promise<ExtensionsGetResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Updates an existing extension registration for the Visual Studio Team Services account.
|
|
38
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
39
|
+
* @param accountResourceName The name of the Visual Studio Team Services account resource.
|
|
40
|
+
* @param extensionResourceName The name of the extension.
|
|
41
|
+
* @param body An object containing additional information related to the extension request.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
update(resourceGroupName: string, accountResourceName: string, extensionResourceName: string, body: ExtensionResourceRequest, options?: ExtensionsUpdateOptionalParams): Promise<ExtensionsUpdateResponse>;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=extensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ext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C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=extensions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 {\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/** Interface representing a Extensions. */\nexport interface Extensions {\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 /**\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 /**\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 /**\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 /**\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}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./operations.js";
|
|
9
|
+
export * from "./accounts.js";
|
|
10
|
+
export * from "./extensions.js";
|
|
11
|
+
export * from "./projects.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,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\nexport * from \"./operations.js\";\nexport * from \"./accounts.js\";\nexport * from \"./extensions.js\";\nexport * from \"./projects.js\";\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OperationsListOptionalParams, OperationsListResponse } from "../models/index.js";
|
|
2
|
+
/** Interface representing a Operations. */
|
|
3
|
+
export interface Operations {
|
|
4
|
+
/**
|
|
5
|
+
* Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
|
|
6
|
+
* @param options The options parameters.
|
|
7
|
+
*/
|
|
8
|
+
list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC/E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 {\n OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models/index.js\";\n\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.\n * @param options The options parameters.\n */\n list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;\n}\n"]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
2
|
+
import { ProjectsListByResourceGroupOptionalParams, ProjectsListByResourceGroupResponse, ProjectResource, ProjectsCreateOptionalParams, ProjectsCreateResponse, ProjectsGetOptionalParams, ProjectsGetResponse, ProjectsUpdateOptionalParams, ProjectsUpdateResponse, ProjectsGetJobStatusOptionalParams, ProjectsGetJobStatusResponse } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Projects. */
|
|
4
|
+
export interface Projects {
|
|
5
|
+
/**
|
|
6
|
+
* Gets all Visual Studio Team Services project resources created in the specified Team Services
|
|
7
|
+
* account.
|
|
8
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
9
|
+
* @param rootResourceName Name of the Team Services account.
|
|
10
|
+
* @param options The options parameters.
|
|
11
|
+
*/
|
|
12
|
+
listByResourceGroup(resourceGroupName: string, rootResourceName: string, options?: ProjectsListByResourceGroupOptionalParams): Promise<ProjectsListByResourceGroupResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
|
|
15
|
+
* and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
|
|
16
|
+
* VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
|
|
17
|
+
* 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
|
|
18
|
+
* 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
|
|
19
|
+
* templates).
|
|
20
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
21
|
+
* @param rootResourceName Name of the Team Services account.
|
|
22
|
+
* @param resourceName Name of the Team Services project.
|
|
23
|
+
* @param body The request data.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
beginCreate(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsCreateOptionalParams): Promise<PollerLike<PollOperationState<ProjectsCreateResponse>, ProjectsCreateResponse>>;
|
|
27
|
+
/**
|
|
28
|
+
* Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
|
|
29
|
+
* and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
|
|
30
|
+
* VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
|
|
31
|
+
* 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
|
|
32
|
+
* 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
|
|
33
|
+
* templates).
|
|
34
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
35
|
+
* @param rootResourceName Name of the Team Services account.
|
|
36
|
+
* @param resourceName Name of the Team Services project.
|
|
37
|
+
* @param body The request data.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
beginCreateAndWait(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsCreateOptionalParams): Promise<ProjectsCreateResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Gets the details of a Team Services project resource.
|
|
43
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
44
|
+
* @param rootResourceName Name of the Team Services account.
|
|
45
|
+
* @param resourceName Name of the Team Services project.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
get(resourceGroupName: string, rootResourceName: string, resourceName: string, options?: ProjectsGetOptionalParams): Promise<ProjectsGetResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Updates the tags of the specified Team Services project.
|
|
51
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
52
|
+
* @param rootResourceName Name of the Team Services account.
|
|
53
|
+
* @param resourceName Name of the Team Services project.
|
|
54
|
+
* @param body The request data.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
update(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsUpdateOptionalParams): Promise<ProjectsUpdateResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the status of the project resource creation job.
|
|
60
|
+
* @param resourceGroupName Name of the resource group within the Azure subscription.
|
|
61
|
+
* @param rootResourceName Name of the Team Services account.
|
|
62
|
+
* @param resourceName Name of the Team Services project.
|
|
63
|
+
* @param subContainerName This parameter should be set to the resourceName.
|
|
64
|
+
* @param operation The operation type. The only supported value is 'put'.
|
|
65
|
+
* @param options The options parameters.
|
|
66
|
+
*/
|
|
67
|
+
getJobStatus(resourceGroupName: string, rootResourceName: string, resourceName: string, subContainerName: string, operation: string, options?: ProjectsGetJobStatusOptionalParams): Promise<ProjectsGetJobStatusResponse>;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/projects.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,yCAAyC,EACzC,mCAAmC,EACnC,eAAe,EACf,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,oBAAoB,CAAC;AAE5B,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;;;;OAMG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAChD;;;;;;;;;;;;OAYG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,sBAAsB,CAAC,EAC1C,sBAAsB,CACvB,CACF,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;;;OAQG;IACH,YAAY,CACV,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC,CAAC;CAC1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=projects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/projects.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 { PollerLike, PollOperationState } from \"@azure/core-lro\";\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/** Interface representing a Projects. */\nexport interface Projects {\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 /**\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 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 /**\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 beginCreateAndWait(\n resourceGroupName: string,\n rootResourceName: string,\n resourceName: string,\n body: ProjectResource,\n options?: ProjectsCreateOptionalParams\n ): Promise<ProjectsCreateResponse>;\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 /**\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 /**\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}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { Operations, Accounts, Extensions, Projects } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { VisualStudioResourceProviderClientOptionalParams } from "./models/index.js";
|
|
5
|
+
export declare class VisualStudioResourceProviderClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
subscriptionId: string;
|
|
8
|
+
apiVersion: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the VisualStudioResourceProviderClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId The Azure subscription identifier.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: VisualStudioResourceProviderClientOptionalParams);
|
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
|
+
private addCustomApiVersionPolicy;
|
|
18
|
+
operations: Operations;
|
|
19
|
+
accounts: Accounts;
|
|
20
|
+
extensions: Extensions;
|
|
21
|
+
projects: Projects;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=visualStudioResourceProviderClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visualStudioResourceProviderClient.d.ts","sourceRoot":"","sources":["../../src/visualStudioResourceProviderClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,QAAQ,EACT,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,gDAAgD,EAAE,MAAM,mBAAmB,CAAC;AAErF,qBAAa,kCAAmC,SAAQ,UAAU,CAAC,aAAa;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gDAAgD;IA+E5D,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
+
import { OperationsImpl, AccountsImpl, ExtensionsImpl, ProjectsImpl } from "./operations/index.js";
|
|
11
|
+
export class VisualStudioResourceProviderClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
subscriptionId;
|
|
14
|
+
apiVersion;
|
|
15
|
+
/**
|
|
16
|
+
* Initializes a new instance of the VisualStudioResourceProviderClient class.
|
|
17
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
18
|
+
* @param subscriptionId The Azure subscription identifier.
|
|
19
|
+
* @param options The parameter options
|
|
20
|
+
*/
|
|
21
|
+
constructor(credentials, subscriptionId, options) {
|
|
22
|
+
if (credentials === undefined) {
|
|
23
|
+
throw new Error("'credentials' cannot be null");
|
|
24
|
+
}
|
|
25
|
+
if (subscriptionId === undefined) {
|
|
26
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
27
|
+
}
|
|
28
|
+
// Initializing default values for options
|
|
29
|
+
if (!options) {
|
|
30
|
+
options = {};
|
|
31
|
+
}
|
|
32
|
+
const defaults = {
|
|
33
|
+
requestContentType: "application/json; charset=utf-8",
|
|
34
|
+
credential: credentials
|
|
35
|
+
};
|
|
36
|
+
const packageDetails = `azsdk-js-arm-visualstudio/4.0.0-beta.3`;
|
|
37
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
38
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
39
|
+
: `${packageDetails}`;
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
44
|
+
userAgentPrefix
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
47
|
+
};
|
|
48
|
+
super(optionsWithDefaults);
|
|
49
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
51
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
52
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
53
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
54
|
+
}
|
|
55
|
+
if (!options ||
|
|
56
|
+
!options.pipeline ||
|
|
57
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
58
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
59
|
+
this.pipeline.removePolicy({
|
|
60
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
61
|
+
});
|
|
62
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
63
|
+
credential: credentials,
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
66
|
+
challengeCallbacks: {
|
|
67
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
// Parameter assignments
|
|
72
|
+
this.subscriptionId = subscriptionId;
|
|
73
|
+
// Assigning values to Constant parameters
|
|
74
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
75
|
+
this.apiVersion = options.apiVersion || "2014-04-01-preview";
|
|
76
|
+
this.operations = new OperationsImpl(this);
|
|
77
|
+
this.accounts = new AccountsImpl(this);
|
|
78
|
+
this.extensions = new ExtensionsImpl(this);
|
|
79
|
+
this.projects = new ProjectsImpl(this);
|
|
80
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
81
|
+
}
|
|
82
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
83
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
84
|
+
if (!apiVersion) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const apiVersionPolicy = {
|
|
88
|
+
name: "CustomApiVersionPolicy",
|
|
89
|
+
async sendRequest(request, next) {
|
|
90
|
+
const param = request.url.split("?");
|
|
91
|
+
if (param.length > 1) {
|
|
92
|
+
const newParams = param[1].split("&").map((item) => {
|
|
93
|
+
if (item.indexOf("api-version") > -1) {
|
|
94
|
+
return "api-version=" + apiVersion;
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
return item;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
101
|
+
}
|
|
102
|
+
return next(request);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
106
|
+
}
|
|
107
|
+
operations;
|
|
108
|
+
accounts;
|
|
109
|
+
extensions;
|
|
110
|
+
projects;
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=visualStudioResourceProviderClient.js.map
|
|
@@ -0,0 +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,O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,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,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"]}
|