azure-resourcemanager-common/src/main/java/bio/terra/cloudres/azure/resourcemanager/common/Defaults.java
/**
   * Configures a client for CRL usage.
   *
   * <p>Example usage:
   *
   * <pre>
   *    crlConfigure(clientConfig, ComputeManager.configure())
   *        .authenticate(tokenCredential, azureProfile);
   * </pre>
   *
   * @param clientConfig client configuration object to manage CRL behavior.
   * @param configurable Azure client to configure.
   * @return a configured Azure client.
   */
Configures a client for CRL usage.
Example usage.



@param clientConfig client configuration object to manage CRL behavior.
@param configurable Azure client to configure.
@return a configured Azure client.
Configures a client for CRL usage . Example usage . @param clientConfig client configuration object to manage CRL behavior . @param configurable Azure client to configure . @return a configured Azure client .
public static <T extends AzureConfigurable<T>> T crlConfigure(
      ClientConfig clientConfig, AzureConfigurable<T> configurable) {
    return configurable.withLogOptions(
        new HttpLogOptions()
            .setRequestLogger(new AzureResourceCleanupRecorder(clientConfig))
            .setResponseLogger(new AzureResponseLogger(clientConfig))
            .setLogLevel(HttpLogDetailLevel.BASIC));
  }
public static < T extends AzureConfigurable < T > > T crlConfigure ( ClientConfig clientConfig , AzureConfigurable < T > configurable ) { return configurable . withLogOptions ( new HttpLogOptions ( ) . setRequestLogger ( new AzureResourceCleanupRecorder ( clientConfig ) ) . setResponseLogger ( new AzureResponseLogger ( clientConfig ) ) . setLogLevel ( HttpLogDetailLevel . BASIC ) ) ; }
Configures a client for CRL usage.
Configures a client for CRL usage .
// Since we are providing our own loggers this value isn't actually used; however it // does need to be set to a value other than NONE for the loggers to fire.