Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR Microsoft.Azure.Management.KeyVault] Remove management plane changes from data plane PR #493

Open
wants to merge 1 commit into
base: sdkAutomation/Microsoft.Azure.Management.KeyVault
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ public partial interface IKeyVaultManagementClient : System.IDisposable
/// </summary>
IVaultsOperations Vaults { get; }

/// <summary>
/// Gets the IPrivateEndpointConnectionsOperations.
/// </summary>
IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; }

/// <summary>
/// Gets the IPrivateLinkResourcesOperations.
/// </summary>
IPrivateLinkResourcesOperations PrivateLinkResources { get; }

/// <summary>
/// Gets the IOperations.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.KeyVault
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// PrivateEndpointConnectionsOperations operations.
/// </summary>
public partial interface IPrivateEndpointConnectionsOperations
{
/// <summary>
/// Gets the specified private endpoint connection associated with the
/// key vault.
/// </summary>
/// <param name='resourceGroupName'>
/// Name of the resource group that contains the key vault.
/// </param>
/// <param name='vaultName'>
/// The name of the key vault.
/// </param>
/// <param name='privateEndpointConnectionName'>
/// Name of the private endpoint connection associated with the key
/// vault.
/// </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>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<PrivateEndpointConnection>> GetWithHttpMessagesAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updates the specified private endpoint connection associated with
/// the key vault.
/// </summary>
/// <param name='resourceGroupName'>
/// Name of the resource group that contains the key vault.
/// </param>
/// <param name='vaultName'>
/// The name of the key vault.
/// </param>
/// <param name='privateEndpointConnectionName'>
/// Name of the private endpoint connection associated with the key
/// vault.
/// </param>
/// <param name='properties'>
/// The intended state of private endpoint connection.
/// </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>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<PrivateEndpointConnection,PrivateEndpointConnectionsPutHeaders>> PutWithHttpMessagesAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, PrivateEndpointConnection properties, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes the specified private endpoint connection associated with
/// the key vault.
/// </summary>
/// <param name='resourceGroupName'>
/// Name of the resource group that contains the key vault.
/// </param>
/// <param name='vaultName'>
/// The name of the key vault.
/// </param>
/// <param name='privateEndpointConnectionName'>
/// Name of the private endpoint connection associated with the key
/// vault.
/// </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>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<PrivateEndpointConnection,PrivateEndpointConnectionsDeleteHeaders>> DeleteWithHttpMessagesAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes the specified private endpoint connection associated with
/// the key vault.
/// </summary>
/// <param name='resourceGroupName'>
/// Name of the resource group that contains the key vault.
/// </param>
/// <param name='vaultName'>
/// The name of the key vault.
/// </param>
/// <param name='privateEndpointConnectionName'>
/// Name of the private endpoint connection associated with the key
/// vault.
/// </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>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<PrivateEndpointConnection,PrivateEndpointConnectionsDeleteHeaders>> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.KeyVault
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// PrivateLinkResourcesOperations operations.
/// </summary>
public partial interface IPrivateLinkResourcesOperations
{
/// <summary>
/// Gets the private link resources supported for the key vault.
/// </summary>
/// <param name='resourceGroupName'>
/// Name of the resource group that contains the key vault.
/// </param>
/// <param name='vaultName'>
/// The name of the key vault.
/// </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>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<PrivateLinkResourceListResult>> ListByVaultWithHttpMessagesAsync(string resourceGroupName, string vaultName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ public partial class KeyVaultManagementClient : ServiceClient<KeyVaultManagement
/// </summary>
public virtual IVaultsOperations Vaults { get; private set; }

/// <summary>
/// Gets the IPrivateEndpointConnectionsOperations.
/// </summary>
public virtual IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; private set; }

/// <summary>
/// Gets the IPrivateLinkResourcesOperations.
/// </summary>
public virtual IPrivateLinkResourcesOperations PrivateLinkResources { get; private set; }

/// <summary>
/// Gets the IOperations.
/// </summary>
Expand Down Expand Up @@ -329,9 +339,11 @@ public KeyVaultManagementClient(System.Uri baseUri, ServiceClientCredentials cre
private void Initialize()
{
Vaults = new VaultsOperations(this);
PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this);
PrivateLinkResources = new PrivateLinkResourcesOperations(this);
Operations = new Operations(this);
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2018-02-14";
ApiVersion = "2019-09-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.KeyVault.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Private endpoint object properties.
/// </summary>
public partial class PrivateEndpoint
{
/// <summary>
/// Initializes a new instance of the PrivateEndpoint class.
/// </summary>
public PrivateEndpoint()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the PrivateEndpoint class.
/// </summary>
/// <param name="id">Full identifier of the private endpoint
/// resource.</param>
public PrivateEndpoint(string id = default(string))
{
Id = id;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets full identifier of the private endpoint resource.
/// </summary>
[JsonProperty(PropertyName = "id")]
public string Id { get; private set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.KeyVault.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Private endpoint connection resource.
/// </summary>
[Rest.Serialization.JsonTransformation]
public partial class PrivateEndpointConnection : IResource
{
/// <summary>
/// Initializes a new instance of the PrivateEndpointConnection class.
/// </summary>
public PrivateEndpointConnection()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the PrivateEndpointConnection class.
/// </summary>
/// <param name="privateEndpoint">Properties of the private endpoint
/// object.</param>
/// <param name="privateLinkServiceConnectionState">Approval state of
/// the private link connection.</param>
/// <param name="provisioningState">Provisioning state of the private
/// endpoint connection. Possible values include: 'Succeeded',
/// 'Creating', 'Updating', 'Deleting', 'Failed',
/// 'Disconnected'</param>
public PrivateEndpointConnection(PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), string provisioningState = default(string))
{
PrivateEndpoint = privateEndpoint;
PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
ProvisioningState = provisioningState;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets properties of the private endpoint object.
/// </summary>
[JsonProperty(PropertyName = "properties.privateEndpoint")]
public PrivateEndpoint PrivateEndpoint { get; set; }

/// <summary>
/// Gets or sets approval state of the private link connection.
/// </summary>
[JsonProperty(PropertyName = "properties.privateLinkServiceConnectionState")]
public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; }

/// <summary>
/// Gets or sets provisioning state of the private endpoint connection.
/// Possible values include: 'Succeeded', 'Creating', 'Updating',
/// 'Deleting', 'Failed', 'Disconnected'
/// </summary>
[JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState { get; set; }

}
}
Loading