Skip to content

Commit e73cd24

Browse files
feat: added overwrite mask switch to all depending on cmdlets (#536)
* feat: added overwritemask switch to all depending cmdlets * test: added unit test * fix: syntax error * fix: syntax error * fix: added missing heading * docs: removed duplicate content * docs: fixed syntax and copy past error
1 parent dc055b6 commit e73cd24

14 files changed

Lines changed: 99 additions & 13 deletions

.docs/Add-VSTeamBuildPermission.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ Type: VSTeamProjectPermissions
101101
Required: True
102102
```
103103
104+
### OverwriteMask
105+
106+
Switch to overwrite the mask values rather than merge them.
107+
108+
```yaml
109+
Type: Switch
110+
Required: False
111+
```
112+
104113
<!-- #include "./params/projectName.md" -->
105114
106115
## INPUTS

.docs/Add-VSTeamGitRepositoryPermission.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ Type: VSTeamGitRepositoryPermissions
7272
Required: True
7373
```
7474
75+
### OverwriteMask
76+
77+
Switch to overwrite the mask values rather than merge them.
78+
79+
```yaml
80+
Type: Switch
81+
Required: False
82+
```
83+
7584
<!-- #include "./params/projectName.md" -->
7685
7786
## INPUTS

.docs/Add-VSTeamProjectPermission.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ Type: VSTeamProjectPermissions
5151
Required: True
5252
```
5353
54+
### OverwriteMask
55+
56+
Switch to overwrite the mask values rather than merge them.
57+
58+
```yaml
59+
Type: Switch
60+
Required: False
61+
```
62+
5463
<!-- #include "./params/projectName.md" -->
5564
5665
## INPUTS

.docs/Add-VSTeamWorkItemAreaPermission.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ Type: VSTeamWorkItemAreaPermissions
6565
Required: True
6666
```
6767
68+
### OverwriteMask
69+
70+
Switch to overwrite the mask values rather than merge them.
71+
72+
```yaml
73+
Type: Switch
74+
Required: False
75+
```
76+
6877
<!-- #include "./params/projectName.md" -->
6978
7079
## INPUTS

.docs/Add-VSTeamWorkItemIterationPermission.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ Type: VSTeamWorkItemIterationPermissions
6565
Required: True
6666
```
6767
68+
### OverwriteMask
69+
70+
Switch to overwrite the mask values rather than merge them.
71+
72+
```yaml
73+
Type: Switch
74+
Required: False
75+
```
76+
6877
<!-- #include "./params/projectName.md" -->
6978
7079
## INPUTS

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 7.13.2
4+
Merged [Pull Request](https://github.com/MethodsAndPractices/vsteam/pull/536) from [Sebastian Schütze](https://github.com/SebastianSchuetze) the following:
5+
- Fix missing switch OverwriteMask to all cmdlets who are dependant to Add-VSTeamAccessControlList
6+
7+
38
## 7.13.1
49
Merged [Pull Request](https://github.com/MethodsAndPractices/vsteam/pull/532) from [Miguel Nieto](https://github.com/mnieto) the following:
510
- Fix Set-VSTeamAccount Error on Module Import [531](https://github.com/MethodsAndPractices/vsteam/issues/531)

Source/Public/Add-VSTeamAccessControlEntry.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ function Add-VSTeamAccessControlEntry {
3535
[Parameter(Mandatory = $true)]
3636
[ValidateRange(0, [int]::MaxValue)]
3737
[int] $DenyMask,
38-
38+
3939
[Parameter(Mandatory = $false)]
40-
[switch] $OverwriteMask = $false
40+
[switch] $OverwriteMask
4141
)
4242
process {
4343

Source/Public/Add-VSTeamBuildPermission.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ function Add-VSTeamBuildPermission {
3535
[vsteam_lib.BuildPermissions]$Allow,
3636

3737
[parameter(Mandatory = $false)]
38-
[vsteam_lib.BuildPermissions]$Deny
38+
[vsteam_lib.BuildPermissions]$Deny,
39+
40+
[Parameter(Mandatory = $false)]
41+
[switch] $OverwriteMask
3942
)
4043

4144
process {
@@ -66,6 +69,7 @@ function Add-VSTeamBuildPermission {
6669
-Descriptor $Descriptor `
6770
-Token $token `
6871
-AllowMask ([int]$Allow) `
69-
-DenyMask ([int]$Deny)
72+
-DenyMask ([int]$Deny) `
73+
-OverwriteMask:$OverwriteMask.IsPresent
7074
}
7175
}

Source/Public/Add-VSTeamGitRepositoryPermission.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ function Add-VSTeamGitRepositoryPermission {
5656
[vsteam_lib.GitRepositoryPermissions]$Allow,
5757

5858
[parameter(Mandatory = $false)]
59-
[vsteam_lib.GitRepositoryPermissions]$Deny
59+
[vsteam_lib.GitRepositoryPermissions]$Deny,
60+
61+
[Parameter(Mandatory = $false)]
62+
[switch] $OverwriteMask
6063
)
6164

6265
process {
@@ -102,6 +105,7 @@ function Add-VSTeamGitRepositoryPermission {
102105
-Descriptor $Descriptor `
103106
-Token $token `
104107
-AllowMask ([int]$Allow) `
105-
-DenyMask ([int]$Deny)
108+
-DenyMask ([int]$Deny) `
109+
-OverwriteMask:$OverwriteMask.IsPresent
106110
}
107111
}

Source/Public/Add-VSTeamProjectPermission.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ function Add-VSTeamProjectPermission {
3232
[vsteam_lib.ProjectPermissions]$Allow,
3333

3434
[parameter(Mandatory = $false)]
35-
[vsteam_lib.ProjectPermissions]$Deny
35+
[vsteam_lib.ProjectPermissions]$Deny,
36+
37+
[Parameter(Mandatory = $false)]
38+
[switch] $OverwriteMask
3639
)
3740

3841
process {
@@ -57,6 +60,7 @@ function Add-VSTeamProjectPermission {
5760
-Descriptor $Descriptor `
5861
-Token $token `
5962
-AllowMask ([int]$Allow) `
60-
-DenyMask ([int]$Deny)
63+
-DenyMask ([int]$Deny) `
64+
-OverwriteMask:$OverwriteMask.IsPresent
6165
}
6266
}

0 commit comments

Comments
 (0)