Skip to content

Commit e761c69

Browse files
authored
fix parameter type for update-azcontainerregistryrepository (#17984)
1 parent a8ac552 commit e761c69

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

src/ContainerRegistry/ContainerRegistry/ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Updated parameter types from bool to bool? for `Update-AzContainerRegistryRepository` [#17857]
22+
- `ReadEnabled`
23+
- `ListEnabled`
24+
- `WriteEnabled`
25+
- `DeleteEnabled`
2126

2227
## Version 2.2.3
2328
* Fixed username and password issue in `Import-AzContainerRegistryImage` [#14971]

src/ContainerRegistry/ContainerRegistry/Commands/UpdateAzureContainerRegistryRepository.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ public class UpdateAzureContainerRegistryRepository : ContainerRegistryDataPlane
2828

2929
[Parameter(Mandatory = false, HelpMessage = "Delete enable.")]
3030
[ValidateNotNullOrEmpty]
31-
public bool DeleteEnabled { get; set; }
31+
public bool? DeleteEnabled { get; set; }
3232

3333
[Parameter(Mandatory = false, HelpMessage = "Write enable.")]
3434
[ValidateNotNullOrEmpty]
35-
public bool WriteEnabled { get; set; }
35+
public bool? WriteEnabled { get; set; }
3636

3737
[Parameter(Mandatory = false, HelpMessage = "List enable.")]
3838
[ValidateNotNullOrEmpty]
39-
public bool ListEnabled { get; set; }
39+
public bool? ListEnabled { get; set; }
4040

4141
[Parameter(Mandatory = false, HelpMessage = "Read enable.")]
4242
[ValidateNotNullOrEmpty]
43-
public bool ReadEnabled { get; set; }
43+
public bool? ReadEnabled { get; set; }
4444

4545
public override void ExecuteChildCmdlet()
4646
{

src/ContainerRegistry/ContainerRegistry/help/Update-AzContainerRegistryRepository.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Accept wildcard characters: False
6161
Delete enable.
6262
6363
```yaml
64-
Type: System.Boolean
64+
Type: System.Nullable`1[System.Boolean]
6565
Parameter Sets: (All)
6666
Aliases:
6767

@@ -76,7 +76,7 @@ Accept wildcard characters: False
7676
List enable.
7777
7878
```yaml
79-
Type: System.Boolean
79+
Type: System.Nullable`1[System.Boolean]
8080
Parameter Sets: (All)
8181
Aliases:
8282

@@ -106,7 +106,7 @@ Accept wildcard characters: False
106106
Read enable.
107107
108108
```yaml
109-
Type: System.Boolean
109+
Type: System.Nullable`1[System.Boolean]
110110
Parameter Sets: (All)
111111
Aliases:
112112

@@ -136,7 +136,7 @@ Accept wildcard characters: False
136136
Write enable.
137137
138138
```yaml
139-
Type: System.Boolean
139+
Type: System.Nullable`1[System.Boolean]
140140
Parameter Sets: (All)
141141
Aliases:
142142

0 commit comments

Comments
 (0)