Skip to content

Commit 1e23930

Browse files
YanaXudingmeng-xue
andauthored
[KeyVault] Replace management SDK with auto generated C# code and bump API version to 2022-07-01 (Azure#19837)
* auto generate KeyVault track 1 sdk source code * bump KeyVault API version from 2021-06-01-preview to 2022-07-01 * remove unnecessary swagger APIs and update changelog * Update ChangeLog.md * record test case for KeyVault SDK API upgrade * remove providers.json from KeyVault SDK code * add a comment for directive * remove Customized from KeyVault SDK code * add Customized back Co-authored-by: Dingmeng Xue <dixue@microsoft.com>
1 parent 19c5a4b commit 1e23930

File tree

122 files changed

+30849
-10220
lines changed

Some content is hidden

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

122 files changed

+30849
-10220
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for
3+
// license information.
4+
5+
namespace Microsoft.Azure.Management.KeyVault.Models
6+
{
7+
/// <summary>
8+
/// A set of rules governing the network accessibility of a vault.
9+
/// </summary>
10+
public partial class NetworkRuleSet
11+
{
12+
public static readonly string BypassOptionAzureServices = "AzureServices";
13+
public static readonly string DefaultActionOptionAllow = "Allow";
14+
15+
/// <summary>
16+
/// An initialization method that performs custom operations like setting defaults
17+
/// </summary>
18+
partial void CustomInit()
19+
{
20+
Bypass = Bypass ?? NetworkRuleSet.BypassOptionAzureServices;
21+
DefaultAction = DefaultAction ?? NetworkRuleSet.DefaultActionOptionAllow;
22+
23+
// default values for properties IpRules and VirtualNetworkRules are 'null'
24+
// and so no explicit customization is necessary.
25+
}
26+
}
27+
}
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.KeyVault
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using Newtonsoft.Json;
17+
18+
/// <summary>
19+
/// The Azure management API provides a RESTful set of web services that
20+
/// interact with Azure Key Vault.
21+
/// </summary>
22+
public partial interface IKeyVaultManagementClient : System.IDisposable
23+
{
24+
/// <summary>
25+
/// The base URI of the service.
26+
/// </summary>
27+
System.Uri BaseUri { get; set; }
28+
29+
/// <summary>
30+
/// Gets or sets json serialization settings.
31+
/// </summary>
32+
JsonSerializerSettings SerializationSettings { get; }
33+
34+
/// <summary>
35+
/// Gets or sets json deserialization settings.
36+
/// </summary>
37+
JsonSerializerSettings DeserializationSettings { get; }
38+
39+
/// <summary>
40+
/// Credentials needed for the client to connect to Azure.
41+
/// </summary>
42+
ServiceClientCredentials Credentials { get; }
43+
44+
/// <summary>
45+
/// Subscription credentials which uniquely identify Microsoft Azure
46+
/// subscription. The subscription ID forms part of the URI for every
47+
/// service call.
48+
/// </summary>
49+
string SubscriptionId { get; set; }
50+
51+
/// <summary>
52+
/// Client Api Version.
53+
/// </summary>
54+
string ApiVersion { get; }
55+
56+
/// <summary>
57+
/// The preferred language for the response.
58+
/// </summary>
59+
string AcceptLanguage { get; set; }
60+
61+
/// <summary>
62+
/// The retry timeout in seconds for Long Running Operations. Default
63+
/// value is 30.
64+
/// </summary>
65+
int? LongRunningOperationRetryTimeout { get; set; }
66+
67+
/// <summary>
68+
/// Whether a unique x-ms-client-request-id should be generated. When
69+
/// set to true a unique x-ms-client-request-id value is generated and
70+
/// included in each request. Default is true.
71+
/// </summary>
72+
bool? GenerateClientRequestId { get; set; }
73+
74+
75+
/// <summary>
76+
/// Gets the IVaultsOperations.
77+
/// </summary>
78+
IVaultsOperations Vaults { get; }
79+
80+
/// <summary>
81+
/// Gets the IPrivateEndpointConnectionsOperations.
82+
/// </summary>
83+
IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; }
84+
85+
/// <summary>
86+
/// Gets the IPrivateLinkResourcesOperations.
87+
/// </summary>
88+
IPrivateLinkResourcesOperations PrivateLinkResources { get; }
89+
90+
/// <summary>
91+
/// Gets the IManagedHsmsOperations.
92+
/// </summary>
93+
IManagedHsmsOperations ManagedHsms { get; }
94+
95+
/// <summary>
96+
/// Gets the IMHSMPrivateEndpointConnectionsOperations.
97+
/// </summary>
98+
IMHSMPrivateEndpointConnectionsOperations MHSMPrivateEndpointConnections { get; }
99+
100+
/// <summary>
101+
/// Gets the IMHSMPrivateLinkResourcesOperations.
102+
/// </summary>
103+
IMHSMPrivateLinkResourcesOperations MHSMPrivateLinkResources { get; }
104+
105+
}
106+
}
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.KeyVault
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// MHSMPrivateEndpointConnectionsOperations operations.
23+
/// </summary>
24+
public partial interface IMHSMPrivateEndpointConnectionsOperations
25+
{
26+
/// <summary>
27+
/// The List operation gets information about the private endpoint
28+
/// connections associated with the managed HSM Pool.
29+
/// </summary>
30+
/// <param name='resourceGroupName'>
31+
/// Name of the resource group that contains the managed HSM pool.
32+
/// </param>
33+
/// <param name='name'>
34+
/// Name of the managed HSM Pool
35+
/// </param>
36+
/// <param name='customHeaders'>
37+
/// The headers that will be added to request.
38+
/// </param>
39+
/// <param name='cancellationToken'>
40+
/// The cancellation token.
41+
/// </param>
42+
/// <exception cref="ManagedHsmErrorException">
43+
/// Thrown when the operation returned an invalid status code
44+
/// </exception>
45+
/// <exception cref="Microsoft.Rest.SerializationException">
46+
/// Thrown when unable to deserialize the response
47+
/// </exception>
48+
/// <exception cref="Microsoft.Rest.ValidationException">
49+
/// Thrown when a required parameter is null
50+
/// </exception>
51+
Task<AzureOperationResponse<IPage<MHSMPrivateEndpointConnection>>> ListByResourceWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
52+
/// <summary>
53+
/// Gets the specified private endpoint connection associated with the
54+
/// managed HSM Pool.
55+
/// </summary>
56+
/// <param name='resourceGroupName'>
57+
/// Name of the resource group that contains the managed HSM pool.
58+
/// </param>
59+
/// <param name='name'>
60+
/// Name of the managed HSM Pool
61+
/// </param>
62+
/// <param name='privateEndpointConnectionName'>
63+
/// Name of the private endpoint connection associated with the managed
64+
/// hsm pool.
65+
/// </param>
66+
/// <param name='customHeaders'>
67+
/// The headers that will be added to request.
68+
/// </param>
69+
/// <param name='cancellationToken'>
70+
/// The cancellation token.
71+
/// </param>
72+
/// <exception cref="ManagedHsmErrorException">
73+
/// Thrown when the operation returned an invalid status code
74+
/// </exception>
75+
/// <exception cref="Microsoft.Rest.SerializationException">
76+
/// Thrown when unable to deserialize the response
77+
/// </exception>
78+
/// <exception cref="Microsoft.Rest.ValidationException">
79+
/// Thrown when a required parameter is null
80+
/// </exception>
81+
Task<AzureOperationResponse<MHSMPrivateEndpointConnection>> GetWithHttpMessagesAsync(string resourceGroupName, string name, string privateEndpointConnectionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
82+
/// <summary>
83+
/// Updates the specified private endpoint connection associated with
84+
/// the managed hsm pool.
85+
/// </summary>
86+
/// <param name='resourceGroupName'>
87+
/// Name of the resource group that contains the managed HSM pool.
88+
/// </param>
89+
/// <param name='name'>
90+
/// Name of the managed HSM Pool
91+
/// </param>
92+
/// <param name='privateEndpointConnectionName'>
93+
/// Name of the private endpoint connection associated with the managed
94+
/// hsm pool.
95+
/// </param>
96+
/// <param name='properties'>
97+
/// The intended state of private endpoint connection.
98+
/// </param>
99+
/// <param name='customHeaders'>
100+
/// The headers that will be added to request.
101+
/// </param>
102+
/// <param name='cancellationToken'>
103+
/// The cancellation token.
104+
/// </param>
105+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
106+
/// Thrown when the operation returned an invalid status code
107+
/// </exception>
108+
/// <exception cref="Microsoft.Rest.SerializationException">
109+
/// Thrown when unable to deserialize the response
110+
/// </exception>
111+
/// <exception cref="Microsoft.Rest.ValidationException">
112+
/// Thrown when a required parameter is null
113+
/// </exception>
114+
Task<AzureOperationResponse<MHSMPrivateEndpointConnection,MHSMPrivateEndpointConnectionsPutHeaders>> PutWithHttpMessagesAsync(string resourceGroupName, string name, string privateEndpointConnectionName, MHSMPrivateEndpointConnection properties, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
115+
/// <summary>
116+
/// Deletes the specified private endpoint connection associated with
117+
/// the managed hsm pool.
118+
/// </summary>
119+
/// <param name='resourceGroupName'>
120+
/// Name of the resource group that contains the managed HSM pool.
121+
/// </param>
122+
/// <param name='name'>
123+
/// Name of the managed HSM Pool
124+
/// </param>
125+
/// <param name='privateEndpointConnectionName'>
126+
/// Name of the private endpoint connection associated with the managed
127+
/// hsm pool.
128+
/// </param>
129+
/// <param name='customHeaders'>
130+
/// The headers that will be added to request.
131+
/// </param>
132+
/// <param name='cancellationToken'>
133+
/// The cancellation token.
134+
/// </param>
135+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
136+
/// Thrown when the operation returned an invalid status code
137+
/// </exception>
138+
/// <exception cref="Microsoft.Rest.SerializationException">
139+
/// Thrown when unable to deserialize the response
140+
/// </exception>
141+
/// <exception cref="Microsoft.Rest.ValidationException">
142+
/// Thrown when a required parameter is null
143+
/// </exception>
144+
Task<AzureOperationResponse<MHSMPrivateEndpointConnection,MHSMPrivateEndpointConnectionsDeleteHeaders>> DeleteWithHttpMessagesAsync(string resourceGroupName, string name, string privateEndpointConnectionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
145+
/// <summary>
146+
/// Deletes the specified private endpoint connection associated with
147+
/// the managed hsm pool.
148+
/// </summary>
149+
/// <param name='resourceGroupName'>
150+
/// Name of the resource group that contains the managed HSM pool.
151+
/// </param>
152+
/// <param name='name'>
153+
/// Name of the managed HSM Pool
154+
/// </param>
155+
/// <param name='privateEndpointConnectionName'>
156+
/// Name of the private endpoint connection associated with the managed
157+
/// hsm pool.
158+
/// </param>
159+
/// <param name='customHeaders'>
160+
/// The headers that will be added to request.
161+
/// </param>
162+
/// <param name='cancellationToken'>
163+
/// The cancellation token.
164+
/// </param>
165+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
166+
/// Thrown when the operation returned an invalid status code
167+
/// </exception>
168+
/// <exception cref="Microsoft.Rest.SerializationException">
169+
/// Thrown when unable to deserialize the response
170+
/// </exception>
171+
/// <exception cref="Microsoft.Rest.ValidationException">
172+
/// Thrown when a required parameter is null
173+
/// </exception>
174+
Task<AzureOperationResponse<MHSMPrivateEndpointConnection,MHSMPrivateEndpointConnectionsDeleteHeaders>> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string name, string privateEndpointConnectionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
175+
/// <summary>
176+
/// The List operation gets information about the private endpoint
177+
/// connections associated with the managed HSM Pool.
178+
/// </summary>
179+
/// <param name='nextPageLink'>
180+
/// The NextLink from the previous successful call to List operation.
181+
/// </param>
182+
/// <param name='customHeaders'>
183+
/// The headers that will be added to request.
184+
/// </param>
185+
/// <param name='cancellationToken'>
186+
/// The cancellation token.
187+
/// </param>
188+
/// <exception cref="ManagedHsmErrorException">
189+
/// Thrown when the operation returned an invalid status code
190+
/// </exception>
191+
/// <exception cref="Microsoft.Rest.SerializationException">
192+
/// Thrown when unable to deserialize the response
193+
/// </exception>
194+
/// <exception cref="Microsoft.Rest.ValidationException">
195+
/// Thrown when a required parameter is null
196+
/// </exception>
197+
Task<AzureOperationResponse<IPage<MHSMPrivateEndpointConnection>>> ListByResourceNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
198+
}
199+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Management.KeyVault
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// MHSMPrivateLinkResourcesOperations operations.
23+
/// </summary>
24+
public partial interface IMHSMPrivateLinkResourcesOperations
25+
{
26+
/// <summary>
27+
/// Gets the private link resources supported for the managed hsm pool.
28+
/// </summary>
29+
/// <param name='resourceGroupName'>
30+
/// Name of the resource group that contains the managed HSM pool.
31+
/// </param>
32+
/// <param name='name'>
33+
/// Name of the managed HSM Pool
34+
/// </param>
35+
/// <param name='customHeaders'>
36+
/// The headers that will be added to request.
37+
/// </param>
38+
/// <param name='cancellationToken'>
39+
/// The cancellation token.
40+
/// </param>
41+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
42+
/// Thrown when the operation returned an invalid status code
43+
/// </exception>
44+
/// <exception cref="Microsoft.Rest.SerializationException">
45+
/// Thrown when unable to deserialize the response
46+
/// </exception>
47+
/// <exception cref="Microsoft.Rest.ValidationException">
48+
/// Thrown when a required parameter is null
49+
/// </exception>
50+
Task<AzureOperationResponse<MHSMPrivateLinkResourceListResult>> ListByMHSMResourceWithHttpMessagesAsync(string resourceGroupName, string name, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
51+
}
52+
}

0 commit comments

Comments
 (0)