Skip to content

Commit

Permalink
Updating virtual network link new property ResolutionPolicy (#26368)
Browse files Browse the repository at this point in the history
* Updating virtual network link powershell using autorest

* Deleting auto generated cmdlets

* Updating vnet link new property

* Adding tests and updating ChangeLog.md

---------

Co-authored-by: Manzi Tian <[email protected]>
  • Loading branch information
madgetian and Manzi Tian authored Oct 23, 2024
1 parent 2d35977 commit ea113e5
Show file tree
Hide file tree
Showing 75 changed files with 27,206 additions and 11,616 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
// 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.PrivateDns
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;

/// <summary>
/// The Private DNS Management Client.
/// </summary>
public partial interface IPrivateDnsManagementClient : System.IDisposable
{
/// <summary>
/// The base URI of the service.
/// </summary>
System.Uri BaseUri { get; set; }

/// <summary>
/// Gets or sets json serialization settings.
/// </summary>
Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; }

/// <summary>
/// Gets or sets json deserialization settings.
/// </summary>
Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; }

/// <summary>
/// Credentials needed for the client to connect to Azure.
/// </summary>
Microsoft.Rest.ServiceClientCredentials Credentials { get;}


/// <summary>
/// The API version to use for this operation.
/// </summary>
string ApiVersion { get;}


/// <summary>
/// Gets subscription credentials which uniquely identify Microsoft Azure
/// subscription. The subscription ID forms part of the URI for every service
/// call.
/// </summary>
string SubscriptionId { get; set;}


/// <summary>
/// The preferred language for the response.
/// </summary>
string AcceptLanguage { get; set;}


/// <summary>
/// The retry timeout in seconds for Long Running Operations. Default
/// /// value is 30.
/// </summary>
int? LongRunningOperationRetryTimeout { get; set;}


/// <summary>
/// Whether a unique x-ms-client-request-id should be generated. When
/// /// set to true a unique x-ms-client-request-id value is generated and
/// /// included in each request. Default is true.
/// </summary>
bool? GenerateClientRequestId { get; set;}


/// <summary>
/// Gets the IPrivateZonesOperations
/// </summary>
IPrivateZonesOperations PrivateZones { get; }

/// <summary>
/// Gets the IVirtualNetworkLinksOperations
/// </summary>
IVirtualNetworkLinksOperations VirtualNetworkLinks { get; }

/// <summary>
/// Gets the IRecordSetsOperations
/// </summary>
IRecordSetsOperations RecordSets { get; }

}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
// 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.PrivateDns
{
using Microsoft.Rest.Azure;
using Models;

/// <summary>
/// RecordSetsOperations operations.
/// </summary>
public partial interface IRecordSetsOperations
{
/// <summary>
/// Creates or updates a record set within a Private DNS zone.
/// </summary>
/// <remarks>
/// Creates or updates a record set within a Private DNS zone.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='privateZoneName'>
/// The name of the Private DNS zone (without a terminating dot).
/// </param>
/// <param name='recordType'>
/// The type of DNS record in this record set. Record sets of type SOA can be
/// updated but not created (they are created when the Private DNS zone is
/// created).
/// </param>
/// <param name='relativeRecordSetName'>
/// The name of the record set, relative to the name of the zone.
/// </param>
/// <param name='ifMatch'>
/// The ETag of the record set. Omit this value to always overwrite the current
/// record set. Specify the last-seen ETag value to prevent accidentally
/// overwriting any concurrent changes.
/// </param>
/// <param name='ifNoneMatch'>
/// Set to &#39;*&#39; to allow a new record set to be created, but to prevent updating
/// an existing record set. Other values will be ignored.
/// </param>
/// <param name='parameters'>
/// Parameters supplied to the CreateOrUpdate operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<RecordSet>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName, RecordSet parameters, string ifMatch = default(string), string ifNoneMatch = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Updates a record set within a Private DNS zone.
/// </summary>
/// <remarks>
/// Updates a record set within a Private DNS zone.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='privateZoneName'>
/// The name of the Private DNS zone (without a terminating dot).
/// </param>
/// <param name='recordType'>
/// The type of DNS record in this record set.
/// </param>
/// <param name='relativeRecordSetName'>
/// The name of the record set, relative to the name of the zone.
/// </param>
/// <param name='ifMatch'>
/// The ETag of the record set. Omit this value to always overwrite the current
/// record set. Specify the last-seen ETag value to prevent accidentally
/// overwriting concurrent changes.
/// </param>
/// <param name='parameters'>
/// Parameters supplied to the Update operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<RecordSet>> UpdateWithHttpMessagesAsync(string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName, RecordSet parameters, string ifMatch = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Deletes a record set from a Private DNS zone. This operation cannot be
/// undone.
/// </summary>
/// <remarks>
/// Deletes a record set from a Private DNS zone. This operation cannot be
/// undone.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='privateZoneName'>
/// The name of the Private DNS zone (without a terminating dot).
/// </param>
/// <param name='recordType'>
/// The type of DNS record in this record set. Record sets of type SOA cannot
/// be deleted (they are deleted when the Private DNS zone is deleted).
/// </param>
/// <param name='relativeRecordSetName'>
/// The name of the record set, relative to the name of the zone.
/// </param>
/// <param name='ifMatch'>
/// The ETag of the record set. Omit this value to always delete the current
/// record set. Specify the last-seen ETag value to prevent accidentally
/// deleting any concurrent changes.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName, string ifMatch = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Gets a record set.
/// </summary>
/// <remarks>
/// Gets a record set.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='privateZoneName'>
/// The name of the Private DNS zone (without a terminating dot).
/// </param>
/// <param name='recordType'>
/// The type of DNS record in this record set.
/// </param>
/// <param name='relativeRecordSetName'>
/// The name of the record set, relative to the name of the zone.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<RecordSet>> GetWithHttpMessagesAsync(string resourceGroupName, string privateZoneName, RecordType recordType, string relativeRecordSetName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Lists the record sets of a specified type in a Private DNS zone.
/// </summary>
/// <remarks>
/// Lists the record sets of a specified type in a Private DNS zone.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='privateZoneName'>
/// The name of the Private DNS zone (without a terminating dot).
/// </param>
/// <param name='recordType'>
/// The type of record sets to enumerate.
/// </param>
/// <param name='top'>
/// The maximum number of record sets to return. If not specified, returns up
/// to 100 record sets.
/// </param>
/// <param name='recordsetnamesuffix'>
/// The suffix label of the record set name to be used to filter the record set
/// enumeration. If this parameter is specified, the returned enumeration will
/// only contain records that end with &#34;.&lt;recordsetnamesuffix&gt;&#34;.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<RecordSet>>> ListByTypeWithHttpMessagesAsync(string resourceGroupName, string privateZoneName, RecordType recordType, int? top = default(int?), string recordsetnamesuffix = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Lists all record sets in a Private DNS zone.
/// </summary>
/// <remarks>
/// Lists all record sets in a Private DNS zone.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='privateZoneName'>
/// The name of the Private DNS zone (without a terminating dot).
/// </param>
/// <param name='top'>
/// The maximum number of record sets to return. If not specified, returns up
/// to 100 record sets.
/// </param>
/// <param name='recordsetnamesuffix'>
/// The suffix label of the record set name to be used to filter the record set
/// enumeration. If this parameter is specified, the returned enumeration will
/// only contain records that end with &#34;.&lt;recordsetnamesuffix&gt;&#34;.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<RecordSet>>> ListWithHttpMessagesAsync(string resourceGroupName, string privateZoneName, int? top = default(int?), string recordsetnamesuffix = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Lists the record sets of a specified type in a Private DNS zone.
/// </summary>
/// <remarks>
/// Lists the record sets of a specified type in a Private DNS zone.
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<RecordSet>>> ListByTypeNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

/// <summary>
/// Lists all record sets in a Private DNS zone.
/// </summary>
/// <remarks>
/// Lists all record sets in a Private DNS zone.
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<RecordSet>>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));

}
}
Loading

0 comments on commit ea113e5

Please sign in to comment.