/// <summary> /// Uploads a server trust certificate from box to Sql Managed Instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='managedInstanceName'> /// The name of the managed instance. /// </param> /// <param name='certificateName'> /// Name of of the certificate to upload. /// </param> /// <param name='parameters'> /// The server trust certificate info. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ServerTrustCertificate> BeginCreateOrUpdateAsync(this IServerTrustCertificatesOperations operations, string resourceGroupName, string managedInstanceName, string certificateName, ServerTrustCertificate parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, certificateName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a server trust certificate that was uploaded from box to Sql Managed /// Instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='managedInstanceName'> /// The name of the managed instance. /// </param> /// <param name='certificateName'> /// Name of of the certificate to get. /// </param> public static ServerTrustCertificate Get(this IServerTrustCertificatesOperations operations, string resourceGroupName, string managedInstanceName, string certificateName) { return(operations.GetAsync(resourceGroupName, managedInstanceName, certificateName).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of server trust certificates that were uploaded from box to the /// given Sql Managed Instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='managedInstanceName'> /// The name of the managed instance. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ServerTrustCertificate> > ListByInstanceAsync(this IServerTrustCertificatesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of server trust certificates that were uploaded from box to the /// given Sql Managed Instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='managedInstanceName'> /// The name of the managed instance. /// </param> public static IPage <ServerTrustCertificate> ListByInstance(this IServerTrustCertificatesOperations operations, string resourceGroupName, string managedInstanceName) { return(operations.ListByInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of server trust certificates that were uploaded from box to the /// given Sql Managed Instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ServerTrustCertificate> > ListByInstanceNextAsync(this IServerTrustCertificatesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByInstanceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of server trust certificates that were uploaded from box to the /// given Sql Managed Instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <ServerTrustCertificate> ListByInstanceNext(this IServerTrustCertificatesOperations operations, string nextPageLink) { return(operations.ListByInstanceNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a server trust certificate that was uploaded from box to Sql /// Managed Instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='managedInstanceName'> /// The name of the managed instance. /// </param> /// <param name='certificateName'> /// Name of of the certificate to delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IServerTrustCertificatesOperations operations, string resourceGroupName, string managedInstanceName, string certificateName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, certificateName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes a server trust certificate that was uploaded from box to Sql /// Managed Instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='managedInstanceName'> /// The name of the managed instance. /// </param> /// <param name='certificateName'> /// Name of of the certificate to delete. /// </param> public static void BeginDelete(this IServerTrustCertificatesOperations operations, string resourceGroupName, string managedInstanceName, string certificateName) { operations.BeginDeleteAsync(resourceGroupName, managedInstanceName, certificateName).GetAwaiter().GetResult(); }
/// <summary> /// Uploads a server trust certificate from box to Sql Managed Instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='managedInstanceName'> /// The name of the managed instance. /// </param> /// <param name='certificateName'> /// Name of of the certificate to upload. /// </param> /// <param name='parameters'> /// The server trust certificate info. /// </param> public static ServerTrustCertificate BeginCreateOrUpdate(this IServerTrustCertificatesOperations operations, string resourceGroupName, string managedInstanceName, string certificateName, ServerTrustCertificate parameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, managedInstanceName, certificateName, parameters).GetAwaiter().GetResult()); }