コード例 #1
0
 /// <summary>
 /// List certificates used on endpoints on the target 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 <EndpointCertificate> > ListByInstanceAsync(this IEndpointCertificatesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Gets a certificate used on the endpoint with the given id.
 /// </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='endpointType'>
 /// Type of the endpoint whose certificate the customer is looking for.
 /// </param>
 public static EndpointCertificate Get(this IEndpointCertificatesOperations operations, string resourceGroupName, string managedInstanceName, string endpointType)
 {
     return(operations.GetAsync(resourceGroupName, managedInstanceName, endpointType).GetAwaiter().GetResult());
 }
コード例 #3
0
 /// <summary>
 /// List certificates used on endpoints on the target 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 <EndpointCertificate> > ListByInstanceNextAsync(this IEndpointCertificatesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByInstanceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #4
0
 /// <summary>
 /// List certificates used on endpoints on the target 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 <EndpointCertificate> ListByInstance(this IEndpointCertificatesOperations operations, string resourceGroupName, string managedInstanceName)
 {
     return(operations.ListByInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult());
 }
コード例 #5
0
 /// <summary>
 /// List certificates used on endpoints on the target 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 <EndpointCertificate> ListByInstanceNext(this IEndpointCertificatesOperations operations, string nextPageLink)
 {
     return(operations.ListByInstanceNextAsync(nextPageLink).GetAwaiter().GetResult());
 }