Skip to content

Commit ef6ce56

Browse files
authored
Merge pull request #6799 from EvgenyAgafonchikov/table-view-draft
Network: add TableView support
2 parents 1f78e44 + 60f9898 commit ef6ce56

File tree

192 files changed

+7121
-1156
lines changed

Some content is hidden

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

192 files changed

+7121
-1156
lines changed

src/ResourceManager/Network/Commands.Network/AzureRM.Network.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RequiredAssemblies = '.\AutoMapper.dll', '.\Microsoft.Azure.Management.Network.d
6363
# TypesToProcess = @()
6464

6565
# Format files (.ps1xml) to be loaded when importing this module
66-
FormatsToProcess = '.\Microsoft.Azure.Commands.Network.format.ps1xml'
66+
FormatsToProcess = '.\Microsoft.Azure.Commands.Network.generated.format.ps1xml','.\Microsoft.Azure.Commands.Network.format.ps1xml'
6767

6868
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
6969
NestedModules = @('.\Microsoft.Azure.Commands.Network.dll')

src/ResourceManager/Network/Commands.Network/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
* Clarified error message for Get-AzureRmVirtualNetworkSubnetConfig when attempting to get a subnet that does not exist
3333
* Improved exception messages: added more details to output
3434
* Dropped outdated warnings
35+
* Changed default models representation to table-view
3536

3637
## Version 6.4.1
3738
* Updated all help files to include full parameter types and correct input/output types.

src/ResourceManager/Network/Commands.Network/Commands.Network.csproj

Lines changed: 65 additions & 59 deletions
Large diffs are not rendered by default.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
//
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
//
22+
// For documentation on code generator please visit
23+
// https://aka.ms/nrp-code-generation
24+
// Please contact [email protected] if you need to make changes to this file.
25+
// </auto-generated>
26+
27+
using Microsoft.Azure.Management.Network.Models;
28+
using Newtonsoft.Json;
29+
using System.Collections.Generic;
30+
31+
32+
namespace Microsoft.Azure.Commands.Network.Models
33+
{
34+
public partial class PSAddressSpace
35+
{
36+
public List<string> AddressPrefixes { get; set; }
37+
38+
[JsonIgnore]
39+
public string AddressPrefixesText
40+
{
41+
get { return JsonConvert.SerializeObject(AddressPrefixes, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
42+
}
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
//
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
//
22+
// For documentation on code generator please visit
23+
// https://aka.ms/nrp-code-generation
24+
// Please contact [email protected] if you need to make changes to this file.
25+
// </auto-generated>
26+
27+
using Microsoft.Azure.Management.Network.Models;
28+
using Microsoft.WindowsAzure.Commands.Common.Attributes;
29+
using Newtonsoft.Json;
30+
using System.Collections.Generic;
31+
32+
namespace Microsoft.Azure.Commands.Network.Models
33+
{
34+
public partial class PSApplicationGatewayAvailableSslOptions : PSTopLevelResource
35+
{
36+
[Ps1Xml(Target = ViewControl.Table)]
37+
public string DefaultPolicy { get; set; }
38+
public List<string> AvailableCipherSuites { get; set; }
39+
public List<string> AvailableProtocols { get; set; }
40+
public List<PSResourceId> PredefinedPolicies { get; set; }
41+
42+
[JsonIgnore]
43+
public string AvailableCipherSuitesText
44+
{
45+
get { return JsonConvert.SerializeObject(AvailableCipherSuites, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
46+
}
47+
48+
[JsonIgnore]
49+
public string AvailableProtocolsText
50+
{
51+
get { return JsonConvert.SerializeObject(AvailableProtocols, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
52+
}
53+
54+
[JsonIgnore]
55+
public string PredefinedPoliciesText
56+
{
57+
get { return JsonConvert.SerializeObject(PredefinedPolicies, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
58+
}
59+
}
60+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
//
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
//
22+
// For documentation on code generator please visit
23+
// https://aka.ms/nrp-code-generation
24+
// Please contact [email protected] if you need to make changes to this file.
25+
// </auto-generated>
26+
27+
using Microsoft.Azure.Management.Network.Models;
28+
using Newtonsoft.Json;
29+
using System.Collections.Generic;
30+
31+
namespace Microsoft.Azure.Commands.Network.Models
32+
{
33+
public partial class PSApplicationGatewayAvailableWafRuleSetsResult
34+
{
35+
public List<PSApplicationGatewayFirewallRuleSet> Value { get; set; }
36+
37+
[JsonIgnore]
38+
public string ValueText
39+
{
40+
get { return JsonConvert.SerializeObject(Value, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
41+
}
42+
}
43+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
//
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
//
22+
// For documentation on code generator please visit
23+
// https://aka.ms/nrp-code-generation
24+
// Please contact [email protected] if you need to make changes to this file.
25+
// </auto-generated>
26+
27+
using Microsoft.Azure.Management.Network.Models;
28+
using Microsoft.WindowsAzure.Commands.Common.Attributes;
29+
using Newtonsoft.Json;
30+
31+
namespace Microsoft.Azure.Commands.Network.Models
32+
{
33+
public partial class PSApplicationGatewayBackendAddress
34+
{
35+
[Ps1Xml(Target = ViewControl.Table)]
36+
public string Fqdn { get; set; }
37+
[Ps1Xml(Target = ViewControl.Table)]
38+
public string IpAddress { get; set; }
39+
}
40+
}

src/ResourceManager/Network/Commands.Network/Models/PSApplicationGatewayBackendHealth.cs renamed to src/ResourceManager/Network/Commands.Network/Generated/Models/PSApplicationGatewayBackendHealth.cs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,36 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
3-
//
1+
// <auto-generated>
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
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.
12+
//
1213
// See the License for the specific language governing permissions and
1314
// limitations under the License.
14-
//
15+
//
16+
//
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
//
22+
// For documentation on code generator please visit
23+
// https://aka.ms/nrp-code-generation
24+
// Please contact [email protected] if you need to make changes to this file.
25+
// </auto-generated>
1526

27+
using Microsoft.Azure.Management.Network.Models;
1628
using Newtonsoft.Json;
1729
using System.Collections.Generic;
1830

1931
namespace Microsoft.Azure.Commands.Network.Models
2032
{
21-
public class PSApplicationGatewayBackendHealth
33+
public partial class PSApplicationGatewayBackendHealth
2234
{
2335
public List<PSApplicationGatewayBackendHealthPool> BackendAddressPools { get; set; }
2436

src/ResourceManager/Network/Commands.Network/Models/PSApplicationGatewayBackendHealthHttpSettings.cs renamed to src/ResourceManager/Network/Commands.Network/Generated/Models/PSApplicationGatewayBackendHealthHttpSettings.cs

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,40 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
3-
//
1+
// <auto-generated>
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
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.
12+
//
1213
// See the License for the specific language governing permissions and
1314
// limitations under the License.
14-
//
15+
//
16+
//
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
//
22+
// For documentation on code generator please visit
23+
// https://aka.ms/nrp-code-generation
24+
// Please contact [email protected] if you need to make changes to this file.
25+
// </auto-generated>
1526

27+
using Microsoft.Azure.Management.Network.Models;
28+
using Microsoft.WindowsAzure.Commands.Common.Attributes;
1629
using Newtonsoft.Json;
1730
using System.Collections.Generic;
1831

1932
namespace Microsoft.Azure.Commands.Network.Models
2033
{
21-
public class PSApplicationGatewayBackendHealthHttpSettings
34+
public partial class PSApplicationGatewayBackendHealthHttpSettings
2235
{
36+
[Ps1Xml(Label = "BackendHttpSettings", Target = ViewControl.Table, ScriptBlock = "$_.BackendHttpSettings.Name")]
2337
public PSApplicationGatewayBackendHttpSettings BackendHttpSettings { get; set; }
24-
2538
public List<PSApplicationGatewayBackendHealthServer> Servers { get; set; }
2639

2740
[JsonIgnore]

src/ResourceManager/Network/Commands.Network/Models/PSApplicationGatewayBackendHealthPool.cs renamed to src/ResourceManager/Network/Commands.Network/Generated/Models/PSApplicationGatewayBackendHealthPool.cs

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,40 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
3-
//
1+
// <auto-generated>
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
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.
12+
//
1213
// See the License for the specific language governing permissions and
1314
// limitations under the License.
14-
//
15+
//
16+
//
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
//
22+
// For documentation on code generator please visit
23+
// https://aka.ms/nrp-code-generation
24+
// Please contact [email protected] if you need to make changes to this file.
25+
// </auto-generated>
1526

27+
using Microsoft.Azure.Management.Network.Models;
28+
using Microsoft.WindowsAzure.Commands.Common.Attributes;
1629
using Newtonsoft.Json;
1730
using System.Collections.Generic;
1831

1932
namespace Microsoft.Azure.Commands.Network.Models
2033
{
21-
public class PSApplicationGatewayBackendHealthPool
34+
public partial class PSApplicationGatewayBackendHealthPool
2235
{
36+
[Ps1Xml(Label = "BackendAddressPool", Target = ViewControl.Table, ScriptBlock = "$_.BackendAddressPool.Name")]
2337
public PSApplicationGatewayBackendAddressPool BackendAddressPool { get; set; }
24-
2538
public List<PSApplicationGatewayBackendHealthHttpSettings> BackendHttpSettingsCollection { get; set; }
2639

2740
[JsonIgnore]

src/ResourceManager/Network/Commands.Network/Models/PSApplicationGatewayBackendHealthServer.cs renamed to src/ResourceManager/Network/Commands.Network/Generated/Models/PSApplicationGatewayBackendHealthServer.cs

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,43 @@
1-
//
2-
// Copyright (c) Microsoft. All rights reserved.
3-
//
1+
// <auto-generated>
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
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.
12+
//
1213
// See the License for the specific language governing permissions and
1314
// limitations under the License.
14-
//
15+
//
16+
//
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
//
22+
// For documentation on code generator please visit
23+
// https://aka.ms/nrp-code-generation
24+
// Please contact [email protected] if you need to make changes to this file.
25+
// </auto-generated>
1526

27+
using Microsoft.Azure.Management.Network.Models;
28+
using Microsoft.WindowsAzure.Commands.Common.Attributes;
1629
using Newtonsoft.Json;
30+
1731
namespace Microsoft.Azure.Commands.Network.Models
1832
{
19-
public class PSApplicationGatewayBackendHealthServer
33+
public partial class PSApplicationGatewayBackendHealthServer
2034
{
35+
[Ps1Xml(Target = ViewControl.Table)]
2136
public string Address { get; set; }
22-
23-
public PSNetworkInterfaceIPConfiguration IpConfiguration { get; set; }
24-
37+
[Ps1Xml(Target = ViewControl.Table)]
2538
public string Health { get; set; }
39+
[Ps1Xml(Label = "IpConfiguration", Target = ViewControl.Table, ScriptBlock = "$_.IpConfiguration.Name")]
40+
public PSNetworkInterfaceIPConfiguration IpConfiguration { get; set; }
2641

2742
[JsonIgnore]
2843
public string IpConfigurationText

0 commit comments

Comments
 (0)