Skip to content

Commit ffb67e3

Browse files
authored
Merge pull request #5976 from cormacpayne/breaking-changes
Minor breaking changes for Build release
2 parents 7624a06 + d71e7aa commit ffb67e3

File tree

190 files changed

+844
-1539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+844
-1539
lines changed

src/ResourceManager/ApiManagement/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
-->
2020
## Current Release
2121
* Set minimum dependency of module to PowerShell 5.0
22+
* Introduce multiple breaking changes
23+
- Please refer to the migration guide for more information
2224

2325
## Version 5.1.2
2426
* Updated to the latest version of the Azure ClientRuntime

src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagmentProperty.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
//
1+
//
22
// Copyright (c) Microsoft. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -64,23 +64,19 @@ public class NewAzureApiManagementProperty : AzureApiManagementCmdletBase
6464
ValueFromPipelineByPropertyName = true,
6565
Mandatory = false,
6666
HelpMessage = "Tags to be associated with Property. This parameter is optional.")]
67-
[Obsolete("New-AzureRmApiManagementProperty: -Tags will be removed in favor of -Tag in an upcoming breaking change release. Please start using the -Tag parameter to avoid breaking scripts.")]
68-
[Alias("Tags")]
6967
public string[] Tag { get; set; }
7068

7169
public override void ExecuteApiManagementCmdlet()
7270
{
7371
string propertyId = PropertyId ?? Guid.NewGuid().ToString("N");
7472

75-
#pragma warning disable CS0618
7673
var logger = Client.PropertyCreate(
7774
Context,
7875
propertyId,
7976
Name,
8077
Value,
8178
Secret,
8279
Tag);
83-
#pragma warning restore CS0618
8480

8581
WriteObject(logger);
8682
}

src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/SetAzureApiManagementProperty.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
//
1+
//
22
// Copyright (c) Microsoft. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -62,8 +62,6 @@ public class SetAzureApiManagementProperty : AzureApiManagementCmdletBase
6262
ValueFromPipelineByPropertyName = true,
6363
Mandatory = false,
6464
HelpMessage = "Tags associated with a property. This parameter is optional.")]
65-
[Obsolete("Set-AzureRmApiManagementProperty: -Tags will be removed in favor of -Tag in an upcoming breaking change release. Please start using the -Tag parameter to avoid breaking scripts.")]
66-
[Alias("Tags")]
6765
public string[] Tag { get; set; }
6866

6967
[Parameter(
@@ -76,15 +74,13 @@ public class SetAzureApiManagementProperty : AzureApiManagementCmdletBase
7674

7775
public override void ExecuteApiManagementCmdlet()
7876
{
79-
#pragma warning disable CS0618
8077
Client.PropertySet(
8178
Context,
8279
PropertyId,
8380
Name,
8481
Value,
8582
Secret,
8683
Tag);
87-
#pragma warning restore CS0618
8884

8985
if (PassThru)
9086
{

src/ResourceManager/ApiManagement/Commands.ApiManagement/Commands/NewAzureApiManagement.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
//
1+
//
22
// Copyright (c) Microsoft. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -77,7 +77,7 @@ public class NewAzureApiManagement : AzureApiManagementCmdletBase
7777
ValueFromPipelineByPropertyName = false,
7878
Mandatory = false,
7979
HelpMessage = "Virtual Network Type of the ApiManagement Deployment. Valid Values are " +
80-
" - None (Default Value. ApiManagement is not part of any Virtual Network)" +
80+
" - None (Default Value. ApiManagement is not part of any Virtual Network)" +
8181
" - External (ApiManagement Deployment is setup inside a Virtual Network having an Internet Facing Endpoint) " +
8282
" - Internal (ApiManagement Deployment is setup inside a Virtual Network having an Intranet Facing Endpoint)")]
8383
[ValidateSet("None", "External", "Internal"), PSDefaultValue(Value = "None")]
@@ -93,8 +93,6 @@ public class NewAzureApiManagement : AzureApiManagementCmdletBase
9393
ValueFromPipelineByPropertyName = true,
9494
Mandatory = false,
9595
HelpMessage = "Tags dictionary.")]
96-
[Obsolete("New-AzureRmApiManagement: -Tags will be removed in favor of -Tag in an upcoming breaking change release. Please start using the -Tag parameter to avoid breaking scripts.")]
97-
[Alias("Tags")]
9896
public Dictionary<string, string> Tag { get; set; }
9997

10098
[Parameter(
@@ -105,7 +103,6 @@ public class NewAzureApiManagement : AzureApiManagementCmdletBase
105103

106104
public override void ExecuteCmdlet()
107105
{
108-
#pragma warning disable CS0618
109106
ExecuteLongRunningCmdletWrap(
110107
() => Client.BeginCreateApiManagementService(
111108
ResourceGroupName,
@@ -120,7 +117,6 @@ public override void ExecuteCmdlet()
120117
VirtualNetwork,
121118
AdditionalRegions),
122119
passThru: true);
123-
#pragma warning restore CS0618
124120
}
125121
}
126122
}

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/New-AzureRmApiManagement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Tags dictionary.
215215
```yaml
216216
Type: System.Collections.Generic.Dictionary`2[System.String,System.String]
217217
Parameter Sets: (All)
218-
Aliases: Tags
218+
Aliases:
219219

220220
Required: False
221221
Position: Named

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/New-AzureRmApiManagementProperty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Tags to be associated with Property. This parameter is optional.
129129
```yaml
130130
Type: String[]
131131
Parameter Sets: (All)
132-
Aliases: Tags
132+
Aliases:
133133

134134
Required: False
135135
Position: Named

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Set-AzureRmApiManagementProperty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Tags associated with a property. This parameter is optional.
144144
```yaml
145145
Type: String[]
146146
Parameter Sets: (All)
147-
Aliases: Tags
147+
Aliases:
148148

149149
Required: False
150150
Position: Named

0 commit comments

Comments
 (0)