/// <summary> /// Lists all loggers assosiated with the specified Diagnostic of an API. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='apiId'> /// API identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='diagnosticId'> /// Diagnostic identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <LoggerContract> > ListByServiceAsync(this IApiDiagnosticLoggerOperations operations, string resourceGroupName, string serviceName, string apiId, string diagnosticId, ODataQuery <LoggerContract> odataQuery = default(ODataQuery <LoggerContract>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServiceWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, diagnosticId, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all loggers assosiated with the specified Diagnostic of an API. /// </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 <LoggerContract> > ListByServiceNextAsync(this IApiDiagnosticLoggerOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServiceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Attaches a logger to a dignostic for an API. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='apiId'> /// API identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='diagnosticId'> /// Diagnostic identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='loggerid'> /// Logger identifier. Must be unique in the API Management service instance. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LoggerContract> CreateOrUpdateAsync(this IApiDiagnosticLoggerOperations operations, string resourceGroupName, string serviceName, string apiId, string diagnosticId, string loggerid, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, diagnosticId, loggerid, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Checks that logger entity specified by identifier is associated with the /// diagnostics entity. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='apiId'> /// API identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='diagnosticId'> /// Diagnostic identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='loggerid'> /// Logger identifier. Must be unique in the API Management service instance. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<bool> CheckEntityExistsAsync(this IApiDiagnosticLoggerOperations operations, string resourceGroupName, string serviceName, string apiId, string diagnosticId, string loggerid, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckEntityExistsWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, diagnosticId, loggerid, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } }
/// <summary> /// Lists all loggers assosiated with the specified Diagnostic of an API. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='apiId'> /// API identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='diagnosticId'> /// Diagnostic identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <LoggerContract> ListByService(this IApiDiagnosticLoggerOperations operations, string resourceGroupName, string serviceName, string apiId, string diagnosticId, ODataQuery <LoggerContract> odataQuery = default(ODataQuery <LoggerContract>)) { return(operations.ListByServiceAsync(resourceGroupName, serviceName, apiId, diagnosticId, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// Lists all loggers assosiated with the specified Diagnostic of an API. /// </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 <LoggerContract> ListByServiceNext(this IApiDiagnosticLoggerOperations operations, string nextPageLink) { return(operations.ListByServiceNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes the specified Logger from Diagnostic for an API. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='apiId'> /// API identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='diagnosticId'> /// Diagnostic identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='loggerid'> /// Logger identifier. Must be unique in the API Management service instance. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IApiDiagnosticLoggerOperations operations, string resourceGroupName, string serviceName, string apiId, string diagnosticId, string loggerid, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serviceName, apiId, diagnosticId, loggerid, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes the specified Logger from Diagnostic for an API. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='apiId'> /// API identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='diagnosticId'> /// Diagnostic identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='loggerid'> /// Logger identifier. Must be unique in the API Management service instance. /// </param> public static void Delete(this IApiDiagnosticLoggerOperations operations, string resourceGroupName, string serviceName, string apiId, string diagnosticId, string loggerid) { operations.DeleteAsync(resourceGroupName, serviceName, apiId, diagnosticId, loggerid).GetAwaiter().GetResult(); }
/// <summary> /// Attaches a logger to a dignostic for an API. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='apiId'> /// API identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='diagnosticId'> /// Diagnostic identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='loggerid'> /// Logger identifier. Must be unique in the API Management service instance. /// </param> public static LoggerContract CreateOrUpdate(this IApiDiagnosticLoggerOperations operations, string resourceGroupName, string serviceName, string apiId, string diagnosticId, string loggerid) { return(operations.CreateOrUpdateAsync(resourceGroupName, serviceName, apiId, diagnosticId, loggerid).GetAwaiter().GetResult()); }
/// <summary> /// Checks that logger entity specified by identifier is associated with the /// diagnostics entity. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='apiId'> /// API identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='diagnosticId'> /// Diagnostic identifier. Must be unique in the current API Management service /// instance. /// </param> /// <param name='loggerid'> /// Logger identifier. Must be unique in the API Management service instance. /// </param> public static bool CheckEntityExists(this IApiDiagnosticLoggerOperations operations, string resourceGroupName, string serviceName, string apiId, string diagnosticId, string loggerid) { return(operations.CheckEntityExistsAsync(resourceGroupName, serviceName, apiId, diagnosticId, loggerid).GetAwaiter().GetResult()); }