Skip to content

Commit c7b8af3

Browse files
VeryEarlyaudunn
andauthored
[NetAppFiles] update to api-version 2024-03-01 (#25653) (#25693)
* [NetAppFiles] update to api-version 2024-03-01 (#25653) * update to 2024-03-01 * backup recordings * Update NetAppFilesTestRunner.cs --------- Co-authored-by: Yabo Hu <[email protected]> * Update NetAppFiles.sln --------- Co-authored-by: Auðunn <[email protected]>
1 parent bb20015 commit c7b8af3

File tree

133 files changed

+22700
-32206
lines changed

Some content is hidden

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

133 files changed

+22700
-32206
lines changed

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/CapacityPool.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public CapacityPool()
6464
/// </param>
6565

6666
/// <param name="size">Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks
67-
/// (value must be multiply of 1099511627776).
67+
/// (value must be multiple of 1099511627776).
6868
/// </param>
6969

7070
/// <param name="provisioningState">Azure lifecycle management
@@ -136,7 +136,7 @@ public CapacityPool()
136136

137137
/// <summary>
138138
/// Gets or sets provisioned size of the pool (in bytes). Allowed values are in
139-
/// 1TiB chunks (value must be multiply of 1099511627776).
139+
/// 1TiB chunks (value must be multiple of 1099511627776).
140140
/// </summary>
141141
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.size")]
142142
public long Size {get; set; }

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/CapacityPoolPatch.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public CapacityPoolPatch()
4444
/// Possible values include: &#39;Auto&#39;, &#39;Manual&#39;</param>
4545

4646
/// <param name="size">Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks
47-
/// (value must be multiply of 1099511627776).
47+
/// (value must be multiple of 1099511627776).
4848
/// </param>
4949

5050
/// <param name="coolAccess">If enabled (true) the pool can contain cool Access enabled volumes.
@@ -107,7 +107,7 @@ public CapacityPoolPatch()
107107

108108
/// <summary>
109109
/// Gets or sets provisioned size of the pool (in bytes). Allowed values are in
110-
/// 1TiB chunks (value must be multiply of 1099511627776).
110+
/// 1TiB chunks (value must be multiple of 1099511627776).
111111
/// </summary>
112112
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.size")]
113113
public long? Size {get; set; }

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/KeyVaultProperties.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public KeyVaultProperties()
3838

3939
/// <param name="status">Status of the KeyVault connection.
4040
/// Possible values include: &#39;Created&#39;, &#39;InUse&#39;, &#39;Deleted&#39;, &#39;Error&#39;, &#39;Updating&#39;</param>
41-
public KeyVaultProperties(string keyVaultUri, string keyName, string keyVaultResourceId, string keyVaultId = default(string), string status = default(string))
41+
public KeyVaultProperties(string keyVaultUri, string keyName, string keyVaultId = default(string), string keyVaultResourceId = default(string), string status = default(string))
4242

4343
{
4444
this.KeyVaultId = keyVaultId;
@@ -100,10 +100,6 @@ public virtual void Validate()
100100
{
101101
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "KeyName");
102102
}
103-
if (this.KeyVaultResourceId == null)
104-
{
105-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "KeyVaultResourceId");
106-
}
107103
if (this.KeyVaultId != null)
108104
{
109105
if (this.KeyVaultId.Length > 36)

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/PoolPatchProperties.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public PoolPatchProperties()
2525
/// </summary>
2626

2727
/// <param name="size">Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks
28-
/// (value must be multiply of 1099511627776).
28+
/// (value must be multiple of 1099511627776).
2929
/// </param>
3030

3131
/// <param name="qosType">The qos type of the pool
@@ -50,7 +50,7 @@ public PoolPatchProperties()
5050

5151
/// <summary>
5252
/// Gets or sets provisioned size of the pool (in bytes). Allowed values are in
53-
/// 1TiB chunks (value must be multiply of 1099511627776).
53+
/// 1TiB chunks (value must be multiple of 1099511627776).
5454
/// </summary>
5555
[Newtonsoft.Json.JsonProperty(PropertyName = "size")]
5656
public long? Size {get; set; }

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/PoolProperties.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public PoolProperties()
2828
/// </param>
2929

3030
/// <param name="size">Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks
31-
/// (value must be multiply of 1099511627776).
31+
/// (value must be multiple of 1099511627776).
3232
/// </param>
3333

3434
/// <param name="serviceLevel">The service level of the file system
@@ -82,7 +82,7 @@ public PoolProperties()
8282

8383
/// <summary>
8484
/// Gets or sets provisioned size of the pool (in bytes). Allowed values are in
85-
/// 1TiB chunks (value must be multiply of 1099511627776).
85+
/// 1TiB chunks (value must be multiple of 1099511627776).
8686
/// </summary>
8787
[Newtonsoft.Json.JsonProperty(PropertyName = "size")]
8888
public long Size {get; set; }

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/Replication.cs

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public Replication()
2424
/// Initializes a new instance of the Replication class.
2525
/// </summary>
2626

27+
/// <param name="replicationId">UUID v4 used to identify the replication.
28+
/// </param>
29+
2730
/// <param name="endpointType">Indicates whether the local volume is the source or destination for the
2831
/// Volume Replication
2932
/// Possible values include: &#39;src&#39;, &#39;dst&#39;</param>
@@ -36,9 +39,10 @@ public Replication()
3639

3740
/// <param name="remoteVolumeRegion">The remote region for the other end of the Volume Replication.
3841
/// </param>
39-
public Replication(string remoteVolumeResourceId, string endpointType = default(string), string replicationSchedule = default(string), string remoteVolumeRegion = default(string))
42+
public Replication(string remoteVolumeResourceId, string replicationId = default(string), string endpointType = default(string), string replicationSchedule = default(string), string remoteVolumeRegion = default(string))
4043

4144
{
45+
this.ReplicationId = replicationId;
4246
this.EndpointType = endpointType;
4347
this.ReplicationSchedule = replicationSchedule;
4448
this.RemoteVolumeResourceId = remoteVolumeResourceId;
@@ -52,6 +56,12 @@ public Replication()
5256
partial void CustomInit();
5357

5458

59+
/// <summary>
60+
/// Gets uUID v4 used to identify the replication.
61+
/// </summary>
62+
[Newtonsoft.Json.JsonProperty(PropertyName = "replicationId")]
63+
public string ReplicationId {get; private set; }
64+
5565
/// <summary>
5666
/// Gets or sets indicates whether the local volume is the source or
5767
/// destination for the Volume Replication Possible values include: &#39;src&#39;, &#39;dst&#39;
@@ -88,6 +98,21 @@ public virtual void Validate()
8898
{
8999
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "RemoteVolumeResourceId");
90100
}
101+
if (this.ReplicationId != null)
102+
{
103+
if (this.ReplicationId.Length > 36)
104+
{
105+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "ReplicationId", 36);
106+
}
107+
if (this.ReplicationId.Length < 36)
108+
{
109+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "ReplicationId", 36);
110+
}
111+
if (!System.Text.RegularExpressions.Regex.IsMatch(this.ReplicationId, "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"))
112+
{
113+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "ReplicationId", "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$");
114+
}
115+
}
91116

92117

93118

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/Volume.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ public Volume()
7373
/// </param>
7474

7575
/// <param name="usageThreshold">Maximum storage quota allowed for a file system in bytes. This is a soft
76-
/// quota used for alerting only. Minimum size is 100 GiB. Upper limit is
77-
/// 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional
78-
/// basis. Specified in bytes.
76+
/// quota used for alerting only. For regular volumes, valid values are in the
77+
/// range 50GiB to 100TiB. For large volumes, valid values are in the range
78+
/// 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB.
79+
/// Values expressed in bytes as multiples of 1 GiB.
7980
/// </param>
8081

8182
/// <param name="exportPolicy">Set of export policy rules
@@ -386,9 +387,10 @@ public Volume()
386387

387388
/// <summary>
388389
/// Gets or sets maximum storage quota allowed for a file system in bytes. This
389-
/// is a soft quota used for alerting only. Minimum size is 100 GiB. Upper
390-
/// limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on
391-
/// exceptional basis. Specified in bytes.
390+
/// is a soft quota used for alerting only. For regular volumes, valid values
391+
/// are in the range 50GiB to 100TiB. For large volumes, valid values are in
392+
/// the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to
393+
/// 2400TiB. Values expressed in bytes as multiples of 1 GiB.
392394
/// </summary>
393395
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.usageThreshold")]
394396
public long UsageThreshold {get; set; }
@@ -779,9 +781,9 @@ public override void Validate()
779781
{
780782
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "UsageThreshold", 2638827906662400);
781783
}
782-
if (this.UsageThreshold < 107374182400)
784+
if (this.UsageThreshold < 53687091200)
783785
{
784-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "UsageThreshold", 107374182400);
786+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "UsageThreshold", 53687091200);
785787
}
786788

787789

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/VolumeGroupVolumeProperties.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ public VolumeGroupVolumeProperties()
6161
/// </param>
6262

6363
/// <param name="usageThreshold">Maximum storage quota allowed for a file system in bytes. This is a soft
64-
/// quota used for alerting only. Minimum size is 100 GiB. Upper limit is
65-
/// 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional
66-
/// basis. Specified in bytes.
64+
/// quota used for alerting only. For regular volumes, valid values are in the
65+
/// range 50GiB to 100TiB. For large volumes, valid values are in the range
66+
/// 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB.
67+
/// Values expressed in bytes as multiples of 1 GiB.
6768
/// </param>
6869

6970
/// <param name="exportPolicy">Set of export policy rules
@@ -393,9 +394,10 @@ public VolumeGroupVolumeProperties()
393394

394395
/// <summary>
395396
/// Gets or sets maximum storage quota allowed for a file system in bytes. This
396-
/// is a soft quota used for alerting only. Minimum size is 100 GiB. Upper
397-
/// limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on
398-
/// exceptional basis. Specified in bytes.
397+
/// is a soft quota used for alerting only. For regular volumes, valid values
398+
/// are in the range 50GiB to 100TiB. For large volumes, valid values are in
399+
/// the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to
400+
/// 2400TiB. Values expressed in bytes as multiples of 1 GiB.
399401
/// </summary>
400402
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.usageThreshold")]
401403
public long UsageThreshold {get; set; }
@@ -788,9 +790,9 @@ public virtual void Validate()
788790
{
789791
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "UsageThreshold", 2638827906662400);
790792
}
791-
if (this.UsageThreshold < 107374182400)
793+
if (this.UsageThreshold < 53687091200)
792794
{
793-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "UsageThreshold", 107374182400);
795+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "UsageThreshold", 53687091200);
794796
}
795797

796798

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/VolumePatch.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ public VolumePatch()
4444
/// Possible values include: &#39;Standard&#39;, &#39;Premium&#39;, &#39;Ultra&#39;, &#39;StandardZRS&#39;</param>
4545

4646
/// <param name="usageThreshold">Maximum storage quota allowed for a file system in bytes. This is a soft
47-
/// quota used for alerting only. Minimum size is 100 GiB. Upper limit is
48-
/// 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional
49-
/// basis. Specified in bytes.
47+
/// quota used for alerting only. For regular volumes, valid values are in the
48+
/// range 50GiB to 100TiB. For large volumes, valid values are in the range
49+
/// 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB.
50+
/// Values expressed in bytes as multiples of 1 GiB.
5051
/// </param>
5152

5253
/// <param name="exportPolicy">Set of export policy rules
@@ -182,9 +183,10 @@ public VolumePatch()
182183

183184
/// <summary>
184185
/// Gets or sets maximum storage quota allowed for a file system in bytes. This
185-
/// is a soft quota used for alerting only. Minimum size is 100 GiB. Upper
186-
/// limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on
187-
/// exceptional basis. Specified in bytes.
186+
/// is a soft quota used for alerting only. For regular volumes, valid values
187+
/// are in the range 50GiB to 100TiB. For large volumes, valid values are in
188+
/// the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to
189+
/// 2400TiB. Values expressed in bytes as multiples of 1 GiB.
188190
/// </summary>
189191
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.usageThreshold")]
190192
public long? UsageThreshold {get; set; }
@@ -314,9 +316,9 @@ public virtual void Validate()
314316
{
315317
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "UsageThreshold", 2638827906662400);
316318
}
317-
if (this.UsageThreshold < 107374182400)
319+
if (this.UsageThreshold < 53687091200)
318320
{
319-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "UsageThreshold", 107374182400);
321+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "UsageThreshold", 53687091200);
320322
}
321323
}
322324

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/VolumePatchProperties.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ public VolumePatchProperties()
2828
/// Possible values include: &#39;Standard&#39;, &#39;Premium&#39;, &#39;Ultra&#39;, &#39;StandardZRS&#39;</param>
2929

3030
/// <param name="usageThreshold">Maximum storage quota allowed for a file system in bytes. This is a soft
31-
/// quota used for alerting only. Minimum size is 100 GiB. Upper limit is
32-
/// 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional
33-
/// basis. Specified in bytes.
31+
/// quota used for alerting only. For regular volumes, valid values are in the
32+
/// range 50GiB to 100TiB. For large volumes, valid values are in the range
33+
/// 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB.
34+
/// Values expressed in bytes as multiples of 1 GiB.
3435
/// </param>
3536

3637
/// <param name="exportPolicy">Set of export policy rules
@@ -131,9 +132,10 @@ public VolumePatchProperties()
131132

132133
/// <summary>
133134
/// Gets or sets maximum storage quota allowed for a file system in bytes. This
134-
/// is a soft quota used for alerting only. Minimum size is 100 GiB. Upper
135-
/// limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on
136-
/// exceptional basis. Specified in bytes.
135+
/// is a soft quota used for alerting only. For regular volumes, valid values
136+
/// are in the range 50GiB to 100TiB. For large volumes, valid values are in
137+
/// the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to
138+
/// 2400TiB. Values expressed in bytes as multiples of 1 GiB.
137139
/// </summary>
138140
[Newtonsoft.Json.JsonProperty(PropertyName = "usageThreshold")]
139141
public long? UsageThreshold {get; set; }
@@ -258,9 +260,9 @@ public virtual void Validate()
258260
{
259261
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "UsageThreshold", 2638827906662400);
260262
}
261-
if (this.UsageThreshold < 107374182400)
263+
if (this.UsageThreshold < 53687091200)
262264
{
263-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "UsageThreshold", 107374182400);
265+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "UsageThreshold", 53687091200);
264266
}
265267
}
266268

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/VolumeProperties.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ public VolumeProperties()
3434
/// Possible values include: &#39;Standard&#39;, &#39;Premium&#39;, &#39;Ultra&#39;, &#39;StandardZRS&#39;</param>
3535

3636
/// <param name="usageThreshold">Maximum storage quota allowed for a file system in bytes. This is a soft
37-
/// quota used for alerting only. Minimum size is 100 GiB. Upper limit is
38-
/// 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional
39-
/// basis. Specified in bytes.
37+
/// quota used for alerting only. For regular volumes, valid values are in the
38+
/// range 50GiB to 100TiB. For large volumes, valid values are in the range
39+
/// 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB.
40+
/// Values expressed in bytes as multiples of 1 GiB.
4041
/// </param>
4142

4243
/// <param name="exportPolicy">Set of export policy rules
@@ -321,9 +322,10 @@ public VolumeProperties()
321322

322323
/// <summary>
323324
/// Gets or sets maximum storage quota allowed for a file system in bytes. This
324-
/// is a soft quota used for alerting only. Minimum size is 100 GiB. Upper
325-
/// limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on
326-
/// exceptional basis. Specified in bytes.
325+
/// is a soft quota used for alerting only. For regular volumes, valid values
326+
/// are in the range 50GiB to 100TiB. For large volumes, valid values are in
327+
/// the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to
328+
/// 2400TiB. Values expressed in bytes as multiples of 1 GiB.
327329
/// </summary>
328330
[Newtonsoft.Json.JsonProperty(PropertyName = "usageThreshold")]
329331
public long UsageThreshold {get; set; }
@@ -729,9 +731,9 @@ public virtual void Validate()
729731
{
730732
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "UsageThreshold", 2638827906662400);
731733
}
732-
if (this.UsageThreshold < 107374182400)
734+
if (this.UsageThreshold < 53687091200)
733735
{
734-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "UsageThreshold", 107374182400);
736+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "UsageThreshold", 53687091200);
735737
}
736738

737739

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/NetAppManagementClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ private void Initialize()
386386
this.BackupsUnderVolume = new BackupsUnderVolumeOperations(this);
387387
this.BackupsUnderAccount = new BackupsUnderAccountOperations(this);
388388
this.BaseUri = new System.Uri("https://management.azure.com");
389-
this.ApiVersion = "2023-11-01";
389+
this.ApiVersion = "2024-03-01";
390390
this.AcceptLanguage = "en-US";
391391
this.LongRunningOperationRetryTimeout = 30;
392392
this.GenerateClientRequestId = true;

0 commit comments

Comments
 (0)