Skip to content

Commit 10c9e16

Browse files
committed
sync generation-ElasticSan-preview
1 parent 6f6fdfe commit 10c9e16

File tree

53 files changed

+2840
-1933
lines changed

Some content is hidden

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

53 files changed

+2840
-1933
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ElasticSan")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.2.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/ElasticSan/ElasticSan.Autorest/README.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ For information on how to develop for `Az.ElasticSan`, see [how-to.md](how-to.md
2828
2929
``` yaml
3030
# Please specify the commit id that includes your features to make sure generated codes stable.
31-
commit: 72c69a0cf561d41ae99fe6810c426a874d3a8372
31+
commit: 3ca7edabc2edf1117b7d912ba34f2694721e3ff3
3232
require:
3333
- $(this-folder)/../../readme.azure.noprofile.md
3434
input-file:
35-
- $(repo)/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/elasticsan.json
35+
- $(repo)/specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/elasticsan.json
3636

3737
# Normally, title is the service name
3838
title: ElasticSan
@@ -125,6 +125,38 @@ directive:
125125
parameter-name: KeyVaultPropertyKeyVersion
126126
set:
127127
parameter-name: KeyVersion
128+
- where:
129+
parameter-name: ScaleUpPropertyAutoScalePolicyEnforcement
130+
set:
131+
parameter-name: AutoScalePolicyEnforcement
132+
- where:
133+
parameter-name: ScaleUpPropertyCapacityUnitScaleUpLimitTiB
134+
set:
135+
parameter-name: CapacityUnitScaleUpLimitTiB
136+
- where:
137+
parameter-name: ScaleUpPropertyIncreaseCapacityUnitByTiB
138+
set:
139+
parameter-name: IncreaseCapacityUnitByTiB
140+
- where:
141+
parameter-name: ScaleUpPropertyUnusedSizeTiB
142+
set:
143+
parameter-name: UnusedSizeTiB
144+
- where:
145+
property-name: ScaleUpPropertyAutoScalePolicyEnforcement
146+
set:
147+
property-name: AutoScalePolicyEnforcement
148+
- where:
149+
property-name: ScaleUpPropertyCapacityUnitScaleUpLimitTiB
150+
set:
151+
property-name: CapacityUnitScaleUpLimitTiB
152+
- where:
153+
property-name: ScaleUpPropertyIncreaseCapacityUnitByTiB
154+
set:
155+
property-name: IncreaseCapacityUnitByTiB
156+
- where:
157+
property-name: ScaleUpPropertyUnusedSizeTiB
158+
set:
159+
property-name: UnusedSizeTiB
128160
# Change the description of cmdlets that correspond to multiple APIs
129161
- from: swagger-document
130162
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}"].get

src/ElasticSan/ElasticSan.Autorest/UX/Microsoft.ElasticSan/elasticSans-volumegroups-snapshots.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "elasticSans/volumegroups/snapshots",
3-
"apiVersion": "2024-05-01",
3+
"apiVersion": "2024-06-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.elasticsan"
66
},

src/ElasticSan/ElasticSan.Autorest/UX/Microsoft.ElasticSan/elasticSans-volumegroups-volumes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "elasticSans/volumegroups/volumes",
3-
"apiVersion": "2024-05-01",
3+
"apiVersion": "2024-06-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.elasticsan"
66
},

src/ElasticSan/ElasticSan.Autorest/UX/Microsoft.ElasticSan/elasticSans-volumegroups.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "elasticSans/volumegroups",
3-
"apiVersion": "2024-05-01",
3+
"apiVersion": "2024-06-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.elasticsan"
66
},

src/ElasticSan/ElasticSan.Autorest/UX/Microsoft.ElasticSan/elasticSans.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "elasticSans",
3-
"apiVersion": "2024-05-01",
3+
"apiVersion": "2024-06-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.elasticsan"
66
},

src/ElasticSan/ElasticSan.Autorest/custom/autogen-model-cmdlets/New-AzElasticSanVirtualNetworkRuleObject.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VirtualNetworkRule
2626
https://learn.microsoft.com/powershell/module/Az.ElasticSan/new-azelasticsanvirtualnetworkruleobject
2727
#>
2828
function New-AzElasticSanVirtualNetworkRuleObject {
29+
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.ModelCmdletAttribute()]
2930
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VirtualNetworkRule')]
3031
[CmdletBinding(PositionalBinding=$false)]
3132
Param(

src/ElasticSan/ElasticSan.Autorest/docs/Get-AzElasticSan.md

Lines changed: 106 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -45,53 +45,71 @@ Get-AzElasticSan
4545
```
4646

4747
```output
48+
AutoScalePolicyEnforcement :
4849
AvailabilityZone :
4950
BaseSizeTiB : 1
51+
CapacityUnitScaleUpLimitTiB :
5052
ExtendedCapacitySizeTiB : 6
51-
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup
52-
/providers/Microsoft.ElasticSan/elasticSans/myelasticsan1
53+
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan1
54+
IncreaseCapacityUnitByTiB :
5355
Location : eastus
5456
Name : myelasticsan1
57+
PrivateEndpointConnection :
5558
ProvisioningState : Succeeded
59+
PublicNetworkAccess :
60+
ResourceGroupName : myresourcegroup
5661
SkuName : Premium_LRS
5762
SkuTier :
58-
SystemDataCreatedAt : 9/19/2022 9:50:25 AM
59-
SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
60-
SystemDataCreatedByType : Application
61-
SystemDataLastModifiedAt : 9/19/2022 9:50:25 AM
62-
SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
63-
SystemDataLastModifiedByType : Application
64-
Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
63+
SystemDataCreatedAt : 9/29/2024 2:34:21 AM
64+
SystemDataCreatedBy : [email protected]
65+
SystemDataCreatedByType : User
66+
SystemDataLastModifiedAt : 9/29/2024 2:34:21 AM
67+
SystemDataLastModifiedBy : [email protected]
68+
SystemDataLastModifiedByType : User
69+
Tag : {
70+
"tag1": "value1",
71+
"tag2": "value2"
72+
}
6573
TotalIops : 5000
66-
TotalMBps : 80
74+
TotalMBps : 200
6775
TotalSizeTiB : 7
68-
TotalVolumeSizeGiB : 0
76+
TotalVolumeSizeGiB : 120
6977
Type : Microsoft.ElasticSan/ElasticSans
70-
VolumeGroupCount : 0
78+
UnusedSizeTiB :
79+
VolumeGroupCount : 4
7180
81+
AutoScalePolicyEnforcement :
7282
AvailabilityZone :
7383
BaseSizeTiB : 1
84+
CapacityUnitScaleUpLimitTiB :
7485
ExtendedCapacitySizeTiB : 6
75-
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Micr
76-
osoft.ElasticSan/elasticSans/myelasticsan2
86+
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan2
87+
IncreaseCapacityUnitByTiB :
7788
Location : eastus
7889
Name : myelasticsan2
90+
PrivateEndpointConnection :
7991
ProvisioningState : Succeeded
92+
PublicNetworkAccess :
93+
ResourceGroupName : myresourcegroup
8094
SkuName : Premium_LRS
8195
SkuTier :
82-
SystemDataCreatedAt : 8/18/2022 8:42:21 AM
83-
SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
84-
SystemDataCreatedByType : Application
85-
SystemDataLastModifiedAt : 8/18/2022 8:42:21 AM
86-
SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
87-
SystemDataLastModifiedByType : Application
88-
Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
96+
SystemDataCreatedAt : 9/29/2024 2:34:48 AM
97+
SystemDataCreatedBy : [email protected]
98+
SystemDataCreatedByType : User
99+
SystemDataLastModifiedAt : 9/29/2024 2:34:48 AM
100+
SystemDataLastModifiedBy : [email protected]
101+
SystemDataLastModifiedByType : User
102+
Tag : {
103+
"tag1": "value1",
104+
"tag2": "value2"
105+
}
89106
TotalIops : 5000
90-
TotalMBps : 80
107+
TotalMBps : 200
91108
TotalSizeTiB : 7
92-
TotalVolumeSizeGiB : 100
109+
TotalVolumeSizeGiB : 0
93110
Type : Microsoft.ElasticSan/ElasticSans
94-
VolumeGroupCount : 7
111+
UnusedSizeTiB :
112+
VolumeGroupCount : 0
95113
```
96114

97115
This command gets all the Elastic SANs in a subscription.
@@ -102,53 +120,71 @@ Get-AzElasticSan -ResourceGroupName myresourcegroup
102120
```
103121

104122
```output
123+
AutoScalePolicyEnforcement :
105124
AvailabilityZone :
106125
BaseSizeTiB : 1
126+
CapacityUnitScaleUpLimitTiB :
107127
ExtendedCapacitySizeTiB : 6
108-
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup
109-
/providers/Microsoft.ElasticSan/elasticSans/myelasticsan1
128+
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan1
129+
IncreaseCapacityUnitByTiB :
110130
Location : eastus
111131
Name : myelasticsan1
132+
PrivateEndpointConnection :
112133
ProvisioningState : Succeeded
134+
PublicNetworkAccess :
135+
ResourceGroupName : myresourcegroup
113136
SkuName : Premium_LRS
114137
SkuTier :
115-
SystemDataCreatedAt : 9/19/2022 9:50:25 AM
116-
SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
117-
SystemDataCreatedByType : Application
118-
SystemDataLastModifiedAt : 9/19/2022 9:50:25 AM
119-
SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
120-
SystemDataLastModifiedByType : Application
121-
Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
138+
SystemDataCreatedAt : 9/29/2024 2:34:21 AM
139+
SystemDataCreatedBy : [email protected]
140+
SystemDataCreatedByType : User
141+
SystemDataLastModifiedAt : 9/29/2024 2:34:21 AM
142+
SystemDataLastModifiedBy : [email protected]
143+
SystemDataLastModifiedByType : User
144+
Tag : {
145+
"tag1": "value1",
146+
"tag2": "value2"
147+
}
122148
TotalIops : 5000
123-
TotalMBps : 80
149+
TotalMBps : 200
124150
TotalSizeTiB : 7
125-
TotalVolumeSizeGiB : 0
151+
TotalVolumeSizeGiB : 120
126152
Type : Microsoft.ElasticSan/ElasticSans
127-
VolumeGroupCount : 0
153+
UnusedSizeTiB :
154+
VolumeGroupCount : 4
128155
156+
AutoScalePolicyEnforcement :
129157
AvailabilityZone :
130158
BaseSizeTiB : 1
159+
CapacityUnitScaleUpLimitTiB :
131160
ExtendedCapacitySizeTiB : 6
132-
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Micr
133-
osoft.ElasticSan/elasticSans/myelasticsan2
161+
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan2
162+
IncreaseCapacityUnitByTiB :
134163
Location : eastus
135164
Name : myelasticsan2
165+
PrivateEndpointConnection :
136166
ProvisioningState : Succeeded
167+
PublicNetworkAccess :
168+
ResourceGroupName : myresourcegroup
137169
SkuName : Premium_LRS
138170
SkuTier :
139-
SystemDataCreatedAt : 8/18/2022 8:42:21 AM
140-
SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
141-
SystemDataCreatedByType : Application
142-
SystemDataLastModifiedAt : 8/18/2022 8:42:21 AM
143-
SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
144-
SystemDataLastModifiedByType : Application
145-
Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
171+
SystemDataCreatedAt : 9/29/2024 2:34:48 AM
172+
SystemDataCreatedBy : [email protected]
173+
SystemDataCreatedByType : User
174+
SystemDataLastModifiedAt : 9/29/2024 2:34:48 AM
175+
SystemDataLastModifiedBy : [email protected]
176+
SystemDataLastModifiedByType : User
177+
Tag : {
178+
"tag1": "value1",
179+
"tag2": "value2"
180+
}
146181
TotalIops : 5000
147-
TotalMBps : 80
182+
TotalMBps : 200
148183
TotalSizeTiB : 7
149-
TotalVolumeSizeGiB : 100
184+
TotalVolumeSizeGiB : 0
150185
Type : Microsoft.ElasticSan/ElasticSans
151-
VolumeGroupCount : 7
186+
UnusedSizeTiB :
187+
VolumeGroupCount : 0
152188
```
153189

154190
This command gets all Elastic SANs in a resource group.
@@ -159,29 +195,38 @@ Get-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan
159195
```
160196

161197
```output
198+
AutoScalePolicyEnforcement :
162199
AvailabilityZone :
163200
BaseSizeTiB : 1
201+
CapacityUnitScaleUpLimitTiB :
164202
ExtendedCapacitySizeTiB : 6
165-
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Micr
166-
osoft.ElasticSan/elasticSans/myelasticsan
167-
Location : eastus
203+
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan
204+
IncreaseCapacityUnitByTiB :
205+
Location : eastus2
168206
Name : myelasticsan
207+
PrivateEndpointConnection :
169208
ProvisioningState : Succeeded
209+
PublicNetworkAccess :
210+
ResourceGroupName : myresourcegroup
170211
SkuName : Premium_LRS
171212
SkuTier :
172-
SystemDataCreatedAt : 8/18/2022 8:42:21 AM
173-
SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
174-
SystemDataCreatedByType : Application
175-
SystemDataLastModifiedAt : 8/18/2022 8:42:21 AM
176-
SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
177-
SystemDataLastModifiedByType : Application
178-
Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
213+
SystemDataCreatedAt : 9/29/2024 2:34:21 AM
214+
SystemDataCreatedBy : [email protected]
215+
SystemDataCreatedByType : User
216+
SystemDataLastModifiedAt : 9/29/2024 2:34:21 AM
217+
SystemDataLastModifiedBy : [email protected]
218+
SystemDataLastModifiedByType : User
219+
Tag : {
220+
"tag1": "value1",
221+
"tag2": "value2"
222+
}
179223
TotalIops : 5000
180-
TotalMBps : 80
224+
TotalMBps : 200
181225
TotalSizeTiB : 7
182-
TotalVolumeSizeGiB : 100
226+
TotalVolumeSizeGiB : 120
183227
Type : Microsoft.ElasticSan/ElasticSans
184-
VolumeGroupCount : 7
228+
UnusedSizeTiB :
229+
VolumeGroupCount : 4
185230
```
186231

187232
This command gets a specific Elastic SAN.

0 commit comments

Comments
 (0)