diff --git a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/CdnPeeringPrefixesOperations.cs b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/CdnPeeringPrefixesOperations.cs new file mode 100644 index 000000000000..2b465f1cdcf9 --- /dev/null +++ b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/CdnPeeringPrefixesOperations.cs @@ -0,0 +1,407 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Peering +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// CdnPeeringPrefixesOperations operations. + /// + internal partial class CdnPeeringPrefixesOperations : IServiceOperations, ICdnPeeringPrefixesOperations + { + /// + /// Initializes a new instance of the CdnPeeringPrefixesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal CdnPeeringPrefixesOperations(PeeringManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the PeeringManagementClient + /// + public PeeringManagementClient Client { get; private set; } + + /// + /// Lists all of the advertised prefixes for the specified peering location + /// + /// + /// The peering location. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string peeringLocation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (peeringLocation == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "peeringLocation"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("peeringLocation", peeringLocation); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Peering/cdnPeeringPrefixes").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (peeringLocation != null) + { + _queryParameters.Add(string.Format("peeringLocation={0}", System.Uri.EscapeDataString(peeringLocation))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all of the advertised prefixes for the specified peering location + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/CdnPeeringPrefixesOperationsExtensions.cs b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/CdnPeeringPrefixesOperationsExtensions.cs new file mode 100644 index 000000000000..cdc2bddaeae6 --- /dev/null +++ b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/CdnPeeringPrefixesOperationsExtensions.cs @@ -0,0 +1,93 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Peering +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for CdnPeeringPrefixesOperations. + /// + public static partial class CdnPeeringPrefixesOperationsExtensions + { + /// + /// Lists all of the advertised prefixes for the specified peering location + /// + /// + /// The operations group for this extension method. + /// + /// + /// The peering location. + /// + public static IPage List(this ICdnPeeringPrefixesOperations operations, string peeringLocation) + { + return operations.ListAsync(peeringLocation).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the advertised prefixes for the specified peering location + /// + /// + /// The operations group for this extension method. + /// + /// + /// The peering location. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ICdnPeeringPrefixesOperations operations, string peeringLocation, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(peeringLocation, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all of the advertised prefixes for the specified peering location + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this ICdnPeeringPrefixesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the advertised prefixes for the specified peering location + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this ICdnPeeringPrefixesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/ICdnPeeringPrefixesOperations.cs b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/ICdnPeeringPrefixesOperations.cs new file mode 100644 index 000000000000..0833aad9d19e --- /dev/null +++ b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/ICdnPeeringPrefixesOperations.cs @@ -0,0 +1,73 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Peering +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// CdnPeeringPrefixesOperations operations. + /// + public partial interface ICdnPeeringPrefixesOperations + { + /// + /// Lists all of the advertised prefixes for the specified peering + /// location + /// + /// + /// The peering location. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string peeringLocation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all of the advertised prefixes for the specified peering + /// location + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/IPeeringManagementClient.cs b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/IPeeringManagementClient.cs index 3173c1e01ce7..0be46d5566a8 100644 --- a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/IPeeringManagementClient.cs +++ b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/IPeeringManagementClient.cs @@ -73,6 +73,11 @@ public partial interface IPeeringManagementClient : System.IDisposable bool? GenerateClientRequestId { get; set; } + /// + /// Gets the ICdnPeeringPrefixesOperations. + /// + ICdnPeeringPrefixesOperations CdnPeeringPrefixes { get; } + /// /// Gets the ILegacyPeeringsOperations. /// diff --git a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/Models/CdnPeeringPrefix.cs b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/Models/CdnPeeringPrefix.cs new file mode 100644 index 000000000000..c1edf1911e23 --- /dev/null +++ b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/Models/CdnPeeringPrefix.cs @@ -0,0 +1,92 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Peering.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The CDN peering prefix + /// + [Rest.Serialization.JsonTransformation] + public partial class CdnPeeringPrefix : Resource + { + /// + /// Initializes a new instance of the CdnPeeringPrefix class. + /// + public CdnPeeringPrefix() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CdnPeeringPrefix class. + /// + /// The name of the resource. + /// The ID of the resource. + /// The type of the resource. + /// The prefix. + /// The Azure region. + /// The Azure service. + /// The flag that indicates whether or + /// not this is the primary region. + /// The BGP Community + public CdnPeeringPrefix(string name = default(string), string id = default(string), string type = default(string), string prefix = default(string), string azureRegion = default(string), string azureService = default(string), bool? isPrimaryRegion = default(bool?), string bgpCommunity = default(string)) + : base(name, id, type) + { + Prefix = prefix; + AzureRegion = azureRegion; + AzureService = azureService; + IsPrimaryRegion = isPrimaryRegion; + BgpCommunity = bgpCommunity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the prefix. + /// + [JsonProperty(PropertyName = "properties.prefix")] + public string Prefix { get; private set; } + + /// + /// Gets the Azure region. + /// + [JsonProperty(PropertyName = "properties.azureRegion")] + public string AzureRegion { get; private set; } + + /// + /// Gets the Azure service. + /// + [JsonProperty(PropertyName = "properties.azureService")] + public string AzureService { get; private set; } + + /// + /// Gets the flag that indicates whether or not this is the primary + /// region. + /// + [JsonProperty(PropertyName = "properties.isPrimaryRegion")] + public bool? IsPrimaryRegion { get; private set; } + + /// + /// Gets the BGP Community + /// + [JsonProperty(PropertyName = "properties.bgpCommunity")] + public string BgpCommunity { get; private set; } + + } +} diff --git a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/Models/DirectConnection.cs b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/Models/DirectConnection.cs index 87bf4cc2cc1d..26cffb03feea 100644 --- a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/Models/DirectConnection.cs +++ b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/Models/DirectConnection.cs @@ -38,6 +38,8 @@ public DirectConnection() /// 'Microsoft', 'Peer' /// The flag that indicates whether /// or not the connection is used for peering service. + /// The ID used within Microsoft's + /// peering provisioning system to track the connection /// The PeeringDB.com ID of the /// facility at which the connection has to be set up. /// The state of the connection. Possible @@ -50,12 +52,13 @@ public DirectConnection() /// the connection. /// The error message related to the /// connection state, if any. - public DirectConnection(int? bandwidthInMbps = default(int?), int? provisionedBandwidthInMbps = default(int?), string sessionAddressProvider = default(string), bool? useForPeeringService = default(bool?), int? peeringDBFacilityId = default(int?), string connectionState = default(string), BgpSession bgpSession = default(BgpSession), string connectionIdentifier = default(string), string errorMessage = default(string)) + public DirectConnection(int? bandwidthInMbps = default(int?), int? provisionedBandwidthInMbps = default(int?), string sessionAddressProvider = default(string), bool? useForPeeringService = default(bool?), string microsoftTrackingId = default(string), int? peeringDBFacilityId = default(int?), string connectionState = default(string), BgpSession bgpSession = default(BgpSession), string connectionIdentifier = default(string), string errorMessage = default(string)) { BandwidthInMbps = bandwidthInMbps; ProvisionedBandwidthInMbps = provisionedBandwidthInMbps; SessionAddressProvider = sessionAddressProvider; UseForPeeringService = useForPeeringService; + MicrosoftTrackingId = microsoftTrackingId; PeeringDBFacilityId = peeringDBFacilityId; ConnectionState = connectionState; BgpSession = bgpSession; @@ -95,6 +98,13 @@ public DirectConnection() [JsonProperty(PropertyName = "useForPeeringService")] public bool? UseForPeeringService { get; set; } + /// + /// Gets the ID used within Microsoft's peering provisioning system to + /// track the connection + /// + [JsonProperty(PropertyName = "microsoftTrackingId")] + public string MicrosoftTrackingId { get; private set; } + /// /// Gets or sets the PeeringDB.com ID of the facility at which the /// connection has to be set up. diff --git a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/PeeringManagementClient.cs b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/PeeringManagementClient.cs index 10f6b0b6c775..a2754a94f659 100644 --- a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/PeeringManagementClient.cs +++ b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/PeeringManagementClient.cs @@ -76,6 +76,11 @@ public partial class PeeringManagementClient : ServiceClient public bool? GenerateClientRequestId { get; set; } + /// + /// Gets the ICdnPeeringPrefixesOperations. + /// + public virtual ICdnPeeringPrefixesOperations CdnPeeringPrefixes { get; private set; } + /// /// Gets the ILegacyPeeringsOperations. /// @@ -382,6 +387,7 @@ public PeeringManagementClient(System.Uri baseUri, ServiceClientCredentials cred /// private void Initialize() { + CdnPeeringPrefixes = new CdnPeeringPrefixesOperations(this); LegacyPeerings = new LegacyPeeringsOperations(this); Operations = new Operations(this); PeerAsns = new PeerAsnsOperations(this); @@ -396,7 +402,7 @@ private void Initialize() PeeringServiceProviders = new PeeringServiceProvidersOperations(this); PeeringServices = new PeeringServicesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2020-04-01"; + ApiVersion = "2020-10-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/SdkInfo_PeeringManagementClient.cs b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/SdkInfo_PeeringManagementClient.cs index 91dc56ee0d39..c6b718d92fc6 100644 --- a/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/SdkInfo_PeeringManagementClient.cs +++ b/sdk/peering/Microsoft.Azure.Management.Peering/src/Generated/SdkInfo_PeeringManagementClient.cs @@ -19,33 +19,23 @@ public static IEnumerable> ApiInfo_PeeringManageme { return new Tuple[] { - new Tuple("Peering", "CheckServiceProviderAvailability", "2020-04-01"), - new Tuple("Peering", "LegacyPeerings", "2020-04-01"), - new Tuple("Peering", "Operations", "2020-04-01"), - new Tuple("Peering", "PeerAsns", "2020-04-01"), - new Tuple("Peering", "PeeringLocations", "2020-04-01"), - new Tuple("Peering", "PeeringServiceCountries", "2020-04-01"), - new Tuple("Peering", "PeeringServiceLocations", "2020-04-01"), - new Tuple("Peering", "PeeringServiceProviders", "2020-04-01"), - new Tuple("Peering", "PeeringServices", "2020-04-01"), - new Tuple("Peering", "Peerings", "2020-04-01"), - new Tuple("Peering", "Prefixes", "2020-04-01"), - new Tuple("Peering", "ReceivedRoutes", "2020-04-01"), - new Tuple("Peering", "RegisteredAsns", "2020-04-01"), - new Tuple("Peering", "RegisteredPrefixes", "2020-04-01"), + new Tuple("Peering", "CdnPeeringPrefixes", "2020-10-01"), + new Tuple("Peering", "CheckServiceProviderAvailability", "2020-10-01"), + new Tuple("Peering", "LegacyPeerings", "2020-10-01"), + new Tuple("Peering", "Operations", "2020-10-01"), + new Tuple("Peering", "PeerAsns", "2020-10-01"), + new Tuple("Peering", "PeeringLocations", "2020-10-01"), + new Tuple("Peering", "PeeringServiceCountries", "2020-10-01"), + new Tuple("Peering", "PeeringServiceLocations", "2020-10-01"), + new Tuple("Peering", "PeeringServiceProviders", "2020-10-01"), + new Tuple("Peering", "PeeringServices", "2020-10-01"), + new Tuple("Peering", "Peerings", "2020-10-01"), + new Tuple("Peering", "Prefixes", "2020-10-01"), + new Tuple("Peering", "ReceivedRoutes", "2020-10-01"), + new Tuple("Peering", "RegisteredAsns", "2020-10-01"), + new Tuple("Peering", "RegisteredPrefixes", "2020-10-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/peering/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=E:\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "8b2e977ca30ce0d9b44e8f6b90d569c7a0334d59"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -