コード例 #1
0
 /// <summary>
 /// The Get Client Root Certificate operation returns the public
 /// portion of a previously uploaded client root certificate in a
 /// base-64 encoded format from Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn205127.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.VirtualNetworks.IClientRootCertificateOperations.
 /// </param>
 /// <param name='virtualNetworkName'>
 /// The name of the virtual network for this gateway.
 /// </param>
 /// <param name='certificateThumbprint'>
 /// The X509 certificate thumbprint.
 /// </param>
 /// <returns>
 /// A standard storage response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <ClientRootCertificateGetResponse> GetAsync(this IClientRootCertificateOperations operations, string virtualNetworkName, string certificateThumbprint)
 {
     return(operations.GetAsync(virtualNetworkName, certificateThumbprint, CancellationToken.None));
 }
コード例 #2
0
 /// <summary>
 /// The List Client Root Certificates operation returns a list of all
 /// the client root certificates that are associated with the
 /// specified virtual network in Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn205130.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Network.IClientRootCertificateOperations.
 /// </param>
 /// <param name='networkName'>
 /// Required. The name of the virtual network for this gateway.
 /// </param>
 /// <returns>
 /// The response for the List Client Root Certificates operation.
 /// </returns>
 public static Task <ClientRootCertificateListResponse> ListAsync(this IClientRootCertificateOperations operations, string networkName)
 {
     return(operations.ListAsync(networkName, CancellationToken.None));
 }
コード例 #3
0
 /// <summary>
 /// The Upload Client Root Certificate operation is used to upload a
 /// new client root certificate to Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn205129.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Network.IClientRootCertificateOperations.
 /// </param>
 /// <param name='networkName'>
 /// Required. The name of the virtual network for this gateway.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Upload Client Root Certificate
 /// Virtual Network Gateway operation.
 /// </param>
 /// <returns>
 /// A standard storage response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <GatewayOperationResponse> CreateAsync(this IClientRootCertificateOperations operations, string networkName, ClientRootCertificateCreateParameters parameters)
 {
     return(operations.CreateAsync(networkName, parameters, CancellationToken.None));
 }
コード例 #4
0
 /// <summary>
 /// The Delete Client Root Certificate operation deletes a previously
 /// uploaded client root certificate from Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn205128.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Network.IClientRootCertificateOperations.
 /// </param>
 /// <param name='networkName'>
 /// Required. The name of the virtual network for this gateway.
 /// </param>
 /// <param name='certificateThumbprint'>
 /// Required. The X509 certificate thumbprint.
 /// </param>
 /// <returns>
 /// A standard storage response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <GatewayOperationResponse> DeleteAsync(this IClientRootCertificateOperations operations, string networkName, string certificateThumbprint)
 {
     return(operations.DeleteAsync(networkName, certificateThumbprint, CancellationToken.None));
 }