Skip to content

Commit 0f31606

Browse files
authored
[NetAppFiles] bump to 2025-03-01 (#28042)
1 parent 6448588 commit 0f31606

File tree

48 files changed

+38820
-26704
lines changed

Some content is hidden

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

48 files changed

+38820
-26704
lines changed

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public partial interface INetAppResourceQuotaLimitsOperations
3434
/// <exception cref="Microsoft.Rest.SerializationException">
3535
/// Thrown when unable to deserialize the response
3636
/// </exception>
37-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IEnumerable<SubscriptionQuotaItem>>> ListWithHttpMessagesAsync(string location, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
37+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<SubscriptionQuotaItem>>> ListWithHttpMessagesAsync(string location, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
3838

3939
/// <summary>
4040
/// Get the default and current subscription quota limit
@@ -62,5 +62,28 @@ public partial interface INetAppResourceQuotaLimitsOperations
6262
/// </exception>
6363
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<SubscriptionQuotaItem>> GetWithHttpMessagesAsync(string location, string quotaLimitName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
6464

65+
/// <summary>
66+
/// Get the default and current limits for quotas
67+
/// </summary>
68+
/// <remarks>
69+
/// Get the default and current limits for quotas
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<SubscriptionQuotaItem>>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
87+
6588
}
6689
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ public ReplicationObject()
7373
public string ReplicationId {get; private set; }
7474

7575
/// <summary>
76-
/// Gets or sets indicates whether the local volume is the source or
77-
/// destination for the Volume Replication Possible values include: &#39;src&#39;, &#39;dst&#39;
76+
/// Gets indicates whether the local volume is the source or destination for
77+
/// the Volume Replication Possible values include: &#39;src&#39;, &#39;dst&#39;
7878
/// </summary>
7979
[Newtonsoft.Json.JsonProperty(PropertyName = "endpointType")]
80-
public string EndpointType {get; set; }
80+
public string EndpointType {get; private set; }
8181

8282
/// <summary>
8383
/// Gets or sets schedule Possible values include: &#39;_10minutely&#39;, &#39;hourly&#39;, &#39;daily&#39;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ private void Initialize()
394394
this.BackupsUnderVolume = new BackupsUnderVolumeOperations(this);
395395
this.BackupsUnderAccount = new BackupsUnderAccountOperations(this);
396396
this.BaseUri = new System.Uri("https://management.azure.com");
397-
this.ApiVersion = "2025-01-01";
397+
this.ApiVersion = "2025-03-01";
398398
this.AcceptLanguage = "en-US";
399399
this.LongRunningOperationRetryTimeout = 30;
400400
this.GenerateClientRequestId = true;

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

Lines changed: 187 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ internal NetAppResourceQuotaLimitsOperations (NetAppManagementClient client)
6565
/// <return>
6666
/// A response object containing the response body and response headers.
6767
/// </return>
68-
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IEnumerable<SubscriptionQuotaItem>>> ListWithHttpMessagesAsync(string location, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
68+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<SubscriptionQuotaItem>>> ListWithHttpMessagesAsync(string location, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
6969
{
7070

7171

@@ -205,7 +205,7 @@ internal NetAppResourceQuotaLimitsOperations (NetAppManagementClient client)
205205
throw ex;
206206
}
207207
// Create Result
208-
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IEnumerable<SubscriptionQuotaItem>>();
208+
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<SubscriptionQuotaItem>>();
209209
_result.Request = _httpRequest;
210210
_result.Response = _httpResponse;
211211

@@ -219,7 +219,7 @@ internal NetAppResourceQuotaLimitsOperations (NetAppManagementClient client)
219219
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
220220
try
221221
{
222-
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page1<SubscriptionQuotaItem>>(_responseContent, this.Client.DeserializationSettings);
222+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<SubscriptionQuotaItem>>(_responseContent, this.Client.DeserializationSettings);
223223
}
224224
catch (Newtonsoft.Json.JsonException ex)
225225
{
@@ -298,7 +298,13 @@ internal NetAppResourceQuotaLimitsOperations (NetAppManagementClient client)
298298
{
299299
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "quotaLimitName");
300300
}
301-
301+
if (quotaLimitName != null)
302+
{
303+
if (!System.Text.RegularExpressions.Regex.IsMatch(quotaLimitName, "^[a-zA-Z][a-zA-Z0-9\\-]{0,62}$"))
304+
{
305+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "quotaLimitName", "^[a-zA-Z][a-zA-Z0-9\\-]{0,62}$");
306+
}
307+
}
302308
if (this.Client.ApiVersion == null)
303309
{
304310
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -455,6 +461,183 @@ internal NetAppResourceQuotaLimitsOperations (NetAppManagementClient client)
455461

456462

457463

464+
}
465+
/// <summary>
466+
/// Get the default and current limits for quotas
467+
/// </summary>
468+
/// <param name='nextPageLink'>
469+
/// The NextLink from the previous successful call to List operation.
470+
/// </param>
471+
/// <param name='customHeaders'>
472+
/// Headers that will be added to request.
473+
/// </param>
474+
/// <param name='cancellationToken'>
475+
/// The cancellation token.
476+
/// </param>
477+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
478+
/// Thrown when the operation returned an invalid status code
479+
/// </exception>
480+
/// <exception cref="Microsoft.Rest.SerializationException">
481+
/// Thrown when unable to deserialize the response
482+
/// </exception>
483+
/// <exception cref="Microsoft.Rest.ValidationException">
484+
/// Thrown when a required parameter is null
485+
/// </exception>
486+
/// <exception cref="System.ArgumentNullException">
487+
/// Thrown when a required parameter is null
488+
/// </exception>
489+
/// <return>
490+
/// A response object containing the response body and response headers.
491+
/// </return>
492+
public async System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<SubscriptionQuotaItem>>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
493+
{
494+
495+
if (nextPageLink == null)
496+
{
497+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink");
498+
}
499+
// Tracing
500+
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
501+
string _invocationId = null;
502+
if (_shouldTrace)
503+
{
504+
_invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString();
505+
System.Collections.Generic.Dictionary<string, object> tracingParameters = new System.Collections.Generic.Dictionary<string, object>();
506+
tracingParameters.Add("nextPageLink", nextPageLink);
507+
508+
509+
tracingParameters.Add("cancellationToken", cancellationToken);
510+
Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters);
511+
}
512+
// Construct URL
513+
string _url = "{nextLink}";
514+
_url = _url.Replace("{nextLink}", nextPageLink);
515+
516+
System.Collections.Generic.List<string> _queryParameters = new System.Collections.Generic.List<string>();
517+
if (_queryParameters.Count > 0)
518+
{
519+
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
520+
}
521+
// Create HTTP transport objects
522+
var _httpRequest = new System.Net.Http.HttpRequestMessage();
523+
System.Net.Http.HttpResponseMessage _httpResponse = null;
524+
_httpRequest.Method = new System.Net.Http.HttpMethod("GET");
525+
_httpRequest.RequestUri = new System.Uri(_url);
526+
// Set Headers
527+
if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value)
528+
{
529+
_httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
530+
}
531+
if (this.Client.AcceptLanguage != null)
532+
{
533+
if (_httpRequest.Headers.Contains("accept-language"))
534+
{
535+
_httpRequest.Headers.Remove("accept-language");
536+
}
537+
_httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage);
538+
}
539+
540+
if (customHeaders != null)
541+
{
542+
foreach(var _header in customHeaders)
543+
{
544+
if (_httpRequest.Headers.Contains(_header.Key))
545+
{
546+
_httpRequest.Headers.Remove(_header.Key);
547+
}
548+
_httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
549+
}
550+
}
551+
// Serialize Request
552+
string _requestContent = null;
553+
// Set Credentials
554+
if (this.Client.Credentials != null)
555+
{
556+
cancellationToken.ThrowIfCancellationRequested();
557+
await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
558+
}
559+
// Send Request
560+
if (_shouldTrace)
561+
{
562+
Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
563+
}
564+
cancellationToken.ThrowIfCancellationRequested();
565+
_httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
566+
if (_shouldTrace)
567+
{
568+
Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
569+
}
570+
571+
System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
572+
cancellationToken.ThrowIfCancellationRequested();
573+
string _responseContent = null;
574+
575+
if ((int)_statusCode != 200)
576+
{
577+
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
578+
try
579+
{
580+
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
581+
ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<ErrorResponse>(_responseContent, this.Client.DeserializationSettings);
582+
if (_errorBody != null)
583+
{
584+
ex.Body = _errorBody;
585+
}
586+
}
587+
catch (Newtonsoft.Json.JsonException)
588+
{
589+
// Ignore the exception
590+
}
591+
ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent);
592+
ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent);
593+
if (_shouldTrace)
594+
{
595+
Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex);
596+
}
597+
_httpRequest.Dispose();
598+
if (_httpResponse != null)
599+
{
600+
_httpResponse.Dispose();
601+
}
602+
throw ex;
603+
}
604+
// Create Result
605+
var _result = new Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<SubscriptionQuotaItem>>();
606+
_result.Request = _httpRequest;
607+
_result.Response = _httpResponse;
608+
609+
if (_httpResponse.Headers.Contains("x-ms-request-id"))
610+
{
611+
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
612+
}
613+
// Deserialize Response
614+
if ((int)_statusCode == 200)
615+
{
616+
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
617+
try
618+
{
619+
_result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<SubscriptionQuotaItem>>(_responseContent, this.Client.DeserializationSettings);
620+
}
621+
catch (Newtonsoft.Json.JsonException ex)
622+
{
623+
_httpRequest.Dispose();
624+
if (_httpResponse != null)
625+
{
626+
_httpResponse.Dispose();
627+
}
628+
throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex);
629+
}
630+
}
631+
if (_shouldTrace)
632+
{
633+
Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result);
634+
}
635+
return _result;
636+
637+
638+
639+
640+
458641
}
459642
}
460643
}

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

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static partial class NetAppResourceQuotaLimitsOperationsExtensions
2121
/// <param name='location'>
2222
/// The name of the Azure region.
2323
/// </param>
24-
public static System.Collections.Generic.IEnumerable<SubscriptionQuotaItem> List(this INetAppResourceQuotaLimitsOperations operations, string location)
24+
public static Microsoft.Rest.Azure.IPage<SubscriptionQuotaItem> List(this INetAppResourceQuotaLimitsOperations operations, string location)
2525
{
2626
return ((INetAppResourceQuotaLimitsOperations)operations).ListAsync(location).GetAwaiter().GetResult();
2727
}
@@ -38,7 +38,7 @@ public static System.Collections.Generic.IEnumerable<SubscriptionQuotaItem> List
3838
/// <param name='cancellationToken'>
3939
/// The cancellation token.
4040
/// </param>
41-
public static async System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<SubscriptionQuotaItem>> ListAsync(this INetAppResourceQuotaLimitsOperations operations, string location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
41+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<SubscriptionQuotaItem>> ListAsync(this INetAppResourceQuotaLimitsOperations operations, string location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
4242
{
4343
using (var _result = await operations.ListWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false))
4444
{
@@ -84,5 +84,38 @@ public static SubscriptionQuotaItem Get(this INetAppResourceQuotaLimitsOperation
8484
return _result.Body;
8585
}
8686
}
87+
/// <summary>
88+
/// Get the default and current limits for quotas
89+
/// </summary>
90+
/// <param name='operations'>
91+
/// The operations group for this extension method.
92+
/// </param>
93+
/// <param name='nextPageLink'>
94+
/// The NextLink from the previous successful call to List operation.
95+
/// </param>
96+
public static Microsoft.Rest.Azure.IPage<SubscriptionQuotaItem> ListNext(this INetAppResourceQuotaLimitsOperations operations, string nextPageLink)
97+
{
98+
return ((INetAppResourceQuotaLimitsOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult();
99+
}
100+
101+
/// <summary>
102+
/// Get the default and current limits for quotas
103+
/// </summary>
104+
/// <param name='operations'>
105+
/// The operations group for this extension method.
106+
/// </param>
107+
/// <param name='nextPageLink'>
108+
/// The NextLink from the previous successful call to List operation.
109+
/// </param>
110+
/// <param name='cancellationToken'>
111+
/// The cancellation token.
112+
/// </param>
113+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<SubscriptionQuotaItem>> ListNextAsync(this INetAppResourceQuotaLimitsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
114+
{
115+
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
116+
{
117+
return _result.Body;
118+
}
119+
}
87120
}
88121
}

src/NetAppFiles/NetAppFiles.Management.Sdk/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ description: Microsoft NetApp Files Azure Resource Provider specification
2525
2626
###
2727
``` yaml
28-
commit: 70b2baed508566213ad07b69b08ca307de5275fb
29-
input-file:
30-
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/netapp/resource-manager/Microsoft.NetApp/stable/2025-01-01/netapp.json
28+
commit: 08531e40622d483b956933b3adb5a85c6fbbf6dc
29+
input-file:
30+
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/netapp/resource-manager/Microsoft.NetApp/stable/2025-03-01/netapp.json
3131
output-folder: Generated
3232
namespace: Microsoft.Azure.Management.NetApp
3333

0 commit comments

Comments
 (0)