public sealed class StorageClientBuilder : ClientBuilderBase<StorageClient>
Reference documentation and code samples for the Google Cloud Storage v1 API class StorageClientBuilder.
A builder for StorageClient, allowing simple client customization.
Namespace
GoogleGoogle.CloudGoogle.Cloud.StorageV1
Assembly
Google.Cloud.Storage.V1.dll
Constructors
StorageClientBuilder()
public StorageClientBuilder()
Creates a new builder with default settings.
Properties
EncryptionKey
public EncryptionKey EncryptionKey { get; set; }
The customer-supplied encryption key used by default for all relevant object-based operations.
UnauthenticatedAccess
public bool UnauthenticatedAccess { get; set; }
If set to true, no credentials are created when the client is built.
Property Value |
---|
Type | Description |
bool | |
Methods
Build()
public override StorageClient Build()
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.Build()
BuildAsync(CancellationToken)
public override Task<StorageClient> BuildAsync(CancellationToken cancellationToken = default)
Overrides
CreateServiceInitializer()
protected override BaseClientService.Initializer CreateServiceInitializer()
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.CreateServiceInitializer()
CreateServiceInitializerAsync(CancellationToken)
protected override Task<BaseClientService.Initializer> CreateServiceInitializerAsync(CancellationToken cancellationToken)
Overrides
GetDefaultApplicationName()
protected override string GetDefaultApplicationName()
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.GetDefaultApplicationName()
GetHttpClientInitializer()
protected override IConfigurableHttpClientInitializer GetHttpClientInitializer()
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.GetHttpClientInitializer()
GetHttpClientInitializerAsync(CancellationToken)
protected override Task<IConfigurableHttpClientInitializer> GetHttpClientInitializerAsync(CancellationToken cancellationToken)
Overrides
GetScopedCredentialProvider()
protected override ScopedCredentialProvider GetScopedCredentialProvider()
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.GetScopedCredentialProvider()
Validate()
protected override void Validate()
Overrides
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.Validate()