Skip to content

Commit b78cc54

Browse files
committed
Merge branch 'AzureStack' of https://github.com/deathly809/azure-powershell into AzureStack
2 parents 3d811dc + 7859233 commit b78cc54

File tree

3 files changed

+93
-2
lines changed

3 files changed

+93
-2
lines changed

src/StackAdmin/Azs.Fabric.Admin/Module/Azs.Fabric.Admin/Azs.Fabric.Admin.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ Description = 'Fabric Admin Client'
6565
# ScriptsToProcess = @()
6666

6767
# Type files (.ps1xml) to be loaded when importing this module
68-
# TypesToProcess = @()
68+
TypesToProcess = @('Generated.PowerShell.Commands/FormatFiles/Azs.Fabric.Admin.Type.ps1xml')
6969

7070
# Format files (.ps1xml) to be loaded when importing this module
71-
# FormatsToProcess = @()
71+
FormatsToProcess = @('Generated.PowerShell.Commands/FormatFiles/Azs.Fabric.Admin.Format.ps1xml')
7272

7373
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
7474
NestedModules = @()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
//
4+
// Copyright (c) Microsoft and contributors. All rights reserved.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
//
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
-->
19+
<Configuration>
20+
</Configuration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
//
4+
// Copyright (c) Microsoft and contributors. All rights reserved.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
//
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
-->
19+
<Types>
20+
<Type>
21+
<Name>Microsoft.AzureStack.Management.Fabric.Admin.Models.EdgeGateway</Name>
22+
<Members>
23+
<ScriptMethod>
24+
<Name>ToString</Name>
25+
<Script>
26+
$result = ""
27+
28+
if($this.State -ne $null) {
29+
$result += "state=$($this.State)/"
30+
}
31+
32+
if($this.TotalCapacity -ne $null) {
33+
$result += "total=$($this.TotalCapacity)/"
34+
}
35+
36+
if($this.AvailableCapacity -ne $null) {
37+
$result += "available=$($this.AvailableCapacity)/"
38+
}
39+
40+
if($this.NumberOfConnections -ne $null) {
41+
$result += "connections=$($this.NumberOfConnections )/"
42+
}
43+
44+
$result -replace "/$",""
45+
</Script>
46+
</ScriptMethod>
47+
</Members>
48+
</Type>
49+
<Type>
50+
<Name>Microsoft.AzureStack.Management.Fabric.Admin.Models.InfraRoleInstanceSize</Name>
51+
<Members>
52+
<ScriptMethod>
53+
<Name>ToString</Name>
54+
<Script>
55+
"(Memory=$($this.MemoryGB)GB, Cores=$($this.Cores))"
56+
</Script>
57+
</ScriptMethod>
58+
</Members>
59+
</Type>
60+
<Type>
61+
<Name>Microsoft.AzureStack.Management.Fabric.Admin.Models.ScaleUnitCapacity</Name>
62+
<Members>
63+
<ScriptMethod>
64+
<Name>ToString</Name>
65+
<Script>
66+
"(Memory=$([long]$this.MemoryGB)GB, Cores=$($this.Cores))"
67+
</Script>
68+
</ScriptMethod>
69+
</Members>
70+
</Type>
71+
</Types>

0 commit comments

Comments
 (0)