Skip to content

Commit

Permalink
.NET SDK Resource Provider:'KeyVault'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5563'
REST Spec PR Author 'KarishmaGhiya'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Apr 6, 2019
1 parent 3dd578d commit eb64cd9
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,20 @@ public partial interface IKeyVaultManagementClient : System.IDisposable
string ApiVersion { get; }

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

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

/// <summary>
/// When set to true a unique x-ms-client-request-id value is generated
/// and included in each request. Default is true.
/// 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; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,20 @@ public partial class KeyVaultManagementClient : ServiceClient<KeyVaultManagement
public string ApiVersion { get; private set; }

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

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

/// <summary>
/// When set to true a unique x-ms-client-request-id value is generated and
/// included in each request. Default is true.
/// 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>
public bool? GenerateClientRequestId { get; set; }

Expand All @@ -86,6 +87,19 @@ public partial class KeyVaultManagementClient : ServiceClient<KeyVaultManagement
/// </summary>
public virtual IOperations Operations { get; private set; }

/// <summary>
/// Initializes a new instance of the KeyVaultManagementClient class.
/// </summary>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling KeyVaultManagementClient.Dispose(). False: will not dispose provided httpClient</param>
protected KeyVaultManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
{
Initialize();
}

/// <summary>
/// Initializes a new instance of the KeyVaultManagementClient class.
/// </summary>
Expand Down Expand Up @@ -181,6 +195,33 @@ public KeyVaultManagementClient(ServiceClientCredentials credentials, params Del
}
}

/// <summary>
/// Initializes a new instance of the KeyVaultManagementClient class.
/// </summary>
/// <param name='credentials'>
/// Required. Credentials needed for the client to connect to Azure.
/// </param>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling KeyVaultManagementClient.Dispose(). False: will not dispose provided httpClient</param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
public KeyVaultManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
{
if (credentials == null)
{
throw new System.ArgumentNullException("credentials");
}
Credentials = credentials;
if (Credentials != null)
{
Credentials.InitializeServiceClient(this);
}
}

/// <summary>
/// Initializes a new instance of the KeyVaultManagementClient class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ namespace Microsoft.Azure.Management.KeyVault.Models
using System.Linq;

/// <summary>
/// A rule governing the accesibility of a vault from a specific ip address
/// or ip range.
/// A rule governing the accessibility of a vault from a specific ip
/// address or ip range.
/// </summary>
public partial class IPRule
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public OperationDisplay()
/// etc.</param>
/// <param name="operation">Type of operation: get, read, delete,
/// etc.</param>
/// <param name="description">Decription of operation.</param>
/// <param name="description">Description of operation.</param>
public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string))
{
Provider = provider;
Expand Down Expand Up @@ -69,7 +69,7 @@ public OperationDisplay(string provider = default(string), string resource = def
public string Operation { get; set; }

/// <summary>
/// Gets or sets decription of operation.
/// Gets or sets description of operation.
/// </summary>
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public VaultAccessPolicyParameters()
/// <param name="id">The resource id of the access policy.</param>
/// <param name="name">The resource name of the access policy.</param>
/// <param name="type">The resource name of the access policy.</param>
/// <param name="location">The resource type of the the access
/// <param name="location">The resource type of the access
/// policy.</param>
public VaultAccessPolicyParameters(VaultAccessPolicyProperties properties, string id = default(string), string name = default(string), string type = default(string), string location = default(string))
{
Expand Down Expand Up @@ -73,7 +73,7 @@ public VaultAccessPolicyParameters(VaultAccessPolicyProperties properties, strin
public string Type { get; private set; }

/// <summary>
/// Gets the resource type of the the access policy.
/// Gets the resource type of the access policy.
/// </summary>
[JsonProperty(PropertyName = "location")]
public string Location { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Microsoft.Azure.Management.KeyVault.Models
using System.Linq;

/// <summary>
/// The parameters used to check the availabity of the vault name.
/// The parameters used to check the availability of the vault name.
/// </summary>
public partial class VaultCheckNameAvailabilityParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public VaultProperties()
/// <param name="sku">SKU details</param>
/// <param name="accessPolicies">An array of 0 to 16 identities that
/// have access to the key vault. All identities in the array must use
/// the same tenant ID as the key vault's tenant ID.</param>
/// the same tenant ID as the key vault's tenant ID. When `createMode`
/// is set to `recover`, access policies are not required. Otherwise,
/// access policies are required.</param>
/// <param name="vaultUri">The URI of the vault for performing
/// operations on keys and secrets.</param>
/// <param name="enabledForDeployment">Property to specify whether
Expand Down Expand Up @@ -103,7 +105,9 @@ public VaultProperties(System.Guid tenantId, Sku sku, IList<AccessPolicyEntry> a
/// <summary>
/// Gets or sets an array of 0 to 16 identities that have access to the
/// key vault. All identities in the array must use the same tenant ID
/// as the key vault's tenant ID.
/// as the key vault's tenant ID. When `createMode` is set to
/// `recover`, access policies are not required. Otherwise, access
/// policies are required.
/// </summary>
[JsonProperty(PropertyName = "accessPolicies")]
public IList<AccessPolicyEntry> AccessPolicies { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Microsoft.Azure.Management.KeyVault.Models
using System.Linq;

/// <summary>
/// A rule governing the accesibility of a vault from a specific virtual
/// A rule governing the accessibility of a vault from a specific virtual
/// network.
/// </summary>
public partial class VirtualNetworkRule
Expand Down

0 comments on commit eb64cd9

Please sign in to comment.