public sealed class StorageClientBuilder : ClientBuilderBase<StorageClient>A builder for StorageClient, allowing simple client customization.
Inheritance
System.Object > Google.Api.Gax.Rest.ClientBuilderBase<StorageClient> > StorageClientBuilderNamespace
Google.Cloud.Storage.V1Assembly
Google.Cloud.Storage.V1.dll
Properties
EncryptionKey
public EncryptionKey EncryptionKey { get; set; }The customer-supplied encryption key used by default for all relevant object-based operations.
| Property Value | |
|---|---|
| Type | Description |
EncryptionKey |
|
UnauthenticatedAccess
public bool UnauthenticatedAccess { get; set; }If set to true, no credentials are created when the client is built.
| Property Value | |
|---|---|
| Type | Description |
System.Boolean |
|
Methods
Build()
public override StorageClient Build()| Returns | |
|---|---|
| Type | Description |
StorageClient |
|
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.Build()
BuildAsync(CancellationToken)
public override Task<StorageClient> BuildAsync(CancellationToken cancellationToken = default(CancellationToken))| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
System.Threading.CancellationToken |
| Returns | |
|---|---|
| Type | Description |
System.Threading.Tasks.Task<StorageClient> |
|
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.BuildAsync(System.Threading.CancellationToken)
GetDefaultApplicationName()
protected override string GetDefaultApplicationName()| Returns | |
|---|---|
| Type | Description |
System.String |
|
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.GetDefaultApplicationName()
GetHttpClientInitializer()
protected override IConfigurableHttpClientInitializer GetHttpClientInitializer()| Returns | |
|---|---|
| Type | Description |
Google.Apis.Http.IConfigurableHttpClientInitializer |
|
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.GetHttpClientInitializer()
GetHttpClientInitializerAsync(CancellationToken)
protected override Task<IConfigurableHttpClientInitializer> GetHttpClientInitializerAsync(CancellationToken cancellationToken)| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
System.Threading.CancellationToken |
| Returns | |
|---|---|
| Type | Description |
System.Threading.Tasks.Task<Google.Apis.Http.IConfigurableHttpClientInitializer> |
|
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.GetHttpClientInitializerAsync(System.Threading.CancellationToken)
GetScopedCredentialProvider()
protected override ScopedCredentialProvider GetScopedCredentialProvider()| Returns | |
|---|---|
| Type | Description |
Google.Api.Gax.Rest.ScopedCredentialProvider |
|
Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.GetScopedCredentialProvider()
Validate()
protected override void Validate()Google.Api.Gax.Rest.ClientBuilderBase<Google.Cloud.Storage.V1.StorageClient>.Validate()