@pulumi/azuredevops 2.13.0 → 2.14.0-alpha.1698199311
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/agent/getPool.d.ts +0 -28
- package/agent/getPool.js +0 -28
- package/agent/getPool.js.map +1 -1
- package/agent/getPools.d.ts +0 -24
- package/agent/getPools.js +0 -24
- package/agent/getPools.js.map +1 -1
- package/agent/pool.d.ts +0 -11
- package/agent/pool.js +0 -11
- package/agent/pool.js.map +1 -1
- package/agent/queue.d.ts +0 -22
- package/agent/queue.js +0 -22
- package/agent/queue.js.map +1 -1
- package/areaPermissions.d.ts +0 -28
- package/areaPermissions.js +0 -28
- package/areaPermissions.js.map +1 -1
- package/branchPolicyAutoReviewers.d.ts +0 -34
- package/branchPolicyAutoReviewers.js +0 -34
- package/branchPolicyAutoReviewers.js.map +1 -1
- package/branchPolicyBuildValidation.d.ts +0 -52
- package/branchPolicyBuildValidation.js +0 -52
- package/branchPolicyBuildValidation.js.map +1 -1
- package/branchPolicyCommentResolution.d.ts +0 -36
- package/branchPolicyCommentResolution.js +0 -36
- package/branchPolicyCommentResolution.js.map +1 -1
- package/branchPolicyMergeTypes.d.ts +0 -40
- package/branchPolicyMergeTypes.js +0 -40
- package/branchPolicyMergeTypes.js.map +1 -1
- package/branchPolicyMinReviewers.d.ts +0 -42
- package/branchPolicyMinReviewers.js +0 -42
- package/branchPolicyMinReviewers.js.map +1 -1
- package/branchPolicyStatusCheck.d.ts +0 -49
- package/branchPolicyStatusCheck.js +0 -49
- package/branchPolicyStatusCheck.js.map +1 -1
- package/branchPolicyWorkItemLinking.d.ts +0 -36
- package/branchPolicyWorkItemLinking.js +0 -36
- package/branchPolicyWorkItemLinking.js.map +1 -1
- package/build/buildDefinition.d.ts +0 -120
- package/build/buildDefinition.js +0 -120
- package/build/buildDefinition.js.map +1 -1
- package/buildDefinition.d.ts +0 -120
- package/buildDefinition.js +0 -120
- package/buildDefinition.js.map +1 -1
- package/buildDefinitionPermissions.d.ts +0 -47
- package/buildDefinitionPermissions.js +0 -47
- package/buildDefinitionPermissions.js.map +1 -1
- package/buildFolder.d.ts +0 -18
- package/buildFolder.js +0 -18
- package/buildFolder.js.map +1 -1
- package/buildFolderPermissions.d.ts +0 -43
- package/buildFolderPermissions.js +0 -43
- package/buildFolderPermissions.js.map +1 -1
- package/checkApproval.d.ts +0 -17
- package/checkApproval.js +0 -17
- package/checkApproval.js.map +1 -1
- package/checkBranchControl.d.ts +0 -112
- package/checkBranchControl.js +0 -112
- package/checkBranchControl.js.map +1 -1
- package/checkBusinessHours.d.ts +0 -132
- package/checkBusinessHours.js +0 -132
- package/checkBusinessHours.js.map +1 -1
- package/checkExclusiveLock.d.ts +0 -37
- package/checkExclusiveLock.js +0 -37
- package/checkExclusiveLock.js.map +1 -1
- package/checkRequiredTemplate.d.ts +0 -53
- package/checkRequiredTemplate.js +0 -53
- package/checkRequiredTemplate.js.map +1 -1
- package/core/getClientConfig.d.ts +0 -20
- package/core/getClientConfig.js +0 -20
- package/core/getClientConfig.js.map +1 -1
- package/core/getProject.d.ts +0 -22
- package/core/getProject.js +0 -22
- package/core/getProject.js.map +1 -1
- package/core/getProjects.d.ts +0 -30
- package/core/getProjects.js +0 -30
- package/core/getProjects.js.map +1 -1
- package/core/project.d.ts +0 -17
- package/core/project.js +0 -17
- package/core/project.js.map +1 -1
- package/core/projectFeatures.d.ts +0 -20
- package/core/projectFeatures.js +0 -20
- package/core/projectFeatures.js.map +1 -1
- package/elasticPool.d.ts +0 -33
- package/elasticPool.js +0 -33
- package/elasticPool.js.map +1 -1
- package/entitlement/user.d.ts +0 -8
- package/entitlement/user.js +0 -8
- package/entitlement/user.js.map +1 -1
- package/environment.d.ts +0 -14
- package/environment.js +0 -14
- package/environment.js.map +1 -1
- package/getAgentQueue.d.ts +0 -38
- package/getAgentQueue.js +0 -38
- package/getAgentQueue.js.map +1 -1
- package/getArea.d.ts +0 -36
- package/getArea.js +0 -36
- package/getArea.js.map +1 -1
- package/getBuildDefinition.d.ts +0 -32
- package/getBuildDefinition.js +0 -32
- package/getBuildDefinition.js.map +1 -1
- package/getClientConfig.d.ts +0 -20
- package/getClientConfig.js +0 -20
- package/getClientConfig.js.map +1 -1
- package/getGitRepository.d.ts +0 -28
- package/getGitRepository.js +0 -28
- package/getGitRepository.js.map +1 -1
- package/getGroup.d.ts +0 -42
- package/getGroup.js +0 -42
- package/getGroup.js.map +1 -1
- package/getGroups.d.ts +0 -28
- package/getGroups.js +0 -28
- package/getGroups.js.map +1 -1
- package/getIteration.d.ts +0 -46
- package/getIteration.js +0 -46
- package/getIteration.js.map +1 -1
- package/getPool.d.ts +0 -28
- package/getPool.js +0 -28
- package/getPool.js.map +1 -1
- package/getPools.d.ts +0 -24
- package/getPools.js +0 -24
- package/getPools.js.map +1 -1
- package/getProject.d.ts +0 -22
- package/getProject.js +0 -22
- package/getProject.js.map +1 -1
- package/getProjects.d.ts +0 -30
- package/getProjects.js +0 -30
- package/getProjects.js.map +1 -1
- package/getRepositories.d.ts +0 -36
- package/getRepositories.js +0 -36
- package/getRepositories.js.map +1 -1
- package/getServiceEndpointAzureRM.d.ts +0 -60
- package/getServiceEndpointAzureRM.js +0 -60
- package/getServiceEndpointAzureRM.js.map +1 -1
- package/getServiceEndpointGithub.d.ts +0 -60
- package/getServiceEndpointGithub.js +0 -60
- package/getServiceEndpointGithub.js.map +1 -1
- package/getServiceendpointAzurecr.d.ts +0 -26
- package/getServiceendpointAzurecr.js +0 -26
- package/getServiceendpointAzurecr.js.map +1 -1
- package/getServiceendpointNpm.d.ts +0 -26
- package/getServiceendpointNpm.js +0 -26
- package/getServiceendpointNpm.js.map +1 -1
- package/getServiceendpointSonarcloud.d.ts +0 -26
- package/getServiceendpointSonarcloud.js +0 -26
- package/getServiceendpointSonarcloud.js.map +1 -1
- package/getTeam.d.ts +0 -34
- package/getTeam.js +0 -34
- package/getTeam.js.map +1 -1
- package/getTeams.d.ts +0 -24
- package/getTeams.js +0 -24
- package/getTeams.js.map +1 -1
- package/getUsers.d.ts +0 -62
- package/getUsers.js +0 -48
- package/getUsers.js.map +1 -1
- package/getVariableGroup.d.ts +0 -30
- package/getVariableGroup.js +0 -30
- package/getVariableGroup.js.map +1 -1
- package/gitPermissions.d.ts +0 -168
- package/gitPermissions.js +0 -168
- package/gitPermissions.js.map +1 -1
- package/gitRepositoryBranch.d.ts +0 -27
- package/gitRepositoryBranch.js +0 -27
- package/gitRepositoryBranch.js.map +1 -1
- package/gitRepositoryFile.d.ts +0 -26
- package/gitRepositoryFile.js +0 -26
- package/gitRepositoryFile.js.map +1 -1
- package/group.d.ts +0 -25
- package/group.js +0 -25
- package/group.js.map +1 -1
- package/groupEntitlement.d.ts +0 -17
- package/groupEntitlement.js +0 -17
- package/groupEntitlement.js.map +1 -1
- package/groupMembership.d.ts +0 -17
- package/groupMembership.js +0 -17
- package/groupMembership.js.map +1 -1
- package/identities/getGroup.d.ts +0 -42
- package/identities/getGroup.js +0 -42
- package/identities/getGroup.js.map +1 -1
- package/identities/getUsers.d.ts +0 -62
- package/identities/getUsers.js +0 -48
- package/identities/getUsers.js.map +1 -1
- package/identities/group.d.ts +0 -25
- package/identities/group.js +0 -25
- package/identities/group.js.map +1 -1
- package/identities/groupMembership.d.ts +0 -17
- package/identities/groupMembership.js +0 -17
- package/identities/groupMembership.js.map +1 -1
- package/iterativePermissions.d.ts +0 -36
- package/iterativePermissions.js +0 -36
- package/iterativePermissions.js.map +1 -1
- package/package.json +1 -1
- package/pipeline/variableGroup.d.ts +0 -71
- package/pipeline/variableGroup.js +0 -71
- package/pipeline/variableGroup.js.map +1 -1
- package/pipelineAuthorization.d.ts +0 -65
- package/pipelineAuthorization.js +0 -65
- package/pipelineAuthorization.js.map +1 -1
- package/policy/branchPolicyBuildValidation.d.ts +0 -52
- package/policy/branchPolicyBuildValidation.js +0 -52
- package/policy/branchPolicyBuildValidation.js.map +1 -1
- package/policy/branchPolicyMinReviewers.d.ts +0 -42
- package/policy/branchPolicyMinReviewers.js +0 -42
- package/policy/branchPolicyMinReviewers.js.map +1 -1
- package/pool.d.ts +0 -11
- package/pool.js +0 -11
- package/pool.js.map +1 -1
- package/project.d.ts +0 -17
- package/project.js +0 -17
- package/project.js.map +1 -1
- package/projectFeatures.d.ts +0 -20
- package/projectFeatures.js +0 -20
- package/projectFeatures.js.map +1 -1
- package/projectPermissions.d.ts +0 -27
- package/projectPermissions.js +0 -27
- package/projectPermissions.js.map +1 -1
- package/projectPipelineSettings.d.ts +0 -21
- package/projectPipelineSettings.js +0 -21
- package/projectPipelineSettings.js.map +1 -1
- package/queue.d.ts +0 -22
- package/queue.js +0 -22
- package/queue.js.map +1 -1
- package/repository/getRepositories.d.ts +0 -36
- package/repository/getRepositories.js +0 -36
- package/repository/getRepositories.js.map +1 -1
- package/repositoryPolicyAuthorEmailPattern.d.ts +0 -52
- package/repositoryPolicyAuthorEmailPattern.js +0 -52
- package/repositoryPolicyAuthorEmailPattern.js.map +1 -1
- package/repositoryPolicyCaseEnforcement.d.ts +0 -45
- package/repositoryPolicyCaseEnforcement.js +0 -45
- package/repositoryPolicyCaseEnforcement.js.map +1 -1
- package/repositoryPolicyCheckCredentials.d.ts +0 -43
- package/repositoryPolicyCheckCredentials.js +0 -43
- package/repositoryPolicyCheckCredentials.js.map +1 -1
- package/repositoryPolicyFilePathPattern.d.ts +0 -51
- package/repositoryPolicyFilePathPattern.js +0 -51
- package/repositoryPolicyFilePathPattern.js.map +1 -1
- package/repositoryPolicyMaxFileSize.d.ts +0 -45
- package/repositoryPolicyMaxFileSize.js +0 -45
- package/repositoryPolicyMaxFileSize.js.map +1 -1
- package/repositoryPolicyMaxPathLength.d.ts +0 -45
- package/repositoryPolicyMaxPathLength.js +0 -45
- package/repositoryPolicyMaxPathLength.js.map +1 -1
- package/repositoryPolicyReservedNames.d.ts +0 -43
- package/repositoryPolicyReservedNames.js +0 -43
- package/repositoryPolicyReservedNames.js.map +1 -1
- package/resourceAuthorization.d.ts +0 -25
- package/resourceAuthorization.js +0 -25
- package/resourceAuthorization.js.map +1 -1
- package/security/resourceAuthorization.d.ts +0 -25
- package/security/resourceAuthorization.js +0 -25
- package/security/resourceAuthorization.js.map +1 -1
- package/serviceEndpointArtifactory.d.ts +0 -45
- package/serviceEndpointArtifactory.js +0 -45
- package/serviceEndpointArtifactory.js.map +1 -1
- package/serviceEndpointAws.d.ts +0 -20
- package/serviceEndpointAws.js +0 -20
- package/serviceEndpointAws.js.map +1 -1
- package/serviceEndpointAzureDevOps.d.ts +0 -21
- package/serviceEndpointAzureDevOps.js +0 -21
- package/serviceEndpointAzureDevOps.js.map +1 -1
- package/serviceEndpointAzureEcr.d.ts +0 -23
- package/serviceEndpointAzureEcr.js +0 -23
- package/serviceEndpointAzureEcr.js.map +1 -1
- package/serviceEndpointAzureRM.d.ts +0 -156
- package/serviceEndpointAzureRM.js +0 -156
- package/serviceEndpointAzureRM.js.map +1 -1
- package/serviceEndpointBitBucket.d.ts +0 -20
- package/serviceEndpointBitBucket.js +0 -20
- package/serviceEndpointBitBucket.js.map +1 -1
- package/serviceEndpointDockerRegistry.d.ts +0 -31
- package/serviceEndpointDockerRegistry.js +0 -31
- package/serviceEndpointDockerRegistry.js.map +1 -1
- package/serviceEndpointGeneric.d.ts +0 -21
- package/serviceEndpointGeneric.js +0 -21
- package/serviceEndpointGeneric.js.map +1 -1
- package/serviceEndpointGenericGit.d.ts +0 -21
- package/serviceEndpointGenericGit.js +0 -21
- package/serviceEndpointGenericGit.js.map +1 -1
- package/serviceEndpointGitHub.d.ts +0 -56
- package/serviceEndpointGitHub.js +0 -56
- package/serviceEndpointGitHub.js.map +1 -1
- package/serviceEndpointGitHubEnterprise.d.ts +0 -22
- package/serviceEndpointGitHubEnterprise.js +0 -22
- package/serviceEndpointGitHubEnterprise.js.map +1 -1
- package/serviceEndpointNpm.d.ts +0 -20
- package/serviceEndpointNpm.js +0 -20
- package/serviceEndpointNpm.js.map +1 -1
- package/serviceEndpointPipeline.d.ts +0 -22
- package/serviceEndpointPipeline.js +0 -22
- package/serviceEndpointPipeline.js.map +1 -1
- package/serviceEndpointServiceFabric.d.ts +0 -72
- package/serviceEndpointServiceFabric.js +0 -72
- package/serviceEndpointServiceFabric.js.map +1 -1
- package/serviceEndpointSonarCloud.d.ts +0 -19
- package/serviceEndpointSonarCloud.js +0 -19
- package/serviceEndpointSonarCloud.js.map +1 -1
- package/serviceEndpointSonarQube.d.ts +0 -20
- package/serviceEndpointSonarQube.js +0 -20
- package/serviceEndpointSonarQube.js.map +1 -1
- package/serviceEndpointSsh.d.ts +0 -20
- package/serviceEndpointSsh.js +0 -20
- package/serviceEndpointSsh.js.map +1 -1
- package/serviceendpoint/azureRM.d.ts +0 -156
- package/serviceendpoint/azureRM.js +0 -156
- package/serviceendpoint/azureRM.js.map +1 -1
- package/serviceendpoint/bitBucket.d.ts +0 -20
- package/serviceendpoint/bitBucket.js +0 -20
- package/serviceendpoint/bitBucket.js.map +1 -1
- package/serviceendpoint/dockerRegistry.d.ts +0 -31
- package/serviceendpoint/dockerRegistry.js +0 -31
- package/serviceendpoint/dockerRegistry.js.map +1 -1
- package/serviceendpoint/gitHub.d.ts +0 -56
- package/serviceendpoint/gitHub.js +0 -56
- package/serviceendpoint/gitHub.js.map +1 -1
- package/serviceendpointArgocd.d.ts +0 -44
- package/serviceendpointArgocd.js +0 -44
- package/serviceendpointArgocd.js.map +1 -1
- package/serviceendpointGcpTerraform.d.ts +0 -22
- package/serviceendpointGcpTerraform.js +0 -22
- package/serviceendpointGcpTerraform.js.map +1 -1
- package/serviceendpointIncomingwebhook.d.ts +0 -22
- package/serviceendpointIncomingwebhook.js +0 -22
- package/serviceendpointIncomingwebhook.js.map +1 -1
- package/serviceendpointJenkins.d.ts +0 -23
- package/serviceendpointJenkins.js +0 -23
- package/serviceendpointJenkins.js.map +1 -1
- package/serviceendpointJfrogArtifactoryV2.d.ts +0 -45
- package/serviceendpointJfrogArtifactoryV2.js +0 -45
- package/serviceendpointJfrogArtifactoryV2.js.map +1 -1
- package/serviceendpointJfrogDistributionV2.d.ts +0 -45
- package/serviceendpointJfrogDistributionV2.js +0 -45
- package/serviceendpointJfrogDistributionV2.js.map +1 -1
- package/serviceendpointJfrogPlatformV2.d.ts +0 -45
- package/serviceendpointJfrogPlatformV2.js +0 -45
- package/serviceendpointJfrogPlatformV2.js.map +1 -1
- package/serviceendpointJfrogXrayV2.d.ts +0 -45
- package/serviceendpointJfrogXrayV2.js +0 -45
- package/serviceendpointJfrogXrayV2.js.map +1 -1
- package/serviceendpointMaven.d.ts +0 -49
- package/serviceendpointMaven.js +0 -49
- package/serviceendpointMaven.js.map +1 -1
- package/serviceendpointNexus.d.ts +0 -22
- package/serviceendpointNexus.js +0 -22
- package/serviceendpointNexus.js.map +1 -1
- package/serviceendpointNuget.d.ts +0 -19
- package/serviceendpointNuget.js +0 -19
- package/serviceendpointNuget.js.map +1 -1
- package/serviceendpointOctopusdeploy.d.ts +0 -20
- package/serviceendpointOctopusdeploy.js +0 -20
- package/serviceendpointOctopusdeploy.js.map +1 -1
- package/serviceendpointPermissions.d.ts +0 -48
- package/serviceendpointPermissions.js +0 -48
- package/serviceendpointPermissions.js.map +1 -1
- package/servicehookPermissions.d.ts +0 -27
- package/servicehookPermissions.js +0 -27
- package/servicehookPermissions.js.map +1 -1
- package/taggingPermissions.d.ts +0 -27
- package/taggingPermissions.js +0 -27
- package/taggingPermissions.js.map +1 -1
- package/team.d.ts +0 -26
- package/team.js +0 -26
- package/team.js.map +1 -1
- package/teamAdministrators.d.ts +0 -24
- package/teamAdministrators.js +0 -24
- package/teamAdministrators.js.map +1 -1
- package/teamMembers.d.ts +0 -24
- package/teamMembers.js +0 -24
- package/teamMembers.js.map +1 -1
- package/types/output.d.ts +0 -14
- package/user.d.ts +0 -8
- package/user.js +0 -8
- package/user.js.map +1 -1
- package/variableGroup.d.ts +0 -71
- package/variableGroup.js +0 -71
- package/variableGroup.js.map +1 -1
- package/workItemQueryPermissions.d.ts +0 -105
- package/workItemQueryPermissions.js +0 -105
- package/workItemQueryPermissions.js.map +1 -1
- package/workitem.d.ts +0 -43
- package/workitem.js +0 -43
- package/workitem.js.map +1 -1
- package/scripts/install-pulumi-plugin.js +0 -21
|
@@ -10,49 +10,6 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* > **Note** Permissions can be assigned to group principals and not to single user principals.
|
|
12
12
|
*
|
|
13
|
-
* ## Example Usage
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
18
|
-
*
|
|
19
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
20
|
-
* workItemTemplate: "Agile",
|
|
21
|
-
* versionControl: "Git",
|
|
22
|
-
* visibility: "private",
|
|
23
|
-
* description: "Managed by Terraform",
|
|
24
|
-
* });
|
|
25
|
-
* const example-readers = azuredevops.getGroupOutput({
|
|
26
|
-
* projectId: exampleProject.id,
|
|
27
|
-
* name: "Readers",
|
|
28
|
-
* });
|
|
29
|
-
* const exampleBuildFolder = new azuredevops.BuildFolder("exampleBuildFolder", {
|
|
30
|
-
* projectId: exampleProject.id,
|
|
31
|
-
* path: "\\ExampleFolder",
|
|
32
|
-
* description: "ExampleFolder description",
|
|
33
|
-
* });
|
|
34
|
-
* const exampleBuildFolderPermissions = new azuredevops.BuildFolderPermissions("exampleBuildFolderPermissions", {
|
|
35
|
-
* projectId: exampleProject.id,
|
|
36
|
-
* path: "\\ExampleFolder",
|
|
37
|
-
* principal: example_readers.apply(example_readers => example_readers.id),
|
|
38
|
-
* permissions: {
|
|
39
|
-
* ViewBuilds: "Allow",
|
|
40
|
-
* EditBuildQuality: "Allow",
|
|
41
|
-
* RetainIndefinitely: "Allow",
|
|
42
|
-
* DeleteBuilds: "Deny",
|
|
43
|
-
* ManageBuildQualities: "Deny",
|
|
44
|
-
* DestroyBuilds: "Deny",
|
|
45
|
-
* UpdateBuildInformation: "Deny",
|
|
46
|
-
* QueueBuilds: "Allow",
|
|
47
|
-
* ManageBuildQueue: "Deny",
|
|
48
|
-
* StopBuilds: "Allow",
|
|
49
|
-
* ViewBuildDefinition: "Allow",
|
|
50
|
-
* EditBuildDefinition: "Deny",
|
|
51
|
-
* DeleteBuildDefinition: "Deny",
|
|
52
|
-
* AdministerBuildPermissions: "NotSet",
|
|
53
|
-
* },
|
|
54
|
-
* });
|
|
55
|
-
* ```
|
|
56
13
|
* ## Relevant Links
|
|
57
14
|
*
|
|
58
15
|
* * [Azure DevOps Service REST API 7.0 - Security](https://docs.microsoft.com/en-us/rest/api/azure/devops/security/?view=azure-devops-rest-7.0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildFolderPermissions.js","sourceRoot":"","sources":["../buildFolderPermissions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"buildFolderPermissions.js","sourceRoot":"","sources":["../buildFolderPermissions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,sBAAsB,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|
|
8
|
-
* ```typescript
|
|
9
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
11
|
-
*
|
|
12
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
13
|
-
* const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
|
|
14
|
-
* const exampleGroup = new azuredevops.Group("exampleGroup", {displayName: "some-azdo-group"});
|
|
15
|
-
* const exampleCheckApproval = new azuredevops.CheckApproval("exampleCheckApproval", {
|
|
16
|
-
* projectId: exampleProject.id,
|
|
17
|
-
* targetResourceId: exampleEnvironment.id,
|
|
18
|
-
* targetResourceType: "environment",
|
|
19
|
-
* requesterCanApprove: true,
|
|
20
|
-
* approvers: [exampleGroup.originId],
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
6
|
*
|
|
24
7
|
* ## Import
|
|
25
8
|
*
|
package/checkApproval.js
CHANGED
|
@@ -9,23 +9,6 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* Manages a Approval Check.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
-
* ### Protect an environment
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
17
|
-
*
|
|
18
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
19
|
-
* const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
|
|
20
|
-
* const exampleGroup = new azuredevops.Group("exampleGroup", {displayName: "some-azdo-group"});
|
|
21
|
-
* const exampleCheckApproval = new azuredevops.CheckApproval("exampleCheckApproval", {
|
|
22
|
-
* projectId: exampleProject.id,
|
|
23
|
-
* targetResourceId: exampleEnvironment.id,
|
|
24
|
-
* targetResourceType: "environment",
|
|
25
|
-
* requesterCanApprove: true,
|
|
26
|
-
* approvers: [exampleGroup.originId],
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
12
|
*
|
|
30
13
|
* ## Import
|
|
31
14
|
*
|
package/checkApproval.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkApproval.js","sourceRoot":"","sources":["../checkApproval.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"checkApproval.js","sourceRoot":"","sources":["../checkApproval.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IA2CD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,cAA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E,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA3GL,sCA4GC;AA9FG,gBAAgB;AACO,0BAAY,GAAG,+CAA+C,CAAC"}
|
package/checkBranchControl.d.ts
CHANGED
|
@@ -3,118 +3,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* Manages a branch control check on a resource within Azure DevOps.
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
|
-
* ### Protect a service connection
|
|
7
|
-
*
|
|
8
|
-
* ```typescript
|
|
9
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
11
|
-
*
|
|
12
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
13
|
-
* const exampleServiceEndpointGeneric = new azuredevops.ServiceEndpointGeneric("exampleServiceEndpointGeneric", {
|
|
14
|
-
* projectId: exampleProject.id,
|
|
15
|
-
* serverUrl: "https://some-server.example.com",
|
|
16
|
-
* username: "username",
|
|
17
|
-
* password: "password",
|
|
18
|
-
* serviceEndpointName: "Example Generic",
|
|
19
|
-
* description: "Managed by Terraform",
|
|
20
|
-
* });
|
|
21
|
-
* const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
|
|
22
|
-
* projectId: exampleProject.id,
|
|
23
|
-
* displayName: "Managed by Terraform",
|
|
24
|
-
* targetResourceId: exampleServiceEndpointGeneric.id,
|
|
25
|
-
* targetResourceType: "endpoint",
|
|
26
|
-
* allowedBranches: "refs/heads/main, refs/heads/features/*",
|
|
27
|
-
* timeout: 1440,
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
* ### Protect an environment
|
|
31
|
-
*
|
|
32
|
-
* ```typescript
|
|
33
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
35
|
-
*
|
|
36
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
37
|
-
* const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
|
|
38
|
-
* const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
|
|
39
|
-
* projectId: exampleProject.id,
|
|
40
|
-
* displayName: "Managed by Terraform",
|
|
41
|
-
* targetResourceId: exampleEnvironment.id,
|
|
42
|
-
* targetResourceType: "environment",
|
|
43
|
-
* allowedBranches: "refs/heads/main, refs/heads/features/*",
|
|
44
|
-
* });
|
|
45
|
-
* ```
|
|
46
|
-
* ### Protect an agent queue
|
|
47
|
-
*
|
|
48
|
-
* ```typescript
|
|
49
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
50
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
51
|
-
*
|
|
52
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
53
|
-
* const examplePool = new azuredevops.Pool("examplePool", {});
|
|
54
|
-
* const exampleQueue = new azuredevops.Queue("exampleQueue", {
|
|
55
|
-
* projectId: exampleProject.id,
|
|
56
|
-
* agentPoolId: examplePool.id,
|
|
57
|
-
* });
|
|
58
|
-
* const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
|
|
59
|
-
* projectId: exampleProject.id,
|
|
60
|
-
* displayName: "Managed by Terraform",
|
|
61
|
-
* targetResourceId: exampleQueue.id,
|
|
62
|
-
* targetResourceType: "queue",
|
|
63
|
-
* allowedBranches: "refs/heads/main, refs/heads/features/*",
|
|
64
|
-
* });
|
|
65
|
-
* ```
|
|
66
|
-
* ### Protect a repository
|
|
67
|
-
*
|
|
68
|
-
* ```typescript
|
|
69
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
71
|
-
*
|
|
72
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
73
|
-
* const exampleGit = new azuredevops.Git("exampleGit", {
|
|
74
|
-
* projectId: exampleProject.id,
|
|
75
|
-
* initialization: {
|
|
76
|
-
* initType: "Clean",
|
|
77
|
-
* },
|
|
78
|
-
* });
|
|
79
|
-
* const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
|
|
80
|
-
* projectId: exampleProject.id,
|
|
81
|
-
* displayName: "Managed by Terraform",
|
|
82
|
-
* targetResourceId: pulumi.interpolate`${exampleProject.id}.${exampleGit.id}`,
|
|
83
|
-
* targetResourceType: "repository",
|
|
84
|
-
* allowedBranches: "refs/heads/main, refs/heads/features/*",
|
|
85
|
-
* });
|
|
86
|
-
* ```
|
|
87
|
-
* ### Protect a variable group
|
|
88
|
-
*
|
|
89
|
-
* ```typescript
|
|
90
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
91
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
92
|
-
*
|
|
93
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
94
|
-
* const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
|
|
95
|
-
* projectId: exampleProject.id,
|
|
96
|
-
* description: "Example Variable Group Description",
|
|
97
|
-
* allowAccess: true,
|
|
98
|
-
* variables: [
|
|
99
|
-
* {
|
|
100
|
-
* name: "key1",
|
|
101
|
-
* value: "val1",
|
|
102
|
-
* },
|
|
103
|
-
* {
|
|
104
|
-
* name: "key2",
|
|
105
|
-
* secretValue: "val2",
|
|
106
|
-
* isSecret: true,
|
|
107
|
-
* },
|
|
108
|
-
* ],
|
|
109
|
-
* });
|
|
110
|
-
* const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
|
|
111
|
-
* projectId: exampleProject.id,
|
|
112
|
-
* displayName: "Managed by Terraform",
|
|
113
|
-
* targetResourceId: exampleVariableGroup.id,
|
|
114
|
-
* targetResourceType: "variablegroup",
|
|
115
|
-
* allowedBranches: "refs/heads/main, refs/heads/features/*",
|
|
116
|
-
* });
|
|
117
|
-
* ```
|
|
118
6
|
* ## Relevant Links
|
|
119
7
|
*
|
|
120
8
|
* - [Define approvals and checks](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass)
|
package/checkBranchControl.js
CHANGED
|
@@ -9,118 +9,6 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* Manages a branch control check on a resource within Azure DevOps.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
-
* ### Protect a service connection
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
17
|
-
*
|
|
18
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
19
|
-
* const exampleServiceEndpointGeneric = new azuredevops.ServiceEndpointGeneric("exampleServiceEndpointGeneric", {
|
|
20
|
-
* projectId: exampleProject.id,
|
|
21
|
-
* serverUrl: "https://some-server.example.com",
|
|
22
|
-
* username: "username",
|
|
23
|
-
* password: "password",
|
|
24
|
-
* serviceEndpointName: "Example Generic",
|
|
25
|
-
* description: "Managed by Terraform",
|
|
26
|
-
* });
|
|
27
|
-
* const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
|
|
28
|
-
* projectId: exampleProject.id,
|
|
29
|
-
* displayName: "Managed by Terraform",
|
|
30
|
-
* targetResourceId: exampleServiceEndpointGeneric.id,
|
|
31
|
-
* targetResourceType: "endpoint",
|
|
32
|
-
* allowedBranches: "refs/heads/main, refs/heads/features/*",
|
|
33
|
-
* timeout: 1440,
|
|
34
|
-
* });
|
|
35
|
-
* ```
|
|
36
|
-
* ### Protect an environment
|
|
37
|
-
*
|
|
38
|
-
* ```typescript
|
|
39
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
41
|
-
*
|
|
42
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
43
|
-
* const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
|
|
44
|
-
* const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
|
|
45
|
-
* projectId: exampleProject.id,
|
|
46
|
-
* displayName: "Managed by Terraform",
|
|
47
|
-
* targetResourceId: exampleEnvironment.id,
|
|
48
|
-
* targetResourceType: "environment",
|
|
49
|
-
* allowedBranches: "refs/heads/main, refs/heads/features/*",
|
|
50
|
-
* });
|
|
51
|
-
* ```
|
|
52
|
-
* ### Protect an agent queue
|
|
53
|
-
*
|
|
54
|
-
* ```typescript
|
|
55
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
56
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
57
|
-
*
|
|
58
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
59
|
-
* const examplePool = new azuredevops.Pool("examplePool", {});
|
|
60
|
-
* const exampleQueue = new azuredevops.Queue("exampleQueue", {
|
|
61
|
-
* projectId: exampleProject.id,
|
|
62
|
-
* agentPoolId: examplePool.id,
|
|
63
|
-
* });
|
|
64
|
-
* const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
|
|
65
|
-
* projectId: exampleProject.id,
|
|
66
|
-
* displayName: "Managed by Terraform",
|
|
67
|
-
* targetResourceId: exampleQueue.id,
|
|
68
|
-
* targetResourceType: "queue",
|
|
69
|
-
* allowedBranches: "refs/heads/main, refs/heads/features/*",
|
|
70
|
-
* });
|
|
71
|
-
* ```
|
|
72
|
-
* ### Protect a repository
|
|
73
|
-
*
|
|
74
|
-
* ```typescript
|
|
75
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
76
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
77
|
-
*
|
|
78
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
79
|
-
* const exampleGit = new azuredevops.Git("exampleGit", {
|
|
80
|
-
* projectId: exampleProject.id,
|
|
81
|
-
* initialization: {
|
|
82
|
-
* initType: "Clean",
|
|
83
|
-
* },
|
|
84
|
-
* });
|
|
85
|
-
* const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
|
|
86
|
-
* projectId: exampleProject.id,
|
|
87
|
-
* displayName: "Managed by Terraform",
|
|
88
|
-
* targetResourceId: pulumi.interpolate`${exampleProject.id}.${exampleGit.id}`,
|
|
89
|
-
* targetResourceType: "repository",
|
|
90
|
-
* allowedBranches: "refs/heads/main, refs/heads/features/*",
|
|
91
|
-
* });
|
|
92
|
-
* ```
|
|
93
|
-
* ### Protect a variable group
|
|
94
|
-
*
|
|
95
|
-
* ```typescript
|
|
96
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
97
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
98
|
-
*
|
|
99
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
100
|
-
* const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
|
|
101
|
-
* projectId: exampleProject.id,
|
|
102
|
-
* description: "Example Variable Group Description",
|
|
103
|
-
* allowAccess: true,
|
|
104
|
-
* variables: [
|
|
105
|
-
* {
|
|
106
|
-
* name: "key1",
|
|
107
|
-
* value: "val1",
|
|
108
|
-
* },
|
|
109
|
-
* {
|
|
110
|
-
* name: "key2",
|
|
111
|
-
* secretValue: "val2",
|
|
112
|
-
* isSecret: true,
|
|
113
|
-
* },
|
|
114
|
-
* ],
|
|
115
|
-
* });
|
|
116
|
-
* const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
|
|
117
|
-
* projectId: exampleProject.id,
|
|
118
|
-
* displayName: "Managed by Terraform",
|
|
119
|
-
* targetResourceId: exampleVariableGroup.id,
|
|
120
|
-
* targetResourceType: "variablegroup",
|
|
121
|
-
* allowedBranches: "refs/heads/main, refs/heads/features/*",
|
|
122
|
-
* });
|
|
123
|
-
* ```
|
|
124
12
|
* ## Relevant Links
|
|
125
13
|
*
|
|
126
14
|
* - [Define approvals and checks](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkBranchControl.js","sourceRoot":"","sources":["../checkBranchControl.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"checkBranchControl.js","sourceRoot":"","sources":["../checkBranchControl.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IA2CD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E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AG,yDAAyD,CAAC"}
|
package/checkBusinessHours.d.ts
CHANGED
|
@@ -3,138 +3,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* Manages a business hours check on a resource within Azure DevOps.
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
|
-
* ### Protect a service connection
|
|
7
|
-
*
|
|
8
|
-
* ```typescript
|
|
9
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
11
|
-
*
|
|
12
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
13
|
-
* const exampleServiceEndpointGeneric = new azuredevops.ServiceEndpointGeneric("exampleServiceEndpointGeneric", {
|
|
14
|
-
* projectId: exampleProject.id,
|
|
15
|
-
* serverUrl: "https://some-server.example.com",
|
|
16
|
-
* username: "username",
|
|
17
|
-
* password: "password",
|
|
18
|
-
* serviceEndpointName: "Example Generic",
|
|
19
|
-
* description: "Managed by Terraform",
|
|
20
|
-
* });
|
|
21
|
-
* const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
|
|
22
|
-
* projectId: exampleProject.id,
|
|
23
|
-
* displayName: "Managed by Terraform",
|
|
24
|
-
* targetResourceId: exampleServiceEndpointGeneric.id,
|
|
25
|
-
* targetResourceType: "endpoint",
|
|
26
|
-
* startTime: "07:00",
|
|
27
|
-
* endTime: "15:30",
|
|
28
|
-
* timeZone: "UTC",
|
|
29
|
-
* monday: true,
|
|
30
|
-
* tuesday: true,
|
|
31
|
-
* timeout: 1440,
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
* ### Protect an environment
|
|
35
|
-
*
|
|
36
|
-
* ```typescript
|
|
37
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
39
|
-
*
|
|
40
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
41
|
-
* const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
|
|
42
|
-
* const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
|
|
43
|
-
* projectId: exampleProject.id,
|
|
44
|
-
* displayName: "Managed by Terraform",
|
|
45
|
-
* targetResourceId: exampleEnvironment.id,
|
|
46
|
-
* targetResourceType: "environment",
|
|
47
|
-
* startTime: "07:00",
|
|
48
|
-
* endTime: "15:30",
|
|
49
|
-
* timeZone: "UTC",
|
|
50
|
-
* monday: true,
|
|
51
|
-
* tuesday: true,
|
|
52
|
-
* });
|
|
53
|
-
* ```
|
|
54
|
-
* ### Protect an agent queue
|
|
55
|
-
*
|
|
56
|
-
* ```typescript
|
|
57
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
59
|
-
*
|
|
60
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
61
|
-
* const examplePool = new azuredevops.Pool("examplePool", {});
|
|
62
|
-
* const exampleQueue = new azuredevops.Queue("exampleQueue", {
|
|
63
|
-
* projectId: exampleProject.id,
|
|
64
|
-
* agentPoolId: examplePool.id,
|
|
65
|
-
* });
|
|
66
|
-
* const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
|
|
67
|
-
* projectId: exampleProject.id,
|
|
68
|
-
* displayName: "Managed by Terraform",
|
|
69
|
-
* targetResourceId: exampleQueue.id,
|
|
70
|
-
* targetResourceType: "queue",
|
|
71
|
-
* startTime: "07:00",
|
|
72
|
-
* endTime: "15:30",
|
|
73
|
-
* timeZone: "UTC",
|
|
74
|
-
* monday: true,
|
|
75
|
-
* tuesday: true,
|
|
76
|
-
* });
|
|
77
|
-
* ```
|
|
78
|
-
* ### Protect a repository
|
|
79
|
-
*
|
|
80
|
-
* ```typescript
|
|
81
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
82
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
83
|
-
*
|
|
84
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
85
|
-
* const exampleGit = new azuredevops.Git("exampleGit", {
|
|
86
|
-
* projectId: exampleProject.id,
|
|
87
|
-
* initialization: {
|
|
88
|
-
* initType: "Clean",
|
|
89
|
-
* },
|
|
90
|
-
* });
|
|
91
|
-
* const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
|
|
92
|
-
* projectId: exampleProject.id,
|
|
93
|
-
* displayName: "Managed by Terraform",
|
|
94
|
-
* targetResourceId: pulumi.interpolate`${exampleProject.id}.${exampleGit.id}`,
|
|
95
|
-
* targetResourceType: "repository",
|
|
96
|
-
* startTime: "07:00",
|
|
97
|
-
* endTime: "15:30",
|
|
98
|
-
* timeZone: "UTC",
|
|
99
|
-
* monday: true,
|
|
100
|
-
* tuesday: true,
|
|
101
|
-
* });
|
|
102
|
-
* ```
|
|
103
|
-
* ### Protect a variable group
|
|
104
|
-
*
|
|
105
|
-
* ```typescript
|
|
106
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
107
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
108
|
-
*
|
|
109
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
110
|
-
* const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
|
|
111
|
-
* projectId: exampleProject.id,
|
|
112
|
-
* description: "Example Variable Group Description",
|
|
113
|
-
* allowAccess: true,
|
|
114
|
-
* variables: [
|
|
115
|
-
* {
|
|
116
|
-
* name: "key1",
|
|
117
|
-
* value: "val1",
|
|
118
|
-
* },
|
|
119
|
-
* {
|
|
120
|
-
* name: "key2",
|
|
121
|
-
* secretValue: "val2",
|
|
122
|
-
* isSecret: true,
|
|
123
|
-
* },
|
|
124
|
-
* ],
|
|
125
|
-
* });
|
|
126
|
-
* const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
|
|
127
|
-
* projectId: exampleProject.id,
|
|
128
|
-
* displayName: "Managed by Terraform",
|
|
129
|
-
* targetResourceId: exampleVariableGroup.id,
|
|
130
|
-
* targetResourceType: "variablegroup",
|
|
131
|
-
* startTime: "07:00",
|
|
132
|
-
* endTime: "15:30",
|
|
133
|
-
* timeZone: "UTC",
|
|
134
|
-
* monday: true,
|
|
135
|
-
* tuesday: true,
|
|
136
|
-
* });
|
|
137
|
-
* ```
|
|
138
6
|
* ## Relevant Links
|
|
139
7
|
*
|
|
140
8
|
* - [Define approvals and checks](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass)
|
package/checkBusinessHours.js
CHANGED
|
@@ -9,138 +9,6 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* Manages a business hours check on a resource within Azure DevOps.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
-
* ### Protect a service connection
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
17
|
-
*
|
|
18
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
19
|
-
* const exampleServiceEndpointGeneric = new azuredevops.ServiceEndpointGeneric("exampleServiceEndpointGeneric", {
|
|
20
|
-
* projectId: exampleProject.id,
|
|
21
|
-
* serverUrl: "https://some-server.example.com",
|
|
22
|
-
* username: "username",
|
|
23
|
-
* password: "password",
|
|
24
|
-
* serviceEndpointName: "Example Generic",
|
|
25
|
-
* description: "Managed by Terraform",
|
|
26
|
-
* });
|
|
27
|
-
* const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
|
|
28
|
-
* projectId: exampleProject.id,
|
|
29
|
-
* displayName: "Managed by Terraform",
|
|
30
|
-
* targetResourceId: exampleServiceEndpointGeneric.id,
|
|
31
|
-
* targetResourceType: "endpoint",
|
|
32
|
-
* startTime: "07:00",
|
|
33
|
-
* endTime: "15:30",
|
|
34
|
-
* timeZone: "UTC",
|
|
35
|
-
* monday: true,
|
|
36
|
-
* tuesday: true,
|
|
37
|
-
* timeout: 1440,
|
|
38
|
-
* });
|
|
39
|
-
* ```
|
|
40
|
-
* ### Protect an environment
|
|
41
|
-
*
|
|
42
|
-
* ```typescript
|
|
43
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
45
|
-
*
|
|
46
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
47
|
-
* const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
|
|
48
|
-
* const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
|
|
49
|
-
* projectId: exampleProject.id,
|
|
50
|
-
* displayName: "Managed by Terraform",
|
|
51
|
-
* targetResourceId: exampleEnvironment.id,
|
|
52
|
-
* targetResourceType: "environment",
|
|
53
|
-
* startTime: "07:00",
|
|
54
|
-
* endTime: "15:30",
|
|
55
|
-
* timeZone: "UTC",
|
|
56
|
-
* monday: true,
|
|
57
|
-
* tuesday: true,
|
|
58
|
-
* });
|
|
59
|
-
* ```
|
|
60
|
-
* ### Protect an agent queue
|
|
61
|
-
*
|
|
62
|
-
* ```typescript
|
|
63
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
64
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
65
|
-
*
|
|
66
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
67
|
-
* const examplePool = new azuredevops.Pool("examplePool", {});
|
|
68
|
-
* const exampleQueue = new azuredevops.Queue("exampleQueue", {
|
|
69
|
-
* projectId: exampleProject.id,
|
|
70
|
-
* agentPoolId: examplePool.id,
|
|
71
|
-
* });
|
|
72
|
-
* const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
|
|
73
|
-
* projectId: exampleProject.id,
|
|
74
|
-
* displayName: "Managed by Terraform",
|
|
75
|
-
* targetResourceId: exampleQueue.id,
|
|
76
|
-
* targetResourceType: "queue",
|
|
77
|
-
* startTime: "07:00",
|
|
78
|
-
* endTime: "15:30",
|
|
79
|
-
* timeZone: "UTC",
|
|
80
|
-
* monday: true,
|
|
81
|
-
* tuesday: true,
|
|
82
|
-
* });
|
|
83
|
-
* ```
|
|
84
|
-
* ### Protect a repository
|
|
85
|
-
*
|
|
86
|
-
* ```typescript
|
|
87
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
88
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
89
|
-
*
|
|
90
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
91
|
-
* const exampleGit = new azuredevops.Git("exampleGit", {
|
|
92
|
-
* projectId: exampleProject.id,
|
|
93
|
-
* initialization: {
|
|
94
|
-
* initType: "Clean",
|
|
95
|
-
* },
|
|
96
|
-
* });
|
|
97
|
-
* const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
|
|
98
|
-
* projectId: exampleProject.id,
|
|
99
|
-
* displayName: "Managed by Terraform",
|
|
100
|
-
* targetResourceId: pulumi.interpolate`${exampleProject.id}.${exampleGit.id}`,
|
|
101
|
-
* targetResourceType: "repository",
|
|
102
|
-
* startTime: "07:00",
|
|
103
|
-
* endTime: "15:30",
|
|
104
|
-
* timeZone: "UTC",
|
|
105
|
-
* monday: true,
|
|
106
|
-
* tuesday: true,
|
|
107
|
-
* });
|
|
108
|
-
* ```
|
|
109
|
-
* ### Protect a variable group
|
|
110
|
-
*
|
|
111
|
-
* ```typescript
|
|
112
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
113
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
114
|
-
*
|
|
115
|
-
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
116
|
-
* const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
|
|
117
|
-
* projectId: exampleProject.id,
|
|
118
|
-
* description: "Example Variable Group Description",
|
|
119
|
-
* allowAccess: true,
|
|
120
|
-
* variables: [
|
|
121
|
-
* {
|
|
122
|
-
* name: "key1",
|
|
123
|
-
* value: "val1",
|
|
124
|
-
* },
|
|
125
|
-
* {
|
|
126
|
-
* name: "key2",
|
|
127
|
-
* secretValue: "val2",
|
|
128
|
-
* isSecret: true,
|
|
129
|
-
* },
|
|
130
|
-
* ],
|
|
131
|
-
* });
|
|
132
|
-
* const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
|
|
133
|
-
* projectId: exampleProject.id,
|
|
134
|
-
* displayName: "Managed by Terraform",
|
|
135
|
-
* targetResourceId: exampleVariableGroup.id,
|
|
136
|
-
* targetResourceType: "variablegroup",
|
|
137
|
-
* startTime: "07:00",
|
|
138
|
-
* endTime: "15:30",
|
|
139
|
-
* timeZone: "UTC",
|
|
140
|
-
* monday: true,
|
|
141
|
-
* tuesday: true,
|
|
142
|
-
* });
|
|
143
|
-
* ```
|
|
144
12
|
* ## Relevant Links
|
|
145
13
|
*
|
|
146
14
|
* - [Define approvals and checks](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass)
|