Skip to content

Commit 5bff9a4

Browse files
authored
[NetAppFiles] Update to api-verison 2025-01-01 (#27575)
1 parent 85c9893 commit 5bff9a4

File tree

101 files changed

+28319
-38567
lines changed

Some content is hidden

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

101 files changed

+28319
-38567
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ internal AccountsOperations (NetAppManagementClient client)
203203
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
204204
try
205205
{
206-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page1<NetAppAccount>>(_responseContent, this.Client.DeserializationSettings);
206+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<NetAppAccount>>(_responseContent, this.Client.DeserializationSettings);
207207
}
208208
catch (Newtonsoft.Json.JsonException ex)
209209
{
@@ -411,7 +411,7 @@ internal AccountsOperations (NetAppManagementClient client)
411411
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
412412
try
413413
{
414-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page1<NetAppAccount>>(_responseContent, this.Client.DeserializationSettings);
414+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<NetAppAccount>>(_responseContent, this.Client.DeserializationSettings);
415415
}
416416
catch (Newtonsoft.Json.JsonException ex)
417417
{
@@ -2615,7 +2615,7 @@ internal AccountsOperations (NetAppManagementClient client)
26152615
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
26162616
try
26172617
{
2618-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page1<NetAppAccount>>(_responseContent, this.Client.DeserializationSettings);
2618+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<NetAppAccount>>(_responseContent, this.Client.DeserializationSettings);
26192619
}
26202620
catch (Newtonsoft.Json.JsonException ex)
26212621
{
@@ -2792,7 +2792,7 @@ internal AccountsOperations (NetAppManagementClient client)
27922792
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
27932793
try
27942794
{
2795-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page1<NetAppAccount>>(_responseContent, this.Client.DeserializationSettings);
2795+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<NetAppAccount>>(_responseContent, this.Client.DeserializationSettings);
27962796
}
27972797
catch (Newtonsoft.Json.JsonException ex)
27982798
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ internal BackupPoliciesOperations (NetAppManagementClient client)
239239
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
240240
try
241241
{
242-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<BackupPolicy>>(_responseContent, this.Client.DeserializationSettings);
242+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page1<BackupPolicy>>(_responseContent, this.Client.DeserializationSettings);
243243
}
244244
catch (Newtonsoft.Json.JsonException ex)
245245
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ internal BackupVaultsOperations (NetAppManagementClient client)
239239
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
240240
try
241241
{
242-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page1<BackupVault>>(_responseContent, this.Client.DeserializationSettings);
242+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<BackupVault>>(_responseContent, this.Client.DeserializationSettings);
243243
}
244244
catch (Newtonsoft.Json.JsonException ex)
245245
{
@@ -1527,7 +1527,7 @@ internal BackupVaultsOperations (NetAppManagementClient client)
15271527
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
15281528
try
15291529
{
1530-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page1<BackupVault>>(_responseContent, this.Client.DeserializationSettings);
1530+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<BackupVault>>(_responseContent, this.Client.DeserializationSettings);
15311531
}
15321532
catch (Newtonsoft.Json.JsonException ex)
15331533
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ internal BackupsOperations (NetAppManagementClient client)
809809
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
810810
try
811811
{
812-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page1<Backup>>(_responseContent, this.Client.DeserializationSettings);
812+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<Backup>>(_responseContent, this.Client.DeserializationSettings);
813813
}
814814
catch (Newtonsoft.Json.JsonException ex)
815815
{
@@ -2169,7 +2169,7 @@ internal BackupsOperations (NetAppManagementClient client)
21692169
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
21702170
try
21712171
{
2172-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page1<Backup>>(_responseContent, this.Client.DeserializationSettings);
2172+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<Backup>>(_responseContent, this.Client.DeserializationSettings);
21732173
}
21742174
catch (Newtonsoft.Json.JsonException ex)
21752175
{

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ public partial interface INetAppManagementClient : System.IDisposable
7878
/// </summary>
7979
INetAppResourceOperations NetAppResource { get; }
8080

81+
/// <summary>
82+
/// Gets the INetAppResourceUsagesOperations
83+
/// </summary>
84+
INetAppResourceUsagesOperations NetAppResourceUsages { get; }
85+
8186
/// <summary>
8287
/// Gets the INetAppResourceQuotaLimitsOperations
8388
/// </summary>
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
5+
6+
namespace Microsoft.Azure.Management.NetApp
7+
{
8+
using Microsoft.Rest.Azure;
9+
using Models;
10+
11+
/// <summary>
12+
/// NetAppResourceUsagesOperations operations.
13+
/// </summary>
14+
public partial interface INetAppResourceUsagesOperations
15+
{
16+
/// <summary>
17+
/// Get current subscription usages
18+
/// </summary>
19+
/// <remarks>
20+
/// Get current subscription usages
21+
/// </remarks>
22+
/// <param name='location'>
23+
/// The name of the Azure region.
24+
/// </param>
25+
/// <param name='customHeaders'>
26+
/// The headers that will be added to request.
27+
/// </param>
28+
/// <param name='cancellationToken'>
29+
/// The cancellation token.
30+
/// </param>
31+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
32+
/// Thrown when the operation returned an invalid status code
33+
/// </exception>
34+
/// <exception cref="Microsoft.Rest.SerializationException">
35+
/// Thrown when unable to deserialize the response
36+
/// </exception>
37+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<UsageResult>>> ListWithHttpMessagesAsync(string location, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
38+
39+
/// <summary>
40+
/// Get current subscription usage of the specific type
41+
/// </summary>
42+
/// <remarks>
43+
/// Get current subscription usage of the specific type
44+
/// </remarks>
45+
/// <param name='location'>
46+
/// The name of the Azure region.
47+
/// </param>
48+
/// <param name='usageType'>
49+
/// The type of usage
50+
/// </param>
51+
/// <param name='customHeaders'>
52+
/// The headers that will be added to request.
53+
/// </param>
54+
/// <param name='cancellationToken'>
55+
/// The cancellation token.
56+
/// </param>
57+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
58+
/// Thrown when the operation returned an invalid status code
59+
/// </exception>
60+
/// <exception cref="Microsoft.Rest.SerializationException">
61+
/// Thrown when unable to deserialize the response
62+
/// </exception>
63+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<UsageResult>> GetWithHttpMessagesAsync(string location, string usageType, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
64+
65+
/// <summary>
66+
/// Get current subscription usages
67+
/// </summary>
68+
/// <remarks>
69+
/// Get current subscription usages
70+
/// </remarks>
71+
/// <param name='nextPageLink'>
72+
/// The NextLink from the previous successful call to List operation.
73+
/// </param>
74+
/// <param name='customHeaders'>
75+
/// The headers that will be added to request.
76+
/// </param>
77+
/// <param name='cancellationToken'>
78+
/// The cancellation token.
79+
/// </param>
80+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
81+
/// Thrown when the operation returned an invalid status code
82+
/// </exception>
83+
/// <exception cref="Microsoft.Rest.SerializationException">
84+
/// Thrown when unable to deserialize the response
85+
/// </exception>
86+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<UsageResult>>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
87+
88+
}
89+
}

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,30 @@ public partial interface IOperations
3131
/// <exception cref="Microsoft.Rest.SerializationException">
3232
/// Thrown when unable to deserialize the response
3333
/// </exception>
34-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IEnumerable<Operation>>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
34+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Operation>>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
35+
36+
/// <summary>
37+
/// Lists all of the available Microsoft.NetApp Rest API operations
38+
/// </summary>
39+
/// <remarks>
40+
/// Lists all of the available Microsoft.NetApp Rest API operations
41+
/// </remarks>
42+
/// <param name='nextPageLink'>
43+
/// The NextLink from the previous successful call to List operation.
44+
/// </param>
45+
/// <param name='customHeaders'>
46+
/// The headers that will be added to request.
47+
/// </param>
48+
/// <param name='cancellationToken'>
49+
/// The cancellation token.
50+
/// </param>
51+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
52+
/// Thrown when the operation returned an invalid status code
53+
/// </exception>
54+
/// <exception cref="Microsoft.Rest.SerializationException">
55+
/// Thrown when unable to deserialize the response
56+
/// </exception>
57+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Operation>>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
3558

3659
}
3760
}

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

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,23 @@ public AccountProperties()
3636
/// <param name="disableShowmount">Shows the status of disableShowmount for all volumes under the
3737
/// subscription, null equals false
3838
/// </param>
39-
public AccountProperties(string provisioningState = default(string), System.Collections.Generic.IList<ActiveDirectory> activeDirectories = default(System.Collections.Generic.IList<ActiveDirectory>), AccountEncryption encryption = default(AccountEncryption), bool? disableShowmount = default(bool?))
39+
40+
/// <param name="nfsV4IdDomain">Domain for NFSv4 user ID mapping. This property will be set for all NetApp
41+
/// accounts in the subscription and region and only affect non ldap NFSv4
42+
/// volumes.
43+
/// </param>
44+
45+
/// <param name="multiAdStatus">MultiAD Status for the account
46+
/// Possible values include: &#39;Disabled&#39;, &#39;Enabled&#39;</param>
47+
public AccountProperties(string provisioningState = default(string), System.Collections.Generic.IList<ActiveDirectory> activeDirectories = default(System.Collections.Generic.IList<ActiveDirectory>), AccountEncryption encryption = default(AccountEncryption), bool? disableShowmount = default(bool?), string nfsV4IdDomain = default(string), string multiAdStatus = default(string))
4048

4149
{
4250
this.ProvisioningState = provisioningState;
4351
this.ActiveDirectories = activeDirectories;
4452
this.Encryption = encryption;
4553
this.DisableShowmount = disableShowmount;
54+
this.NfsV4IdDomain = nfsV4IdDomain;
55+
this.MultiAdStatus = multiAdStatus;
4656
CustomInit();
4757
}
4858

@@ -76,6 +86,20 @@ public AccountProperties()
7686
/// </summary>
7787
[Newtonsoft.Json.JsonProperty(PropertyName = "disableShowmount")]
7888
public bool? DisableShowmount {get; private set; }
89+
90+
/// <summary>
91+
/// Gets or sets domain for NFSv4 user ID mapping. This property will be set
92+
/// for all NetApp accounts in the subscription and region and only affect non
93+
/// ldap NFSv4 volumes.
94+
/// </summary>
95+
[Newtonsoft.Json.JsonProperty(PropertyName = "nfsV4IDDomain")]
96+
public string NfsV4IdDomain {get; set; }
97+
98+
/// <summary>
99+
/// Gets multiAD Status for the account Possible values include: &#39;Disabled&#39;, &#39;Enabled&#39;
100+
/// </summary>
101+
[Newtonsoft.Json.JsonProperty(PropertyName = "multiAdStatus")]
102+
public string MultiAdStatus {get; private set; }
79103
/// <summary>
80104
/// Validate the object.
81105
/// </summary>
@@ -99,6 +123,18 @@ public virtual void Validate()
99123
{
100124
this.Encryption.Validate();
101125
}
126+
if (this.NfsV4IdDomain != null)
127+
{
128+
if (this.NfsV4IdDomain.Length > 255)
129+
{
130+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "NfsV4IdDomain", 255);
131+
}
132+
if (!System.Text.RegularExpressions.Regex.IsMatch(this.NfsV4IdDomain, "^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$"))
133+
{
134+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "NfsV4IdDomain", "^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$");
135+
}
136+
}
137+
102138
}
103139
}
104140
}

0 commit comments

Comments
 (0)