/** * Initializes an instance of GeneratedStorageClient client. */ public GeneratedStorageClient() { this(RestProxy.createDefaultPipeline()); }
/** * Initializes an instance of GeneratedStorageClient client. */ public GeneratedStorageClient() { this(RestProxy.createDefaultPipeline()); }
/** * Create the default HttpPipeline. * @return the default HttpPipeline. */ public static HttpPipeline createDefaultPipeline() { return createDefaultPipeline((RequestPolicyFactory) null); }
/** * Create the default HttpPipeline. * @param credentials The credentials to use to apply authentication to the pipeline. * @return the default HttpPipeline. */ public static HttpPipeline createDefaultPipeline(ServiceClientCredentials credentials) { return createDefaultPipeline(new CredentialsPolicyFactory(credentials)); }
/** * Create a proxy implementation of the provided Swagger interface. * @param swaggerInterface The Swagger interface to provide a proxy implementation for. * @param <A> The type of the Swagger interface. * @return A proxy implementation of the provided Swagger interface. */ @SuppressWarnings("unchecked") public static <A> A create(Class<A> swaggerInterface) { return create(swaggerInterface, createDefaultPipeline(), createDefaultSerializer()); }