public async Task StaticClient() { NullNetworkDriver driver = new NullNetworkDriver(); GoogleCloudStorageConfig config = new GoogleCloudStorageConfig(); config.Credentials = new StringAccessKey("GOOGTS7C7FUP3AIRVJTE2BCDKINBTES3HC2GY5CBFJDCQ2SYHV6A6XXVTJFSA", "bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ"); config.Region = GoogleCloudStorageRegion.EuropeWest1; using GoogleCloudStorageClient client = new GoogleCloudStorageClient(config, driver); await client.GetObjectAsync("testbucket", "GetObjectAsync").ConfigureAwait(false); Assert.Equal("https://testbucket.storage.googleapis.com/GetObjectAsync", driver.LastUrl); }
public GoogleCloudStorageClient(GoogleCloudStorageConfig config, INetworkDriver networkDriver) : base(new GoogleCloudStorageInputValidator(), config, networkDriver) { }
/// <summary>Creates a new instance of <see cref="GoogleCloudStorageClient" /></summary> /// <param name="config">The configuration you want to use</param> /// <param name="proxy">A web proxy (optional)</param> public GoogleCloudStorageClient(GoogleCloudStorageConfig config, IWebProxy? proxy = null) : base(new GoogleCloudStorageInputValidator(), config, proxy) { }