azure-devops-extension-api 4.245.1 → 4.247.0
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/SECURITY.md +41 -0
- package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/Reporting.d.ts +48 -0
- package/bin/AdvancedSecurity.Reporting/Reporting.js +32 -0
- package/bin/AdvancedSecurity.Reporting/Reporting.min.js +1 -0
- package/{Alert → bin/Alert}/Alert.d.ts +8 -8
- package/{Alert → bin/Alert}/AlertClient.d.ts +1 -1
- package/{Alert → bin/Alert}/AlertClient.js +1 -1
- package/{Contributions → bin/Contributions}/ContributionsClient.js +2 -2
- package/{Contributions → bin/Contributions}/ContributionsClient.min.js +1 -1
- package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.js +7 -7
- package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.min.js +1 -1
- package/{FormInput → bin/FormInput}/FormInput.d.ts +8 -0
- package/bin/LICENSE +21 -0
- package/bin/README.md +2 -0
- package/{TaskAgent → bin/TaskAgent}/TaskAgent.d.ts +12 -0
- package/{Test → bin/Test}/Test.d.ts +31 -7
- package/{TestPlan → bin/TestPlan}/TestPlan.d.ts +6 -2
- package/{TestPlan → bin/TestPlan}/TestPlanClient.d.ts +19 -0
- package/{TestPlan → bin/TestPlan}/TestPlanClient.js +84 -0
- package/{TestPlan → bin/TestPlan}/TestPlanClient.min.js +1 -1
- package/{TestResults → bin/TestResults}/TestResultsClient.d.ts +8 -0
- package/{TestResults → bin/TestResults}/TestResultsClient.js +23 -0
- package/{TestResults → bin/TestResults}/TestResultsClient.min.js +1 -1
- package/bin/package.json +37 -0
- package/buildpackage.js +80 -0
- package/package.json +1 -1
- package/src/Accounts/Accounts.ts +134 -0
- package/src/Accounts/AccountsClient.ts +83 -0
- package/src/Accounts/index.ts +2 -0
- package/src/AdvancedSecurity.Reporting/Reporting.ts +180 -0
- package/src/AdvancedSecurity.Reporting/ReportingClient.ts +47 -0
- package/src/Alert/Alert.ts +1037 -0
- package/src/Alert/AlertClient.ts +330 -0
- package/src/Boards/Boards.ts +684 -0
- package/src/Boards/BoardsClient.ts +593 -0
- package/src/Boards/index.ts +2 -0
- package/src/Build/Build.ts +3416 -0
- package/src/Build/BuildClient.ts +2740 -0
- package/src/Build/BuildServices.ts +39 -0
- package/src/Build/index.ts +3 -0
- package/src/Comments/Comments.ts +330 -0
- package/src/Comments/index.ts +1 -0
- package/src/Common/Client.ts +37 -0
- package/src/Common/CommonServices.ts +853 -0
- package/src/Common/Context.d.ts +46 -0
- package/src/Common/Fetch.ts +239 -0
- package/src/Common/RestClientBase.ts +186 -0
- package/src/Common/System.ts +36 -0
- package/src/Common/SystemData.ts +135 -0
- package/src/Common/Util/Serialization.ts +59 -0
- package/src/Common/Util/Url.ts +773 -0
- package/src/Common/index.ts +3 -0
- package/src/Contributions/Contributions.ts +708 -0
- package/src/Contributions/ContributionsClient.ts +109 -0
- package/src/Contributions/index.ts +2 -0
- package/src/Core/Core.ts +579 -0
- package/src/Core/CoreClient.ts +765 -0
- package/src/Core/index.ts +2 -0
- package/src/Dashboard/Dashboard.ts +419 -0
- package/src/Dashboard/DashboardClient.ts +370 -0
- package/src/Dashboard/WidgetConfigHelpers.ts +43 -0
- package/src/Dashboard/WidgetContracts.ts +226 -0
- package/src/Dashboard/WidgetHelpers.ts +145 -0
- package/src/Dashboard/index.ts +5 -0
- package/src/DistributedTaskCommon/DistributedTaskCommon.ts +108 -0
- package/src/DistributedTaskCommon/index.ts +1 -0
- package/src/ExtensionManagement/ExtensionManagement.ts +1205 -0
- package/src/ExtensionManagement/ExtensionManagementClient.ts +646 -0
- package/src/ExtensionManagement/index.ts +2 -0
- package/src/Favorite/Favorite.ts +136 -0
- package/src/Favorite/FavoriteClient.ts +301 -0
- package/src/FeatureAvailability/FeatureAvailability.ts +20 -0
- package/src/FeatureAvailability/FeatureAvailabilityClient.ts +153 -0
- package/src/FeatureAvailability/index.ts +2 -0
- package/src/FeatureManagement/FeatureManagement.ts +166 -0
- package/src/FeatureManagement/FeatureManagementClient.ts +246 -0
- package/src/FeatureManagement/index.ts +2 -0
- package/src/FileContainer/FileContainer.ts +205 -0
- package/src/FileContainer/FileContainerClient.ts +154 -0
- package/src/FileContainer/index.ts +2 -0
- package/src/FormInput/FormInput.ts +288 -0
- package/src/FormInput/index.ts +1 -0
- package/src/Gallery/Gallery.ts +1977 -0
- package/src/Gallery/GalleryClient.ts +2251 -0
- package/src/Gallery/index.ts +2 -0
- package/src/Git/CodeEditorTypes.ts +335 -0
- package/src/Git/Git.ts +4058 -0
- package/src/Git/GitClient.ts +4750 -0
- package/src/Git/GitServices.ts +18 -0
- package/src/Git/index.ts +4 -0
- package/src/Graph/Graph.ts +572 -0
- package/src/Graph/GraphClient.ts +846 -0
- package/src/Graph/index.ts +2 -0
- package/src/Identities/Identities.ts +261 -0
- package/src/Identities/IdentityProvider.ts +90 -0
- package/src/Identities/IdentityService.ts +89 -0
- package/src/Identities/index.ts +3 -0
- package/src/Locations/Locations.ts +165 -0
- package/src/Locations/LocationsClient.ts +220 -0
- package/src/Locations/index.ts +2 -0
- package/src/Management/Management.ts +172 -0
- package/src/Management/ManagementClient.ts +348 -0
- package/src/Notification/Notification.ts +1460 -0
- package/src/Notification/NotificationClient.ts +477 -0
- package/src/Notification/index.ts +2 -0
- package/src/Operations/Operations.ts +86 -0
- package/src/Operations/OperationsClient.ts +42 -0
- package/src/Operations/index.ts +2 -0
- package/src/Pipelines/Pipelines.ts +354 -0
- package/src/Pipelines/PipelinesClient.ts +306 -0
- package/src/Policy/Policy.ts +173 -0
- package/src/Policy/PolicyClient.ts +315 -0
- package/src/Policy/index.ts +2 -0
- package/src/Profile/Profile.ts +187 -0
- package/src/Profile/ProfileClient.ts +328 -0
- package/src/Profile/index.ts +2 -0
- package/src/ProjectAnalysis/ProjectAnalysis.ts +74 -0
- package/src/ProjectAnalysis/ProjectAnalysisClient.ts +124 -0
- package/src/ProjectAnalysis/index.ts +2 -0
- package/src/Release/Release.ts +4237 -0
- package/src/Release/ReleaseClient.ts +2450 -0
- package/src/Release/index.ts +2 -0
- package/src/ResourceUsage/ResourceUsage.ts +19 -0
- package/src/ResourceUsage/ResourceUsageClient.ts +48 -0
- package/src/ServiceEndpoint/ServiceEndpoint.ts +930 -0
- package/src/ServiceEndpoint/ServiceEndpointClient.ts +617 -0
- package/src/ServiceEndpoint/index.ts +2 -0
- package/src/ServiceHooks/ServiceHooks.ts +759 -0
- package/src/ServiceHooks/ServiceHooksClient.ts +499 -0
- package/src/ServiceHooks/index.ts +2 -0
- package/src/TaskAgent/TaskAgent.ts +3896 -0
- package/src/TaskAgent/TaskAgentClient.ts +3918 -0
- package/src/TaskAgent/index.ts +2 -0
- package/src/Test/Test.ts +5853 -0
- package/src/Test/TestClient.ts +2201 -0
- package/src/Test/index.ts +2 -0
- package/src/TestPlan/TestPlan.ts +1384 -0
- package/src/TestPlan/TestPlanClient.ts +1367 -0
- package/src/TestPlan/index.ts +2 -0
- package/{AdvancedSecurity.Reporting/Reporting.js → src/TestResults/TestResults.ts} +7 -5
- package/src/TestResults/TestResultsClient.ts +3450 -0
- package/src/TestResults/index.ts +2 -0
- package/src/Tfvc/Tfvc.ts +770 -0
- package/src/Tfvc/TfvcClient.ts +757 -0
- package/src/Tfvc/index.ts +2 -0
- package/src/WebApi/WebApi.ts +452 -0
- package/src/WebApi/index.ts +1 -0
- package/src/Wiki/Wiki.ts +352 -0
- package/src/Wiki/WikiClient.ts +712 -0
- package/src/Wiki/index.ts +2 -0
- package/src/Work/Work.ts +1367 -0
- package/src/Work/WorkClient.ts +1489 -0
- package/src/Work/index.ts +2 -0
- package/src/WorkItemTracking/WorkItemTracking.ts +2215 -0
- package/src/WorkItemTracking/WorkItemTrackingClient.ts +2032 -0
- package/src/WorkItemTracking/WorkItemTrackingServices.ts +329 -0
- package/src/WorkItemTracking/index.ts +3 -0
- package/src/WorkItemTrackingProcess/WorkItemTrackingProcess.ts +1295 -0
- package/src/WorkItemTrackingProcess/WorkItemTrackingProcessClient.ts +1455 -0
- package/src/WorkItemTrackingProcess/index.ts +2 -0
- package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.ts +606 -0
- package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.ts +1175 -0
- package/src/WorkItemTrackingProcessDefinitions/index.ts +2 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +21 -0
- package/AdvancedSecurity.Reporting/Reporting.min.js +0 -1
- /package/{Accounts → bin/Accounts}/Accounts.d.ts +0 -0
- /package/{Accounts → bin/Accounts}/Accounts.js +0 -0
- /package/{Accounts → bin/Accounts}/Accounts.min.js +0 -0
- /package/{Accounts → bin/Accounts}/AccountsClient.d.ts +0 -0
- /package/{Accounts → bin/Accounts}/AccountsClient.js +0 -0
- /package/{Accounts → bin/Accounts}/AccountsClient.min.js +0 -0
- /package/{Accounts → bin/Accounts}/index.d.ts +0 -0
- /package/{Accounts → bin/Accounts}/index.js +0 -0
- /package/{Accounts → bin/Accounts}/index.min.js +0 -0
- /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.d.ts +0 -0
- /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.js +0 -0
- /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.min.js +0 -0
- /package/{Alert → bin/Alert}/Alert.js +0 -0
- /package/{Alert → bin/Alert}/Alert.min.js +0 -0
- /package/{Alert → bin/Alert}/AlertClient.min.js +0 -0
- /package/{Boards → bin/Boards}/Boards.d.ts +0 -0
- /package/{Boards → bin/Boards}/Boards.js +0 -0
- /package/{Boards → bin/Boards}/Boards.min.js +0 -0
- /package/{Boards → bin/Boards}/BoardsClient.d.ts +0 -0
- /package/{Boards → bin/Boards}/BoardsClient.js +0 -0
- /package/{Boards → bin/Boards}/BoardsClient.min.js +0 -0
- /package/{Boards → bin/Boards}/index.d.ts +0 -0
- /package/{Boards → bin/Boards}/index.js +0 -0
- /package/{Boards → bin/Boards}/index.min.js +0 -0
- /package/{Build → bin/Build}/Build.d.ts +0 -0
- /package/{Build → bin/Build}/Build.js +0 -0
- /package/{Build → bin/Build}/Build.min.js +0 -0
- /package/{Build → bin/Build}/BuildClient.d.ts +0 -0
- /package/{Build → bin/Build}/BuildClient.js +0 -0
- /package/{Build → bin/Build}/BuildClient.min.js +0 -0
- /package/{Build → bin/Build}/BuildServices.d.ts +0 -0
- /package/{Build → bin/Build}/BuildServices.js +0 -0
- /package/{Build → bin/Build}/BuildServices.min.js +0 -0
- /package/{Build → bin/Build}/index.d.ts +0 -0
- /package/{Build → bin/Build}/index.js +0 -0
- /package/{Build → bin/Build}/index.min.js +0 -0
- /package/{Comments → bin/Comments}/Comments.d.ts +0 -0
- /package/{Comments → bin/Comments}/Comments.js +0 -0
- /package/{Comments → bin/Comments}/Comments.min.js +0 -0
- /package/{Comments → bin/Comments}/index.d.ts +0 -0
- /package/{Comments → bin/Comments}/index.js +0 -0
- /package/{Comments → bin/Comments}/index.min.js +0 -0
- /package/{Common → bin/Common}/Client.d.ts +0 -0
- /package/{Common → bin/Common}/Client.js +0 -0
- /package/{Common → bin/Common}/Client.min.js +0 -0
- /package/{Common → bin/Common}/CommonServices.d.ts +0 -0
- /package/{Common → bin/Common}/CommonServices.js +0 -0
- /package/{Common → bin/Common}/CommonServices.min.js +0 -0
- /package/{Common → bin/Common}/Context.d.ts +0 -0
- /package/{Common → bin/Common}/Fetch.d.ts +0 -0
- /package/{Common → bin/Common}/Fetch.js +0 -0
- /package/{Common → bin/Common}/Fetch.min.js +0 -0
- /package/{Common → bin/Common}/RestClientBase.d.ts +0 -0
- /package/{Common → bin/Common}/RestClientBase.js +0 -0
- /package/{Common → bin/Common}/RestClientBase.min.js +0 -0
- /package/{Common → bin/Common}/System.d.ts +0 -0
- /package/{Common → bin/Common}/System.js +0 -0
- /package/{Common → bin/Common}/System.min.js +0 -0
- /package/{Common → bin/Common}/SystemData.d.ts +0 -0
- /package/{Common → bin/Common}/SystemData.js +0 -0
- /package/{Common → bin/Common}/SystemData.min.js +0 -0
- /package/{Common → bin/Common}/Util/Serialization.d.ts +0 -0
- /package/{Common → bin/Common}/Util/Serialization.js +0 -0
- /package/{Common → bin/Common}/Util/Serialization.min.js +0 -0
- /package/{Common → bin/Common}/Util/Url.d.ts +0 -0
- /package/{Common → bin/Common}/Util/Url.js +0 -0
- /package/{Common → bin/Common}/Util/Url.min.js +0 -0
- /package/{Common → bin/Common}/index.d.ts +0 -0
- /package/{Common → bin/Common}/index.js +0 -0
- /package/{Common → bin/Common}/index.min.js +0 -0
- /package/{Contributions → bin/Contributions}/Contributions.d.ts +0 -0
- /package/{Contributions → bin/Contributions}/Contributions.js +0 -0
- /package/{Contributions → bin/Contributions}/Contributions.min.js +0 -0
- /package/{Contributions → bin/Contributions}/ContributionsClient.d.ts +0 -0
- /package/{Contributions → bin/Contributions}/index.d.ts +0 -0
- /package/{Contributions → bin/Contributions}/index.js +0 -0
- /package/{Contributions → bin/Contributions}/index.min.js +0 -0
- /package/{Core → bin/Core}/Core.d.ts +0 -0
- /package/{Core → bin/Core}/Core.js +0 -0
- /package/{Core → bin/Core}/Core.min.js +0 -0
- /package/{Core → bin/Core}/CoreClient.d.ts +0 -0
- /package/{Core → bin/Core}/CoreClient.js +0 -0
- /package/{Core → bin/Core}/CoreClient.min.js +0 -0
- /package/{Core → bin/Core}/index.d.ts +0 -0
- /package/{Core → bin/Core}/index.js +0 -0
- /package/{Core → bin/Core}/index.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/Dashboard.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/Dashboard.js +0 -0
- /package/{Dashboard → bin/Dashboard}/Dashboard.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/DashboardClient.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/DashboardClient.js +0 -0
- /package/{Dashboard → bin/Dashboard}/DashboardClient.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetContracts.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetContracts.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetContracts.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetHelpers.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetHelpers.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetHelpers.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/index.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/index.js +0 -0
- /package/{Dashboard → bin/Dashboard}/index.min.js +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.d.ts +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.js +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.min.js +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.d.ts +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.js +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.min.js +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.d.ts +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.js +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.min.js +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.d.ts +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/index.d.ts +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/index.js +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/index.min.js +0 -0
- /package/{Favorite → bin/Favorite}/Favorite.d.ts +0 -0
- /package/{Favorite → bin/Favorite}/Favorite.js +0 -0
- /package/{Favorite → bin/Favorite}/Favorite.min.js +0 -0
- /package/{Favorite → bin/Favorite}/FavoriteClient.d.ts +0 -0
- /package/{Favorite → bin/Favorite}/FavoriteClient.js +0 -0
- /package/{Favorite → bin/Favorite}/FavoriteClient.min.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.d.ts +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.min.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.d.ts +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.min.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/index.d.ts +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/index.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/index.min.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.d.ts +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.min.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.d.ts +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.min.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/index.d.ts +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/index.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/index.min.js +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainer.d.ts +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainer.js +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainer.min.js +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainerClient.d.ts +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainerClient.js +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainerClient.min.js +0 -0
- /package/{FileContainer → bin/FileContainer}/index.d.ts +0 -0
- /package/{FileContainer → bin/FileContainer}/index.js +0 -0
- /package/{FileContainer → bin/FileContainer}/index.min.js +0 -0
- /package/{FormInput → bin/FormInput}/FormInput.js +0 -0
- /package/{FormInput → bin/FormInput}/FormInput.min.js +0 -0
- /package/{FormInput → bin/FormInput}/index.d.ts +0 -0
- /package/{FormInput → bin/FormInput}/index.js +0 -0
- /package/{FormInput → bin/FormInput}/index.min.js +0 -0
- /package/{Gallery → bin/Gallery}/Gallery.d.ts +0 -0
- /package/{Gallery → bin/Gallery}/Gallery.js +0 -0
- /package/{Gallery → bin/Gallery}/Gallery.min.js +0 -0
- /package/{Gallery → bin/Gallery}/GalleryClient.d.ts +0 -0
- /package/{Gallery → bin/Gallery}/GalleryClient.js +0 -0
- /package/{Gallery → bin/Gallery}/GalleryClient.min.js +0 -0
- /package/{Gallery → bin/Gallery}/index.d.ts +0 -0
- /package/{Gallery → bin/Gallery}/index.js +0 -0
- /package/{Gallery → bin/Gallery}/index.min.js +0 -0
- /package/{Git → bin/Git}/CodeEditorTypes.d.ts +0 -0
- /package/{Git → bin/Git}/CodeEditorTypes.js +0 -0
- /package/{Git → bin/Git}/CodeEditorTypes.min.js +0 -0
- /package/{Git → bin/Git}/Git.d.ts +0 -0
- /package/{Git → bin/Git}/Git.js +0 -0
- /package/{Git → bin/Git}/Git.min.js +0 -0
- /package/{Git → bin/Git}/GitClient.d.ts +0 -0
- /package/{Git → bin/Git}/GitClient.js +0 -0
- /package/{Git → bin/Git}/GitClient.min.js +0 -0
- /package/{Git → bin/Git}/GitServices.d.ts +0 -0
- /package/{Git → bin/Git}/GitServices.js +0 -0
- /package/{Git → bin/Git}/GitServices.min.js +0 -0
- /package/{Git → bin/Git}/index.d.ts +0 -0
- /package/{Git → bin/Git}/index.js +0 -0
- /package/{Git → bin/Git}/index.min.js +0 -0
- /package/{Graph → bin/Graph}/Graph.d.ts +0 -0
- /package/{Graph → bin/Graph}/Graph.js +0 -0
- /package/{Graph → bin/Graph}/Graph.min.js +0 -0
- /package/{Graph → bin/Graph}/GraphClient.d.ts +0 -0
- /package/{Graph → bin/Graph}/GraphClient.js +0 -0
- /package/{Graph → bin/Graph}/GraphClient.min.js +0 -0
- /package/{Graph → bin/Graph}/index.d.ts +0 -0
- /package/{Graph → bin/Graph}/index.js +0 -0
- /package/{Graph → bin/Graph}/index.min.js +0 -0
- /package/{Identities → bin/Identities}/Identities.d.ts +0 -0
- /package/{Identities → bin/Identities}/Identities.js +0 -0
- /package/{Identities → bin/Identities}/Identities.min.js +0 -0
- /package/{Identities → bin/Identities}/IdentityProvider.d.ts +0 -0
- /package/{Identities → bin/Identities}/IdentityProvider.js +0 -0
- /package/{Identities → bin/Identities}/IdentityProvider.min.js +0 -0
- /package/{Identities → bin/Identities}/IdentityService.d.ts +0 -0
- /package/{Identities → bin/Identities}/IdentityService.js +0 -0
- /package/{Identities → bin/Identities}/IdentityService.min.js +0 -0
- /package/{Identities → bin/Identities}/index.d.ts +0 -0
- /package/{Identities → bin/Identities}/index.js +0 -0
- /package/{Identities → bin/Identities}/index.min.js +0 -0
- /package/{Locations → bin/Locations}/Locations.d.ts +0 -0
- /package/{Locations → bin/Locations}/Locations.js +0 -0
- /package/{Locations → bin/Locations}/Locations.min.js +0 -0
- /package/{Locations → bin/Locations}/LocationsClient.d.ts +0 -0
- /package/{Locations → bin/Locations}/LocationsClient.js +0 -0
- /package/{Locations → bin/Locations}/LocationsClient.min.js +0 -0
- /package/{Locations → bin/Locations}/index.d.ts +0 -0
- /package/{Locations → bin/Locations}/index.js +0 -0
- /package/{Locations → bin/Locations}/index.min.js +0 -0
- /package/{Management → bin/Management}/Management.d.ts +0 -0
- /package/{Management → bin/Management}/Management.js +0 -0
- /package/{Management → bin/Management}/Management.min.js +0 -0
- /package/{Management → bin/Management}/ManagementClient.d.ts +0 -0
- /package/{Management → bin/Management}/ManagementClient.js +0 -0
- /package/{Management → bin/Management}/ManagementClient.min.js +0 -0
- /package/{Notification → bin/Notification}/Notification.d.ts +0 -0
- /package/{Notification → bin/Notification}/Notification.js +0 -0
- /package/{Notification → bin/Notification}/Notification.min.js +0 -0
- /package/{Notification → bin/Notification}/NotificationClient.d.ts +0 -0
- /package/{Notification → bin/Notification}/NotificationClient.js +0 -0
- /package/{Notification → bin/Notification}/NotificationClient.min.js +0 -0
- /package/{Notification → bin/Notification}/index.d.ts +0 -0
- /package/{Notification → bin/Notification}/index.js +0 -0
- /package/{Notification → bin/Notification}/index.min.js +0 -0
- /package/{Operations → bin/Operations}/Operations.d.ts +0 -0
- /package/{Operations → bin/Operations}/Operations.js +0 -0
- /package/{Operations → bin/Operations}/Operations.min.js +0 -0
- /package/{Operations → bin/Operations}/OperationsClient.d.ts +0 -0
- /package/{Operations → bin/Operations}/OperationsClient.js +0 -0
- /package/{Operations → bin/Operations}/OperationsClient.min.js +0 -0
- /package/{Operations → bin/Operations}/index.d.ts +0 -0
- /package/{Operations → bin/Operations}/index.js +0 -0
- /package/{Operations → bin/Operations}/index.min.js +0 -0
- /package/{Pipelines → bin/Pipelines}/Pipelines.d.ts +0 -0
- /package/{Pipelines → bin/Pipelines}/Pipelines.js +0 -0
- /package/{Pipelines → bin/Pipelines}/Pipelines.min.js +0 -0
- /package/{Pipelines → bin/Pipelines}/PipelinesClient.d.ts +0 -0
- /package/{Pipelines → bin/Pipelines}/PipelinesClient.js +0 -0
- /package/{Pipelines → bin/Pipelines}/PipelinesClient.min.js +0 -0
- /package/{Policy → bin/Policy}/Policy.d.ts +0 -0
- /package/{Policy → bin/Policy}/Policy.js +0 -0
- /package/{Policy → bin/Policy}/Policy.min.js +0 -0
- /package/{Policy → bin/Policy}/PolicyClient.d.ts +0 -0
- /package/{Policy → bin/Policy}/PolicyClient.js +0 -0
- /package/{Policy → bin/Policy}/PolicyClient.min.js +0 -0
- /package/{Policy → bin/Policy}/index.d.ts +0 -0
- /package/{Policy → bin/Policy}/index.js +0 -0
- /package/{Policy → bin/Policy}/index.min.js +0 -0
- /package/{Profile → bin/Profile}/Profile.d.ts +0 -0
- /package/{Profile → bin/Profile}/Profile.js +0 -0
- /package/{Profile → bin/Profile}/Profile.min.js +0 -0
- /package/{Profile → bin/Profile}/ProfileClient.d.ts +0 -0
- /package/{Profile → bin/Profile}/ProfileClient.js +0 -0
- /package/{Profile → bin/Profile}/ProfileClient.min.js +0 -0
- /package/{Profile → bin/Profile}/index.d.ts +0 -0
- /package/{Profile → bin/Profile}/index.js +0 -0
- /package/{Profile → bin/Profile}/index.min.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.d.ts +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.min.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.d.ts +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.min.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.d.ts +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.min.js +0 -0
- /package/{Release → bin/Release}/Release.d.ts +0 -0
- /package/{Release → bin/Release}/Release.js +0 -0
- /package/{Release → bin/Release}/Release.min.js +0 -0
- /package/{Release → bin/Release}/ReleaseClient.d.ts +0 -0
- /package/{Release → bin/Release}/ReleaseClient.js +0 -0
- /package/{Release → bin/Release}/ReleaseClient.min.js +0 -0
- /package/{Release → bin/Release}/index.d.ts +0 -0
- /package/{Release → bin/Release}/index.js +0 -0
- /package/{Release → bin/Release}/index.min.js +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.d.ts +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.js +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.min.js +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.d.ts +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.js +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.min.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.d.ts +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.min.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.d.ts +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.min.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.d.ts +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.min.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.d.ts +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.min.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.d.ts +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.min.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/index.d.ts +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/index.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/index.min.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/TaskAgent.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/TaskAgent.min.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.d.ts +0 -0
- /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.min.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/index.d.ts +0 -0
- /package/{TaskAgent → bin/TaskAgent}/index.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/index.min.js +0 -0
- /package/{Test → bin/Test}/Test.js +0 -0
- /package/{Test → bin/Test}/Test.min.js +0 -0
- /package/{Test → bin/Test}/TestClient.d.ts +0 -0
- /package/{Test → bin/Test}/TestClient.js +0 -0
- /package/{Test → bin/Test}/TestClient.min.js +0 -0
- /package/{Test → bin/Test}/index.d.ts +0 -0
- /package/{Test → bin/Test}/index.js +0 -0
- /package/{Test → bin/Test}/index.min.js +0 -0
- /package/{TestPlan → bin/TestPlan}/TestPlan.js +0 -0
- /package/{TestPlan → bin/TestPlan}/TestPlan.min.js +0 -0
- /package/{TestPlan → bin/TestPlan}/index.d.ts +0 -0
- /package/{TestPlan → bin/TestPlan}/index.js +0 -0
- /package/{TestPlan → bin/TestPlan}/index.min.js +0 -0
- /package/{TestResults → bin/TestResults}/TestResults.d.ts +0 -0
- /package/{TestResults → bin/TestResults}/TestResults.js +0 -0
- /package/{TestResults → bin/TestResults}/TestResults.min.js +0 -0
- /package/{TestResults → bin/TestResults}/index.d.ts +0 -0
- /package/{TestResults → bin/TestResults}/index.js +0 -0
- /package/{TestResults → bin/TestResults}/index.min.js +0 -0
- /package/{Tfvc → bin/Tfvc}/Tfvc.d.ts +0 -0
- /package/{Tfvc → bin/Tfvc}/Tfvc.js +0 -0
- /package/{Tfvc → bin/Tfvc}/Tfvc.min.js +0 -0
- /package/{Tfvc → bin/Tfvc}/TfvcClient.d.ts +0 -0
- /package/{Tfvc → bin/Tfvc}/TfvcClient.js +0 -0
- /package/{Tfvc → bin/Tfvc}/TfvcClient.min.js +0 -0
- /package/{Tfvc → bin/Tfvc}/index.d.ts +0 -0
- /package/{Tfvc → bin/Tfvc}/index.js +0 -0
- /package/{Tfvc → bin/Tfvc}/index.min.js +0 -0
- /package/{WebApi → bin/WebApi}/WebApi.d.ts +0 -0
- /package/{WebApi → bin/WebApi}/WebApi.js +0 -0
- /package/{WebApi → bin/WebApi}/WebApi.min.js +0 -0
- /package/{WebApi → bin/WebApi}/index.d.ts +0 -0
- /package/{WebApi → bin/WebApi}/index.js +0 -0
- /package/{WebApi → bin/WebApi}/index.min.js +0 -0
- /package/{Wiki → bin/Wiki}/Wiki.d.ts +0 -0
- /package/{Wiki → bin/Wiki}/Wiki.js +0 -0
- /package/{Wiki → bin/Wiki}/Wiki.min.js +0 -0
- /package/{Wiki → bin/Wiki}/WikiClient.d.ts +0 -0
- /package/{Wiki → bin/Wiki}/WikiClient.js +0 -0
- /package/{Wiki → bin/Wiki}/WikiClient.min.js +0 -0
- /package/{Wiki → bin/Wiki}/index.d.ts +0 -0
- /package/{Wiki → bin/Wiki}/index.js +0 -0
- /package/{Wiki → bin/Wiki}/index.min.js +0 -0
- /package/{Work → bin/Work}/Work.d.ts +0 -0
- /package/{Work → bin/Work}/Work.js +0 -0
- /package/{Work → bin/Work}/Work.min.js +0 -0
- /package/{Work → bin/Work}/WorkClient.d.ts +0 -0
- /package/{Work → bin/Work}/WorkClient.js +0 -0
- /package/{Work → bin/Work}/WorkClient.min.js +0 -0
- /package/{Work → bin/Work}/index.d.ts +0 -0
- /package/{Work → bin/Work}/index.js +0 -0
- /package/{Work → bin/Work}/index.min.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.d.ts +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.min.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.d.ts +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.min.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.d.ts +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.min.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/index.d.ts +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/index.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/index.min.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.d.ts +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.min.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.d.ts +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.min.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.d.ts +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.min.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.d.ts +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.min.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.d.ts +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.min.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.d.ts +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.min.js +0 -0
- /package/{index.d.ts → bin/index.d.ts} +0 -0
- /package/{index.js → bin/index.js} +0 -0
- /package/{index.min.js → bin/index.min.js} +0 -0
|
@@ -0,0 +1,617 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ---------------------------------------------------------
|
|
3
|
+
* Copyright(C) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* ---------------------------------------------------------
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { IVssRestClientOptions } from "../Common/Context";
|
|
8
|
+
import { RestClientBase } from "../Common/RestClientBase";
|
|
9
|
+
import { deserializeVssJsonObject } from "../Common/Util/Serialization";
|
|
10
|
+
|
|
11
|
+
import * as ServiceEndpoint from "../ServiceEndpoint/ServiceEndpoint";
|
|
12
|
+
import * as WebApi from "../WebApi/WebApi";
|
|
13
|
+
|
|
14
|
+
export class ServiceEndpointRestClient extends RestClientBase {
|
|
15
|
+
constructor(options: IVssRestClientOptions) {
|
|
16
|
+
super(options);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public static readonly RESOURCE_AREA_ID = "1814ab31-2f4f-4a9f-8761-f4d77dc5a5d7";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Returns list of azure subscriptions
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
public async getAzureManagementGroups(
|
|
26
|
+
): Promise<ServiceEndpoint.AzureManagementGroupQueryResult> {
|
|
27
|
+
|
|
28
|
+
return this.beginRequest<ServiceEndpoint.AzureManagementGroupQueryResult>({
|
|
29
|
+
apiVersion: "7.2-preview.1",
|
|
30
|
+
routeTemplate: "_apis/serviceendpoint/endpointproxy/azurermmanagementgroups"
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Returns list of azure subscriptions
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
public async getAzureSubscriptions(
|
|
39
|
+
): Promise<ServiceEndpoint.AzureSubscriptionQueryResult> {
|
|
40
|
+
|
|
41
|
+
return this.beginRequest<ServiceEndpoint.AzureSubscriptionQueryResult>({
|
|
42
|
+
apiVersion: "7.2-preview.1",
|
|
43
|
+
routeTemplate: "_apis/serviceendpoint/endpointproxy/azurermsubscriptions"
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Proxy for a GET request defined by a service endpoint.
|
|
49
|
+
*
|
|
50
|
+
* @param serviceEndpointRequest - Service endpoint request.
|
|
51
|
+
* @param project - Project ID or project name
|
|
52
|
+
* @param endpointId - Id of the service endpoint.
|
|
53
|
+
*/
|
|
54
|
+
public async executeServiceEndpointRequest(
|
|
55
|
+
serviceEndpointRequest: ServiceEndpoint.ServiceEndpointRequest,
|
|
56
|
+
project: string,
|
|
57
|
+
endpointId: string
|
|
58
|
+
): Promise<ServiceEndpoint.ServiceEndpointRequestResult> {
|
|
59
|
+
|
|
60
|
+
const queryValues: any = {
|
|
61
|
+
endpointId: endpointId
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
return this.beginRequest<ServiceEndpoint.ServiceEndpointRequestResult>({
|
|
65
|
+
apiVersion: "7.2-preview.1",
|
|
66
|
+
method: "POST",
|
|
67
|
+
routeTemplate: "{project}/_apis/serviceendpoint/endpointproxy",
|
|
68
|
+
routeValues: {
|
|
69
|
+
project: project
|
|
70
|
+
},
|
|
71
|
+
queryParams: queryValues,
|
|
72
|
+
body: serviceEndpointRequest
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Proxy for a GET request defined by a service endpoint. The request is authorized using a data source in service endpoint. The response is filtered using an XPath/Json based selector.
|
|
78
|
+
*
|
|
79
|
+
* @param binding - Describes the data source to fetch.
|
|
80
|
+
* @param project - Project ID or project name
|
|
81
|
+
*/
|
|
82
|
+
public async queryServiceEndpoint(
|
|
83
|
+
binding: ServiceEndpoint.DataSourceBinding,
|
|
84
|
+
project: string
|
|
85
|
+
): Promise<string[]> {
|
|
86
|
+
|
|
87
|
+
return this.beginRequest<string[]>({
|
|
88
|
+
apiVersion: "7.2-preview.1",
|
|
89
|
+
method: "POST",
|
|
90
|
+
routeTemplate: "{project}/_apis/serviceendpoint/endpointproxy",
|
|
91
|
+
routeValues: {
|
|
92
|
+
project: project
|
|
93
|
+
},
|
|
94
|
+
body: binding
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Creates a new service endpoint
|
|
100
|
+
*
|
|
101
|
+
* @param endpoint - Service endpoint to create
|
|
102
|
+
*/
|
|
103
|
+
public async createServiceEndpoint(
|
|
104
|
+
endpoint: ServiceEndpoint.ServiceEndpoint
|
|
105
|
+
): Promise<ServiceEndpoint.ServiceEndpoint> {
|
|
106
|
+
|
|
107
|
+
return this.beginRequest<ServiceEndpoint.ServiceEndpoint>({
|
|
108
|
+
apiVersion: "7.2-preview.4",
|
|
109
|
+
method: "POST",
|
|
110
|
+
routeTemplate: "_apis/serviceendpoint/endpoints/{endpointId}",
|
|
111
|
+
body: endpoint
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Delete a service endpoint
|
|
117
|
+
*
|
|
118
|
+
* @param endpointId - Endpoint Id of endpoint to delete
|
|
119
|
+
* @param projectIds - project Ids from which endpoint needs to be deleted
|
|
120
|
+
* @param deep - delete the spn created by endpoint
|
|
121
|
+
*/
|
|
122
|
+
public async deleteServiceEndpoint(
|
|
123
|
+
endpointId: string,
|
|
124
|
+
projectIds: string[],
|
|
125
|
+
deep?: boolean
|
|
126
|
+
): Promise<void> {
|
|
127
|
+
|
|
128
|
+
const queryValues: any = {
|
|
129
|
+
projectIds: projectIds && projectIds.join(","),
|
|
130
|
+
deep: deep
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
return this.beginRequest<void>({
|
|
134
|
+
apiVersion: "7.2-preview.4",
|
|
135
|
+
method: "DELETE",
|
|
136
|
+
routeTemplate: "_apis/serviceendpoint/endpoints/{endpointId}",
|
|
137
|
+
routeValues: {
|
|
138
|
+
endpointId: endpointId
|
|
139
|
+
},
|
|
140
|
+
queryParams: queryValues
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Share service endpoint across projects
|
|
146
|
+
*
|
|
147
|
+
* @param endpointProjectReferences - Project reference details of the target project
|
|
148
|
+
* @param endpointId - Endpoint Id of the endpoint to share
|
|
149
|
+
*/
|
|
150
|
+
public async shareServiceEndpoint(
|
|
151
|
+
endpointProjectReferences: ServiceEndpoint.ServiceEndpointProjectReference[],
|
|
152
|
+
endpointId: string
|
|
153
|
+
): Promise<void> {
|
|
154
|
+
|
|
155
|
+
return this.beginRequest<void>({
|
|
156
|
+
apiVersion: "7.2-preview.4",
|
|
157
|
+
method: "PATCH",
|
|
158
|
+
routeTemplate: "_apis/serviceendpoint/endpoints/{endpointId}",
|
|
159
|
+
routeValues: {
|
|
160
|
+
endpointId: endpointId
|
|
161
|
+
},
|
|
162
|
+
body: endpointProjectReferences
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Update the service endpoint
|
|
168
|
+
*
|
|
169
|
+
* @param endpoint - Updated data for the endpoint
|
|
170
|
+
* @param endpointId - Endpoint Id of the endpoint to update
|
|
171
|
+
* @param operation - operation type
|
|
172
|
+
*/
|
|
173
|
+
public async updateServiceEndpoint(
|
|
174
|
+
endpoint: ServiceEndpoint.ServiceEndpoint,
|
|
175
|
+
endpointId: string,
|
|
176
|
+
operation?: string
|
|
177
|
+
): Promise<ServiceEndpoint.ServiceEndpoint> {
|
|
178
|
+
|
|
179
|
+
const queryValues: any = {
|
|
180
|
+
operation: operation
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
return this.beginRequest<ServiceEndpoint.ServiceEndpoint>({
|
|
184
|
+
apiVersion: "7.2-preview.4",
|
|
185
|
+
method: "PUT",
|
|
186
|
+
routeTemplate: "_apis/serviceendpoint/endpoints/{endpointId}",
|
|
187
|
+
routeValues: {
|
|
188
|
+
endpointId: endpointId
|
|
189
|
+
},
|
|
190
|
+
queryParams: queryValues,
|
|
191
|
+
body: endpoint
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Update the service endpoints.
|
|
197
|
+
*
|
|
198
|
+
* @param endpoints - Names of the service endpoints to update.
|
|
199
|
+
*/
|
|
200
|
+
public async updateServiceEndpoints(
|
|
201
|
+
endpoints: ServiceEndpoint.ServiceEndpoint[]
|
|
202
|
+
): Promise<ServiceEndpoint.ServiceEndpoint[]> {
|
|
203
|
+
|
|
204
|
+
return this.beginRequest<ServiceEndpoint.ServiceEndpoint[]>({
|
|
205
|
+
apiVersion: "7.2-preview.4",
|
|
206
|
+
method: "PUT",
|
|
207
|
+
routeTemplate: "_apis/serviceendpoint/endpoints/{endpointId}",
|
|
208
|
+
body: endpoints
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Get the service endpoint details.
|
|
214
|
+
*
|
|
215
|
+
* @param project - Project ID or project name
|
|
216
|
+
* @param endpointId - Id of the service endpoint.
|
|
217
|
+
* @param actionFilter - Action filter for the service connection. It specifies the action which can be performed on the service connection.
|
|
218
|
+
* @param loadConfidetantialData - Flag to include confidential details of service endpoint. This is for internal use only.
|
|
219
|
+
*/
|
|
220
|
+
public async getServiceEndpointDetails(
|
|
221
|
+
project: string,
|
|
222
|
+
endpointId: string,
|
|
223
|
+
actionFilter?: ServiceEndpoint.ServiceEndpointActionFilter,
|
|
224
|
+
loadConfidetantialData?: boolean
|
|
225
|
+
): Promise<ServiceEndpoint.ServiceEndpoint> {
|
|
226
|
+
|
|
227
|
+
const queryValues: any = {
|
|
228
|
+
actionFilter: actionFilter,
|
|
229
|
+
loadConfidetantialData: loadConfidetantialData
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
return this.beginRequest<ServiceEndpoint.ServiceEndpoint>({
|
|
233
|
+
apiVersion: "7.2-preview.4",
|
|
234
|
+
routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
|
|
235
|
+
routeValues: {
|
|
236
|
+
project: project,
|
|
237
|
+
endpointId: endpointId
|
|
238
|
+
},
|
|
239
|
+
queryParams: queryValues
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Get the service endpoints.
|
|
245
|
+
*
|
|
246
|
+
* @param project - Project ID or project name
|
|
247
|
+
* @param type - Type of the service endpoints.
|
|
248
|
+
* @param authSchemes - Authorization schemes used for service endpoints.
|
|
249
|
+
* @param endpointIds - Ids of the service endpoints.
|
|
250
|
+
* @param owner - Owner for service endpoints.
|
|
251
|
+
* @param includeFailed - Failed flag for service endpoints.
|
|
252
|
+
* @param includeDetails - Flag to include more details for service endpoints. This is for internal use only and the flag will be treated as false for all other requests
|
|
253
|
+
* @param actionFilter - The "actionFilter" parameter allows users to evaluate requestor permissions and retrieve a list of endpoints that match the specified conditions, ensuring that only relevant endpoints are returned based on their permissions
|
|
254
|
+
*/
|
|
255
|
+
public async getServiceEndpoints(
|
|
256
|
+
project: string,
|
|
257
|
+
type?: string,
|
|
258
|
+
authSchemes?: string[],
|
|
259
|
+
endpointIds?: string[],
|
|
260
|
+
owner?: string,
|
|
261
|
+
includeFailed?: boolean,
|
|
262
|
+
includeDetails?: boolean,
|
|
263
|
+
actionFilter?: ServiceEndpoint.ServiceEndpointActionFilter
|
|
264
|
+
): Promise<ServiceEndpoint.ServiceEndpoint[]> {
|
|
265
|
+
|
|
266
|
+
const queryValues: any = {
|
|
267
|
+
type: type,
|
|
268
|
+
authSchemes: authSchemes && authSchemes.join(","),
|
|
269
|
+
endpointIds: endpointIds && endpointIds.join(","),
|
|
270
|
+
owner: owner,
|
|
271
|
+
includeFailed: includeFailed,
|
|
272
|
+
includeDetails: includeDetails,
|
|
273
|
+
actionFilter: actionFilter
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
return this.beginRequest<ServiceEndpoint.ServiceEndpoint[]>({
|
|
277
|
+
apiVersion: "7.2-preview.4",
|
|
278
|
+
routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
|
|
279
|
+
routeValues: {
|
|
280
|
+
project: project
|
|
281
|
+
},
|
|
282
|
+
queryParams: queryValues
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Get the service endpoints by name.
|
|
288
|
+
*
|
|
289
|
+
* @param project - Project ID or project name
|
|
290
|
+
* @param endpointNames - Names of the service endpoints.
|
|
291
|
+
* @param type - Type of the service endpoints.
|
|
292
|
+
* @param authSchemes - Authorization schemes used for service endpoints.
|
|
293
|
+
* @param owner - Owner for service endpoints.
|
|
294
|
+
* @param includeFailed - Failed flag for service endpoints.
|
|
295
|
+
* @param includeDetails - Flag to include more details for service endpoints. This is for internal use only and the flag will be treated as false for all other requests
|
|
296
|
+
*/
|
|
297
|
+
public async getServiceEndpointsByNames(
|
|
298
|
+
project: string,
|
|
299
|
+
endpointNames: string[],
|
|
300
|
+
type?: string,
|
|
301
|
+
authSchemes?: string[],
|
|
302
|
+
owner?: string,
|
|
303
|
+
includeFailed?: boolean,
|
|
304
|
+
includeDetails?: boolean
|
|
305
|
+
): Promise<ServiceEndpoint.ServiceEndpoint[]> {
|
|
306
|
+
|
|
307
|
+
const queryValues: any = {
|
|
308
|
+
endpointNames: endpointNames && endpointNames.join(","),
|
|
309
|
+
type: type,
|
|
310
|
+
authSchemes: authSchemes && authSchemes.join(","),
|
|
311
|
+
owner: owner,
|
|
312
|
+
includeFailed: includeFailed,
|
|
313
|
+
includeDetails: includeDetails
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
return this.beginRequest<ServiceEndpoint.ServiceEndpoint[]>({
|
|
317
|
+
apiVersion: "7.2-preview.4",
|
|
318
|
+
routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
|
|
319
|
+
routeValues: {
|
|
320
|
+
project: project
|
|
321
|
+
},
|
|
322
|
+
queryParams: queryValues
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Gets the service endpoints and patch new authorization parameters
|
|
328
|
+
*
|
|
329
|
+
* @param refreshAuthenticationParameters - Scope, Validity of Token requested.
|
|
330
|
+
* @param project - Project ID or project name
|
|
331
|
+
* @param endpointIds - Ids of the service endpoints.
|
|
332
|
+
*/
|
|
333
|
+
public async getServiceEndpointsWithRefreshedAuthentication(
|
|
334
|
+
refreshAuthenticationParameters: ServiceEndpoint.RefreshAuthenticationParameters[],
|
|
335
|
+
project: string,
|
|
336
|
+
endpointIds: string[]
|
|
337
|
+
): Promise<ServiceEndpoint.ServiceEndpoint[]> {
|
|
338
|
+
|
|
339
|
+
const queryValues: any = {
|
|
340
|
+
endpointIds: endpointIds && endpointIds.join(",")
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
return this.beginRequest<ServiceEndpoint.ServiceEndpoint[]>({
|
|
344
|
+
apiVersion: "7.2-preview.4",
|
|
345
|
+
method: "POST",
|
|
346
|
+
routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
|
|
347
|
+
routeValues: {
|
|
348
|
+
project: project
|
|
349
|
+
},
|
|
350
|
+
queryParams: queryValues,
|
|
351
|
+
body: refreshAuthenticationParameters
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Get service endpoint execution records.
|
|
357
|
+
*
|
|
358
|
+
* @param project - Project ID or project name
|
|
359
|
+
* @param endpointId - Id of the service endpoint.
|
|
360
|
+
* @param top - Number of service endpoint execution records to get.
|
|
361
|
+
* @param continuationToken - A continuation token, returned by a previous call to this method, that can be used to return the next set of records
|
|
362
|
+
*/
|
|
363
|
+
public async getServiceEndpointExecutionRecords(
|
|
364
|
+
project: string,
|
|
365
|
+
endpointId: string,
|
|
366
|
+
top?: number,
|
|
367
|
+
continuationToken?: number
|
|
368
|
+
): Promise<WebApi.PagedList<ServiceEndpoint.ServiceEndpointExecutionRecord>> {
|
|
369
|
+
|
|
370
|
+
const queryValues: any = {
|
|
371
|
+
top: top,
|
|
372
|
+
continuationToken: continuationToken
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
return this.beginRequest<Response>({
|
|
376
|
+
apiVersion: "7.2-preview.1",
|
|
377
|
+
routeTemplate: "{project}/_apis/serviceendpoint/{endpointId}/executionhistory",
|
|
378
|
+
routeValues: {
|
|
379
|
+
project: project,
|
|
380
|
+
endpointId: endpointId
|
|
381
|
+
},
|
|
382
|
+
queryParams: queryValues,
|
|
383
|
+
returnRawResponse: true
|
|
384
|
+
}).then(async response => {
|
|
385
|
+
const body = <WebApi.PagedList<ServiceEndpoint.ServiceEndpointExecutionRecord>>await response.text().then(deserializeVssJsonObject);
|
|
386
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
387
|
+
return body;
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Add service endpoint execution records.
|
|
393
|
+
*
|
|
394
|
+
* @param input - Service endpoint execution records to add.
|
|
395
|
+
* @param project - Project ID or project name
|
|
396
|
+
*/
|
|
397
|
+
public async addServiceEndpointExecutionRecords(
|
|
398
|
+
input: ServiceEndpoint.ServiceEndpointExecutionRecordsInput,
|
|
399
|
+
project: string
|
|
400
|
+
): Promise<ServiceEndpoint.ServiceEndpointExecutionRecord[]> {
|
|
401
|
+
|
|
402
|
+
return this.beginRequest<ServiceEndpoint.ServiceEndpointExecutionRecord[]>({
|
|
403
|
+
apiVersion: "7.2-preview.1",
|
|
404
|
+
method: "POST",
|
|
405
|
+
routeTemplate: "{project}/_apis/serviceendpoint/executionhistory",
|
|
406
|
+
routeValues: {
|
|
407
|
+
project: project
|
|
408
|
+
},
|
|
409
|
+
body: input
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* @param configurationParams -
|
|
415
|
+
*/
|
|
416
|
+
public async createOAuthConfiguration(
|
|
417
|
+
configurationParams: ServiceEndpoint.OAuthConfigurationParams
|
|
418
|
+
): Promise<ServiceEndpoint.OAuthConfiguration> {
|
|
419
|
+
|
|
420
|
+
return this.beginRequest<ServiceEndpoint.OAuthConfiguration>({
|
|
421
|
+
apiVersion: "7.2-preview.1",
|
|
422
|
+
method: "POST",
|
|
423
|
+
routeTemplate: "_apis/serviceendpoint/oauthconfiguration/{configurationId}",
|
|
424
|
+
body: configurationParams
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* @param configurationId -
|
|
430
|
+
*/
|
|
431
|
+
public async deleteOAuthConfiguration(
|
|
432
|
+
configurationId: string
|
|
433
|
+
): Promise<ServiceEndpoint.OAuthConfiguration> {
|
|
434
|
+
|
|
435
|
+
return this.beginRequest<ServiceEndpoint.OAuthConfiguration>({
|
|
436
|
+
apiVersion: "7.2-preview.1",
|
|
437
|
+
method: "DELETE",
|
|
438
|
+
routeTemplate: "_apis/serviceendpoint/oauthconfiguration/{configurationId}",
|
|
439
|
+
routeValues: {
|
|
440
|
+
configurationId: configurationId
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* @param configurationId -
|
|
447
|
+
*/
|
|
448
|
+
public async getOAuthConfiguration(
|
|
449
|
+
configurationId: string
|
|
450
|
+
): Promise<ServiceEndpoint.OAuthConfiguration> {
|
|
451
|
+
|
|
452
|
+
return this.beginRequest<ServiceEndpoint.OAuthConfiguration>({
|
|
453
|
+
apiVersion: "7.2-preview.1",
|
|
454
|
+
routeTemplate: "_apis/serviceendpoint/oauthconfiguration/{configurationId}",
|
|
455
|
+
routeValues: {
|
|
456
|
+
configurationId: configurationId
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* @param endpointType -
|
|
463
|
+
* @param actionFilter -
|
|
464
|
+
*/
|
|
465
|
+
public async getOAuthConfigurations(
|
|
466
|
+
endpointType?: string,
|
|
467
|
+
actionFilter?: ServiceEndpoint.OAuthConfigurationActionFilter
|
|
468
|
+
): Promise<ServiceEndpoint.OAuthConfiguration[]> {
|
|
469
|
+
|
|
470
|
+
const queryValues: any = {
|
|
471
|
+
endpointType: endpointType,
|
|
472
|
+
actionFilter: actionFilter
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
return this.beginRequest<ServiceEndpoint.OAuthConfiguration[]>({
|
|
476
|
+
apiVersion: "7.2-preview.1",
|
|
477
|
+
routeTemplate: "_apis/serviceendpoint/oauthconfiguration/{configurationId}",
|
|
478
|
+
queryParams: queryValues
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* @param configurationParams -
|
|
484
|
+
* @param configurationId -
|
|
485
|
+
*/
|
|
486
|
+
public async updateOAuthConfiguration(
|
|
487
|
+
configurationParams: ServiceEndpoint.OAuthConfigurationParams,
|
|
488
|
+
configurationId: string
|
|
489
|
+
): Promise<ServiceEndpoint.OAuthConfiguration> {
|
|
490
|
+
|
|
491
|
+
return this.beginRequest<ServiceEndpoint.OAuthConfiguration>({
|
|
492
|
+
apiVersion: "7.2-preview.1",
|
|
493
|
+
method: "PUT",
|
|
494
|
+
routeTemplate: "_apis/serviceendpoint/oauthconfiguration/{configurationId}",
|
|
495
|
+
routeValues: {
|
|
496
|
+
configurationId: configurationId
|
|
497
|
+
},
|
|
498
|
+
body: configurationParams
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* @param endpointId -
|
|
504
|
+
* @param project -
|
|
505
|
+
*/
|
|
506
|
+
public async querySharedProjects(
|
|
507
|
+
endpointId: string,
|
|
508
|
+
project: string
|
|
509
|
+
): Promise<ServiceEndpoint.ProjectReference[]> {
|
|
510
|
+
|
|
511
|
+
const queryValues: any = {
|
|
512
|
+
project: project
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
return this.beginRequest<ServiceEndpoint.ProjectReference[]>({
|
|
516
|
+
apiVersion: "7.2-preview.1",
|
|
517
|
+
routeTemplate: "_apis/serviceendpoint/share/{endpointId}",
|
|
518
|
+
routeValues: {
|
|
519
|
+
endpointId: endpointId
|
|
520
|
+
},
|
|
521
|
+
queryParams: queryValues
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @param endpointId -
|
|
527
|
+
* @param fromProject -
|
|
528
|
+
* @param withProject -
|
|
529
|
+
*/
|
|
530
|
+
public async shareEndpointWithProject(
|
|
531
|
+
endpointId: string,
|
|
532
|
+
fromProject: string,
|
|
533
|
+
withProject: string
|
|
534
|
+
): Promise<void> {
|
|
535
|
+
|
|
536
|
+
const queryValues: any = {
|
|
537
|
+
fromProject: fromProject,
|
|
538
|
+
withProject: withProject
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
return this.beginRequest<void>({
|
|
542
|
+
apiVersion: "7.2-preview.1",
|
|
543
|
+
method: "POST",
|
|
544
|
+
routeTemplate: "_apis/serviceendpoint/share/{endpointId}",
|
|
545
|
+
routeValues: {
|
|
546
|
+
endpointId: endpointId
|
|
547
|
+
},
|
|
548
|
+
queryParams: queryValues
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Get service endpoint types.
|
|
554
|
+
*
|
|
555
|
+
* @param type - Type of service endpoint.
|
|
556
|
+
* @param scheme - Scheme of service endpoint.
|
|
557
|
+
*/
|
|
558
|
+
public async getServiceEndpointTypes(
|
|
559
|
+
type?: string,
|
|
560
|
+
scheme?: string
|
|
561
|
+
): Promise<ServiceEndpoint.ServiceEndpointType[]> {
|
|
562
|
+
|
|
563
|
+
const queryValues: any = {
|
|
564
|
+
type: type,
|
|
565
|
+
scheme: scheme
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
return this.beginRequest<ServiceEndpoint.ServiceEndpointType[]>({
|
|
569
|
+
apiVersion: "7.2-preview.1",
|
|
570
|
+
routeTemplate: "_apis/serviceendpoint/types",
|
|
571
|
+
queryParams: queryValues
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* @param tenantId -
|
|
577
|
+
* @param redirectUri -
|
|
578
|
+
* @param promptOption -
|
|
579
|
+
* @param completeCallbackPayload -
|
|
580
|
+
* @param completeCallbackByAuthCode -
|
|
581
|
+
*/
|
|
582
|
+
public async createAadOAuthRequest(
|
|
583
|
+
tenantId: string,
|
|
584
|
+
redirectUri: string,
|
|
585
|
+
promptOption?: ServiceEndpoint.AadLoginPromptOption,
|
|
586
|
+
completeCallbackPayload?: string,
|
|
587
|
+
completeCallbackByAuthCode?: boolean
|
|
588
|
+
): Promise<string> {
|
|
589
|
+
|
|
590
|
+
const queryValues: any = {
|
|
591
|
+
tenantId: tenantId,
|
|
592
|
+
redirectUri: redirectUri,
|
|
593
|
+
promptOption: promptOption,
|
|
594
|
+
completeCallbackPayload: completeCallbackPayload,
|
|
595
|
+
completeCallbackByAuthCode: completeCallbackByAuthCode
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
return this.beginRequest<string>({
|
|
599
|
+
apiVersion: "7.2-preview.1",
|
|
600
|
+
method: "POST",
|
|
601
|
+
routeTemplate: "_apis/serviceendpoint/vstsaadoauth/vstsaadoauth",
|
|
602
|
+
queryParams: queryValues
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
*/
|
|
608
|
+
public async getVstsAadTenantId(
|
|
609
|
+
): Promise<string> {
|
|
610
|
+
|
|
611
|
+
return this.beginRequest<string>({
|
|
612
|
+
apiVersion: "7.2-preview.1",
|
|
613
|
+
routeTemplate: "_apis/serviceendpoint/vstsaadoauth/vstsaadoauth"
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
}
|