Google Cloud Storage Insights v1 API - Class StorageInsightsClient (1.4.0)

public abstract class StorageInsightsClient

Reference documentation and code samples for the Google Cloud Storage Insights v1 API class StorageInsightsClient.

StorageInsights client wrapper, for convenient use.

Inheritance

object > StorageInsightsClient

Namespace

Google.Cloud.StorageInsights.V1

Assembly

Google.Cloud.StorageInsights.V1.dll

Remarks

Service describing handlers for resources

Properties

CreateDatasetConfigOperationsClient

public virtual OperationsClient CreateDatasetConfigOperationsClient { get; }

The long-running operations client for CreateDatasetConfig.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the StorageInsights service, which is a host of "storageinsights.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default StorageInsights scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default StorageInsights scopes are:

DeleteDatasetConfigOperationsClient

public virtual OperationsClient DeleteDatasetConfigOperationsClient { get; }

The long-running operations client for DeleteDatasetConfig.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual StorageInsights.StorageInsightsClient GrpcClient { get; }

The underlying gRPC StorageInsights client

Property Value
Type Description
StorageInsightsStorageInsightsClient

LinkDatasetOperationsClient

public virtual OperationsClient LinkDatasetOperationsClient { get; }

The long-running operations client for LinkDataset.

Property Value
Type Description
OperationsClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UnlinkDatasetOperationsClient

public virtual OperationsClient UnlinkDatasetOperationsClient { get; }

The long-running operations client for UnlinkDataset.

Property Value
Type Description
OperationsClient

UpdateDatasetConfigOperationsClient

public virtual OperationsClient UpdateDatasetConfigOperationsClient { get; }

The long-running operations client for UpdateDatasetConfig.

Property Value
Type Description
OperationsClient

Methods

Create()

public static StorageInsightsClient Create()

Synchronously creates a StorageInsightsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use StorageInsightsClientBuilder.

Returns
Type Description
StorageInsightsClient

The created StorageInsightsClient.

CreateAsync(CancellationToken)

public static Task<StorageInsightsClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a StorageInsightsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use StorageInsightsClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskStorageInsightsClient

The task representing the created StorageInsightsClient.

CreateDatasetConfig(LocationName, DatasetConfig, string, CallSettings)

public virtual Operation<DatasetConfig, OperationMetadata> CreateDatasetConfig(LocationName parent, DatasetConfig datasetConfig, string datasetConfigId, CallSettings callSettings = null)

Creates a dataset configuration in a given project for a given location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

datasetConfig DatasetConfig

Required. The resource being created

datasetConfigId string

Required. ID of the requesting object. If auto-generating ID is enabled on the server-side, remove this field and dataset_config_id from the method_signature of Create RPC Note: The value should not contain any hyphens.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationDatasetConfigOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DatasetConfig datasetConfig = new DatasetConfig();
string datasetConfigId = "";
// Make the request
Operation<DatasetConfig, OperationMetadata> response = storageInsightsClient.CreateDatasetConfig(parent, datasetConfig, datasetConfigId);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceCreateDatasetConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

CreateDatasetConfig(CreateDatasetConfigRequest, CallSettings)

public virtual Operation<DatasetConfig, OperationMetadata> CreateDatasetConfig(CreateDatasetConfigRequest request, CallSettings callSettings = null)

Creates a dataset configuration in a given project for a given location.

Parameters
Name Description
request CreateDatasetConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationDatasetConfigOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
CreateDatasetConfigRequest request = new CreateDatasetConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DatasetConfigId = "",
    DatasetConfig = new DatasetConfig(),
    RequestId = "",
};
// Make the request
Operation<DatasetConfig, OperationMetadata> response = storageInsightsClient.CreateDatasetConfig(request);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceCreateDatasetConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

CreateDatasetConfig(string, DatasetConfig, string, CallSettings)

public virtual Operation<DatasetConfig, OperationMetadata> CreateDatasetConfig(string parent, DatasetConfig datasetConfig, string datasetConfigId, CallSettings callSettings = null)

Creates a dataset configuration in a given project for a given location.

Parameters
Name Description
parent string

Required. Value for parent.

datasetConfig DatasetConfig

Required. The resource being created

datasetConfigId string

Required. ID of the requesting object. If auto-generating ID is enabled on the server-side, remove this field and dataset_config_id from the method_signature of Create RPC Note: The value should not contain any hyphens.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationDatasetConfigOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DatasetConfig datasetConfig = new DatasetConfig();
string datasetConfigId = "";
// Make the request
Operation<DatasetConfig, OperationMetadata> response = storageInsightsClient.CreateDatasetConfig(parent, datasetConfig, datasetConfigId);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceCreateDatasetConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

CreateDatasetConfigAsync(LocationName, DatasetConfig, string, CallSettings)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> CreateDatasetConfigAsync(LocationName parent, DatasetConfig datasetConfig, string datasetConfigId, CallSettings callSettings = null)

Creates a dataset configuration in a given project for a given location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

datasetConfig DatasetConfig

Required. The resource being created

datasetConfigId string

Required. ID of the requesting object. If auto-generating ID is enabled on the server-side, remove this field and dataset_config_id from the method_signature of Create RPC Note: The value should not contain any hyphens.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DatasetConfig datasetConfig = new DatasetConfig();
string datasetConfigId = "";
// Make the request
Operation<DatasetConfig, OperationMetadata> response = await storageInsightsClient.CreateDatasetConfigAsync(parent, datasetConfig, datasetConfigId);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceCreateDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

CreateDatasetConfigAsync(LocationName, DatasetConfig, string, CancellationToken)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> CreateDatasetConfigAsync(LocationName parent, DatasetConfig datasetConfig, string datasetConfigId, CancellationToken cancellationToken)

Creates a dataset configuration in a given project for a given location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

datasetConfig DatasetConfig

Required. The resource being created

datasetConfigId string

Required. ID of the requesting object. If auto-generating ID is enabled on the server-side, remove this field and dataset_config_id from the method_signature of Create RPC Note: The value should not contain any hyphens.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DatasetConfig datasetConfig = new DatasetConfig();
string datasetConfigId = "";
// Make the request
Operation<DatasetConfig, OperationMetadata> response = await storageInsightsClient.CreateDatasetConfigAsync(parent, datasetConfig, datasetConfigId);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceCreateDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

CreateDatasetConfigAsync(CreateDatasetConfigRequest, CallSettings)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> CreateDatasetConfigAsync(CreateDatasetConfigRequest request, CallSettings callSettings = null)

Creates a dataset configuration in a given project for a given location.

Parameters
Name Description
request CreateDatasetConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
CreateDatasetConfigRequest request = new CreateDatasetConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DatasetConfigId = "",
    DatasetConfig = new DatasetConfig(),
    RequestId = "",
};
// Make the request
Operation<DatasetConfig, OperationMetadata> response = await storageInsightsClient.CreateDatasetConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceCreateDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

CreateDatasetConfigAsync(CreateDatasetConfigRequest, CancellationToken)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> CreateDatasetConfigAsync(CreateDatasetConfigRequest request, CancellationToken cancellationToken)

Creates a dataset configuration in a given project for a given location.

Parameters
Name Description
request CreateDatasetConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
CreateDatasetConfigRequest request = new CreateDatasetConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DatasetConfigId = "",
    DatasetConfig = new DatasetConfig(),
    RequestId = "",
};
// Make the request
Operation<DatasetConfig, OperationMetadata> response = await storageInsightsClient.CreateDatasetConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceCreateDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

CreateDatasetConfigAsync(string, DatasetConfig, string, CallSettings)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> CreateDatasetConfigAsync(string parent, DatasetConfig datasetConfig, string datasetConfigId, CallSettings callSettings = null)

Creates a dataset configuration in a given project for a given location.

Parameters
Name Description
parent string

Required. Value for parent.

datasetConfig DatasetConfig

Required. The resource being created

datasetConfigId string

Required. ID of the requesting object. If auto-generating ID is enabled on the server-side, remove this field and dataset_config_id from the method_signature of Create RPC Note: The value should not contain any hyphens.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DatasetConfig datasetConfig = new DatasetConfig();
string datasetConfigId = "";
// Make the request
Operation<DatasetConfig, OperationMetadata> response = await storageInsightsClient.CreateDatasetConfigAsync(parent, datasetConfig, datasetConfigId);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceCreateDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

CreateDatasetConfigAsync(string, DatasetConfig, string, CancellationToken)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> CreateDatasetConfigAsync(string parent, DatasetConfig datasetConfig, string datasetConfigId, CancellationToken cancellationToken)

Creates a dataset configuration in a given project for a given location.

Parameters
Name Description
parent string

Required. Value for parent.

datasetConfig DatasetConfig

Required. The resource being created

datasetConfigId string

Required. ID of the requesting object. If auto-generating ID is enabled on the server-side, remove this field and dataset_config_id from the method_signature of Create RPC Note: The value should not contain any hyphens.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DatasetConfig datasetConfig = new DatasetConfig();
string datasetConfigId = "";
// Make the request
Operation<DatasetConfig, OperationMetadata> response = await storageInsightsClient.CreateDatasetConfigAsync(parent, datasetConfig, datasetConfigId);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceCreateDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

CreateReportConfig(LocationName, ReportConfig, CallSettings)

public virtual ReportConfig CreateReportConfig(LocationName parent, ReportConfig reportConfig, CallSettings callSettings = null)

Creates a new ReportConfig in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

reportConfig ReportConfig

Required. The resource being created

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReportConfig

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ReportConfig reportConfig = new ReportConfig();
// Make the request
ReportConfig response = storageInsightsClient.CreateReportConfig(parent, reportConfig);

CreateReportConfig(CreateReportConfigRequest, CallSettings)

public virtual ReportConfig CreateReportConfig(CreateReportConfigRequest request, CallSettings callSettings = null)

Creates a new ReportConfig in a given project and location.

Parameters
Name Description
request CreateReportConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReportConfig

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
CreateReportConfigRequest request = new CreateReportConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ReportConfig = new ReportConfig(),
    RequestId = "",
};
// Make the request
ReportConfig response = storageInsightsClient.CreateReportConfig(request);

CreateReportConfig(string, ReportConfig, CallSettings)

public virtual ReportConfig CreateReportConfig(string parent, ReportConfig reportConfig, CallSettings callSettings = null)

Creates a new ReportConfig in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

reportConfig ReportConfig

Required. The resource being created

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReportConfig

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ReportConfig reportConfig = new ReportConfig();
// Make the request
ReportConfig response = storageInsightsClient.CreateReportConfig(parent, reportConfig);

CreateReportConfigAsync(LocationName, ReportConfig, CallSettings)

public virtual Task<ReportConfig> CreateReportConfigAsync(LocationName parent, ReportConfig reportConfig, CallSettings callSettings = null)

Creates a new ReportConfig in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

reportConfig ReportConfig

Required. The resource being created

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ReportConfig reportConfig = new ReportConfig();
// Make the request
ReportConfig response = await storageInsightsClient.CreateReportConfigAsync(parent, reportConfig);

CreateReportConfigAsync(LocationName, ReportConfig, CancellationToken)

public virtual Task<ReportConfig> CreateReportConfigAsync(LocationName parent, ReportConfig reportConfig, CancellationToken cancellationToken)

Creates a new ReportConfig in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

reportConfig ReportConfig

Required. The resource being created

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ReportConfig reportConfig = new ReportConfig();
// Make the request
ReportConfig response = await storageInsightsClient.CreateReportConfigAsync(parent, reportConfig);

CreateReportConfigAsync(CreateReportConfigRequest, CallSettings)

public virtual Task<ReportConfig> CreateReportConfigAsync(CreateReportConfigRequest request, CallSettings callSettings = null)

Creates a new ReportConfig in a given project and location.

Parameters
Name Description
request CreateReportConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
CreateReportConfigRequest request = new CreateReportConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ReportConfig = new ReportConfig(),
    RequestId = "",
};
// Make the request
ReportConfig response = await storageInsightsClient.CreateReportConfigAsync(request);

CreateReportConfigAsync(CreateReportConfigRequest, CancellationToken)

public virtual Task<ReportConfig> CreateReportConfigAsync(CreateReportConfigRequest request, CancellationToken cancellationToken)

Creates a new ReportConfig in a given project and location.

Parameters
Name Description
request CreateReportConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
CreateReportConfigRequest request = new CreateReportConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ReportConfig = new ReportConfig(),
    RequestId = "",
};
// Make the request
ReportConfig response = await storageInsightsClient.CreateReportConfigAsync(request);

CreateReportConfigAsync(string, ReportConfig, CallSettings)

public virtual Task<ReportConfig> CreateReportConfigAsync(string parent, ReportConfig reportConfig, CallSettings callSettings = null)

Creates a new ReportConfig in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

reportConfig ReportConfig

Required. The resource being created

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ReportConfig reportConfig = new ReportConfig();
// Make the request
ReportConfig response = await storageInsightsClient.CreateReportConfigAsync(parent, reportConfig);

CreateReportConfigAsync(string, ReportConfig, CancellationToken)

public virtual Task<ReportConfig> CreateReportConfigAsync(string parent, ReportConfig reportConfig, CancellationToken cancellationToken)

Creates a new ReportConfig in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

reportConfig ReportConfig

Required. The resource being created

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ReportConfig reportConfig = new ReportConfig();
// Make the request
ReportConfig response = await storageInsightsClient.CreateReportConfigAsync(parent, reportConfig);

DeleteDatasetConfig(DatasetConfigName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteDatasetConfig(DatasetConfigName name, CallSettings callSettings = null)

Deletes a dataset configuration in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = storageInsightsClient.DeleteDatasetConfig(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceDeleteDatasetConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatasetConfig(DeleteDatasetConfigRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteDatasetConfig(DeleteDatasetConfigRequest request, CallSettings callSettings = null)

Deletes a dataset configuration in a given project for a given location.

Parameters
Name Description
request DeleteDatasetConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
DeleteDatasetConfigRequest request = new DeleteDatasetConfigRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = storageInsightsClient.DeleteDatasetConfig(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceDeleteDatasetConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatasetConfig(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteDatasetConfig(string name, CallSettings callSettings = null)

Deletes a dataset configuration in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = storageInsightsClient.DeleteDatasetConfig(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceDeleteDatasetConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatasetConfigAsync(DatasetConfigName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatasetConfigAsync(DatasetConfigName name, CallSettings callSettings = null)

Deletes a dataset configuration in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.DeleteDatasetConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceDeleteDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatasetConfigAsync(DatasetConfigName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatasetConfigAsync(DatasetConfigName name, CancellationToken cancellationToken)

Deletes a dataset configuration in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.DeleteDatasetConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceDeleteDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatasetConfigAsync(DeleteDatasetConfigRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatasetConfigAsync(DeleteDatasetConfigRequest request, CallSettings callSettings = null)

Deletes a dataset configuration in a given project for a given location.

Parameters
Name Description
request DeleteDatasetConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DeleteDatasetConfigRequest request = new DeleteDatasetConfigRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.DeleteDatasetConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceDeleteDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatasetConfigAsync(DeleteDatasetConfigRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatasetConfigAsync(DeleteDatasetConfigRequest request, CancellationToken cancellationToken)

Deletes a dataset configuration in a given project for a given location.

Parameters
Name Description
request DeleteDatasetConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DeleteDatasetConfigRequest request = new DeleteDatasetConfigRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.DeleteDatasetConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceDeleteDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatasetConfigAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatasetConfigAsync(string name, CallSettings callSettings = null)

Deletes a dataset configuration in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.DeleteDatasetConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceDeleteDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteDatasetConfigAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDatasetConfigAsync(string name, CancellationToken cancellationToken)

Deletes a dataset configuration in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.DeleteDatasetConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceDeleteDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteReportConfig(DeleteReportConfigRequest, CallSettings)

public virtual void DeleteReportConfig(DeleteReportConfigRequest request, CallSettings callSettings = null)

Deletes a single ReportConfig.

Parameters
Name Description
request DeleteReportConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
DeleteReportConfigRequest request = new DeleteReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    Force = false,
    RequestId = "",
};
// Make the request
storageInsightsClient.DeleteReportConfig(request);

DeleteReportConfig(ReportConfigName, CallSettings)

public virtual void DeleteReportConfig(ReportConfigName name, CallSettings callSettings = null)

Deletes a single ReportConfig.

Parameters
Name Description
name ReportConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
storageInsightsClient.DeleteReportConfig(name);

DeleteReportConfig(string, CallSettings)

public virtual void DeleteReportConfig(string name, CallSettings callSettings = null)

Deletes a single ReportConfig.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
storageInsightsClient.DeleteReportConfig(name);

DeleteReportConfigAsync(DeleteReportConfigRequest, CallSettings)

public virtual Task DeleteReportConfigAsync(DeleteReportConfigRequest request, CallSettings callSettings = null)

Deletes a single ReportConfig.

Parameters
Name Description
request DeleteReportConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DeleteReportConfigRequest request = new DeleteReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    Force = false,
    RequestId = "",
};
// Make the request
await storageInsightsClient.DeleteReportConfigAsync(request);

DeleteReportConfigAsync(DeleteReportConfigRequest, CancellationToken)

public virtual Task DeleteReportConfigAsync(DeleteReportConfigRequest request, CancellationToken cancellationToken)

Deletes a single ReportConfig.

Parameters
Name Description
request DeleteReportConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DeleteReportConfigRequest request = new DeleteReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    Force = false,
    RequestId = "",
};
// Make the request
await storageInsightsClient.DeleteReportConfigAsync(request);

DeleteReportConfigAsync(ReportConfigName, CallSettings)

public virtual Task DeleteReportConfigAsync(ReportConfigName name, CallSettings callSettings = null)

Deletes a single ReportConfig.

Parameters
Name Description
name ReportConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
await storageInsightsClient.DeleteReportConfigAsync(name);

DeleteReportConfigAsync(ReportConfigName, CancellationToken)

public virtual Task DeleteReportConfigAsync(ReportConfigName name, CancellationToken cancellationToken)

Deletes a single ReportConfig.

Parameters
Name Description
name ReportConfigName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
await storageInsightsClient.DeleteReportConfigAsync(name);

DeleteReportConfigAsync(string, CallSettings)

public virtual Task DeleteReportConfigAsync(string name, CallSettings callSettings = null)

Deletes a single ReportConfig.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
await storageInsightsClient.DeleteReportConfigAsync(name);

DeleteReportConfigAsync(string, CancellationToken)

public virtual Task DeleteReportConfigAsync(string name, CancellationToken cancellationToken)

Deletes a single ReportConfig.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
await storageInsightsClient.DeleteReportConfigAsync(name);

GetDatasetConfig(DatasetConfigName, CallSettings)

public virtual DatasetConfig GetDatasetConfig(DatasetConfigName name, CallSettings callSettings = null)

Gets the dataset configuration in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DatasetConfig

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
DatasetConfig response = storageInsightsClient.GetDatasetConfig(name);

GetDatasetConfig(GetDatasetConfigRequest, CallSettings)

public virtual DatasetConfig GetDatasetConfig(GetDatasetConfigRequest request, CallSettings callSettings = null)

Gets the dataset configuration in a given project for a given location.

Parameters
Name Description
request GetDatasetConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DatasetConfig

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
GetDatasetConfigRequest request = new GetDatasetConfigRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
};
// Make the request
DatasetConfig response = storageInsightsClient.GetDatasetConfig(request);

GetDatasetConfig(string, CallSettings)

public virtual DatasetConfig GetDatasetConfig(string name, CallSettings callSettings = null)

Gets the dataset configuration in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DatasetConfig

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
DatasetConfig response = storageInsightsClient.GetDatasetConfig(name);

GetDatasetConfigAsync(DatasetConfigName, CallSettings)

public virtual Task<DatasetConfig> GetDatasetConfigAsync(DatasetConfigName name, CallSettings callSettings = null)

Gets the dataset configuration in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDatasetConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
DatasetConfig response = await storageInsightsClient.GetDatasetConfigAsync(name);

GetDatasetConfigAsync(DatasetConfigName, CancellationToken)

public virtual Task<DatasetConfig> GetDatasetConfigAsync(DatasetConfigName name, CancellationToken cancellationToken)

Gets the dataset configuration in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDatasetConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
DatasetConfig response = await storageInsightsClient.GetDatasetConfigAsync(name);

GetDatasetConfigAsync(GetDatasetConfigRequest, CallSettings)

public virtual Task<DatasetConfig> GetDatasetConfigAsync(GetDatasetConfigRequest request, CallSettings callSettings = null)

Gets the dataset configuration in a given project for a given location.

Parameters
Name Description
request GetDatasetConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDatasetConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
GetDatasetConfigRequest request = new GetDatasetConfigRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
};
// Make the request
DatasetConfig response = await storageInsightsClient.GetDatasetConfigAsync(request);

GetDatasetConfigAsync(GetDatasetConfigRequest, CancellationToken)

public virtual Task<DatasetConfig> GetDatasetConfigAsync(GetDatasetConfigRequest request, CancellationToken cancellationToken)

Gets the dataset configuration in a given project for a given location.

Parameters
Name Description
request GetDatasetConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDatasetConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
GetDatasetConfigRequest request = new GetDatasetConfigRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
};
// Make the request
DatasetConfig response = await storageInsightsClient.GetDatasetConfigAsync(request);

GetDatasetConfigAsync(string, CallSettings)

public virtual Task<DatasetConfig> GetDatasetConfigAsync(string name, CallSettings callSettings = null)

Gets the dataset configuration in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDatasetConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
DatasetConfig response = await storageInsightsClient.GetDatasetConfigAsync(name);

GetDatasetConfigAsync(string, CancellationToken)

public virtual Task<DatasetConfig> GetDatasetConfigAsync(string name, CancellationToken cancellationToken)

Gets the dataset configuration in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDatasetConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
DatasetConfig response = await storageInsightsClient.GetDatasetConfigAsync(name);

GetReportConfig(GetReportConfigRequest, CallSettings)

public virtual ReportConfig GetReportConfig(GetReportConfigRequest request, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
Name Description
request GetReportConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReportConfig

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
GetReportConfigRequest request = new GetReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
};
// Make the request
ReportConfig response = storageInsightsClient.GetReportConfig(request);

GetReportConfig(ReportConfigName, CallSettings)

public virtual ReportConfig GetReportConfig(ReportConfigName name, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
Name Description
name ReportConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReportConfig

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
ReportConfig response = storageInsightsClient.GetReportConfig(name);

GetReportConfig(string, CallSettings)

public virtual ReportConfig GetReportConfig(string name, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReportConfig

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
ReportConfig response = storageInsightsClient.GetReportConfig(name);

GetReportConfigAsync(GetReportConfigRequest, CallSettings)

public virtual Task<ReportConfig> GetReportConfigAsync(GetReportConfigRequest request, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
Name Description
request GetReportConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
GetReportConfigRequest request = new GetReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
};
// Make the request
ReportConfig response = await storageInsightsClient.GetReportConfigAsync(request);

GetReportConfigAsync(GetReportConfigRequest, CancellationToken)

public virtual Task<ReportConfig> GetReportConfigAsync(GetReportConfigRequest request, CancellationToken cancellationToken)

Gets details of a single ReportConfig.

Parameters
Name Description
request GetReportConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
GetReportConfigRequest request = new GetReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
};
// Make the request
ReportConfig response = await storageInsightsClient.GetReportConfigAsync(request);

GetReportConfigAsync(ReportConfigName, CallSettings)

public virtual Task<ReportConfig> GetReportConfigAsync(ReportConfigName name, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
Name Description
name ReportConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
ReportConfig response = await storageInsightsClient.GetReportConfigAsync(name);

GetReportConfigAsync(ReportConfigName, CancellationToken)

public virtual Task<ReportConfig> GetReportConfigAsync(ReportConfigName name, CancellationToken cancellationToken)

Gets details of a single ReportConfig.

Parameters
Name Description
name ReportConfigName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
ReportConfig response = await storageInsightsClient.GetReportConfigAsync(name);

GetReportConfigAsync(string, CallSettings)

public virtual Task<ReportConfig> GetReportConfigAsync(string name, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
ReportConfig response = await storageInsightsClient.GetReportConfigAsync(name);

GetReportConfigAsync(string, CancellationToken)

public virtual Task<ReportConfig> GetReportConfigAsync(string name, CancellationToken cancellationToken)

Gets details of a single ReportConfig.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
ReportConfig response = await storageInsightsClient.GetReportConfigAsync(name);

GetReportDetail(GetReportDetailRequest, CallSettings)

public virtual ReportDetail GetReportDetail(GetReportDetailRequest request, CallSettings callSettings = null)

Gets details of a single ReportDetail.

Parameters
Name Description
request GetReportDetailRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReportDetail

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
GetReportDetailRequest request = new GetReportDetailRequest
{
    ReportDetailName = ReportDetailName.FromProjectLocationReportConfigReportDetail("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT_DETAIL]"),
};
// Make the request
ReportDetail response = storageInsightsClient.GetReportDetail(request);

GetReportDetail(ReportDetailName, CallSettings)

public virtual ReportDetail GetReportDetail(ReportDetailName name, CallSettings callSettings = null)

Gets details of a single ReportDetail.

Parameters
Name Description
name ReportDetailName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReportDetail

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
ReportDetailName name = ReportDetailName.FromProjectLocationReportConfigReportDetail("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT_DETAIL]");
// Make the request
ReportDetail response = storageInsightsClient.GetReportDetail(name);

GetReportDetail(string, CallSettings)

public virtual ReportDetail GetReportDetail(string name, CallSettings callSettings = null)

Gets details of a single ReportDetail.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReportDetail

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]/reportDetails/[REPORT_DETAIL]";
// Make the request
ReportDetail response = storageInsightsClient.GetReportDetail(name);

GetReportDetailAsync(GetReportDetailRequest, CallSettings)

public virtual Task<ReportDetail> GetReportDetailAsync(GetReportDetailRequest request, CallSettings callSettings = null)

Gets details of a single ReportDetail.

Parameters
Name Description
request GetReportDetailRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReportDetail

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
GetReportDetailRequest request = new GetReportDetailRequest
{
    ReportDetailName = ReportDetailName.FromProjectLocationReportConfigReportDetail("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT_DETAIL]"),
};
// Make the request
ReportDetail response = await storageInsightsClient.GetReportDetailAsync(request);

GetReportDetailAsync(GetReportDetailRequest, CancellationToken)

public virtual Task<ReportDetail> GetReportDetailAsync(GetReportDetailRequest request, CancellationToken cancellationToken)

Gets details of a single ReportDetail.

Parameters
Name Description
request GetReportDetailRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReportDetail

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
GetReportDetailRequest request = new GetReportDetailRequest
{
    ReportDetailName = ReportDetailName.FromProjectLocationReportConfigReportDetail("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT_DETAIL]"),
};
// Make the request
ReportDetail response = await storageInsightsClient.GetReportDetailAsync(request);

GetReportDetailAsync(ReportDetailName, CallSettings)

public virtual Task<ReportDetail> GetReportDetailAsync(ReportDetailName name, CallSettings callSettings = null)

Gets details of a single ReportDetail.

Parameters
Name Description
name ReportDetailName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReportDetail

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ReportDetailName name = ReportDetailName.FromProjectLocationReportConfigReportDetail("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT_DETAIL]");
// Make the request
ReportDetail response = await storageInsightsClient.GetReportDetailAsync(name);

GetReportDetailAsync(ReportDetailName, CancellationToken)

public virtual Task<ReportDetail> GetReportDetailAsync(ReportDetailName name, CancellationToken cancellationToken)

Gets details of a single ReportDetail.

Parameters
Name Description
name ReportDetailName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReportDetail

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ReportDetailName name = ReportDetailName.FromProjectLocationReportConfigReportDetail("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT_DETAIL]");
// Make the request
ReportDetail response = await storageInsightsClient.GetReportDetailAsync(name);

GetReportDetailAsync(string, CallSettings)

public virtual Task<ReportDetail> GetReportDetailAsync(string name, CallSettings callSettings = null)

Gets details of a single ReportDetail.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReportDetail

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]/reportDetails/[REPORT_DETAIL]";
// Make the request
ReportDetail response = await storageInsightsClient.GetReportDetailAsync(name);

GetReportDetailAsync(string, CancellationToken)

public virtual Task<ReportDetail> GetReportDetailAsync(string name, CancellationToken cancellationToken)

Gets details of a single ReportDetail.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReportDetail

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]/reportDetails/[REPORT_DETAIL]";
// Make the request
ReportDetail response = await storageInsightsClient.GetReportDetailAsync(name);

LinkDataset(DatasetConfigName, CallSettings)

public virtual Operation<LinkDatasetResponse, OperationMetadata> LinkDataset(DatasetConfigName name, CallSettings callSettings = null)

Links a dataset to BigQuery in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLinkDatasetResponseOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
Operation<LinkDatasetResponse, OperationMetadata> response = storageInsightsClient.LinkDataset(name);

// Poll until the returned long-running operation is complete
Operation<LinkDatasetResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
LinkDatasetResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LinkDatasetResponse, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceLinkDataset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LinkDatasetResponse retrievedResult = retrievedResponse.Result;
}

LinkDataset(LinkDatasetRequest, CallSettings)

public virtual Operation<LinkDatasetResponse, OperationMetadata> LinkDataset(LinkDatasetRequest request, CallSettings callSettings = null)

Links a dataset to BigQuery in a given project for a given location.

Parameters
Name Description
request LinkDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLinkDatasetResponseOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
LinkDatasetRequest request = new LinkDatasetRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
};
// Make the request
Operation<LinkDatasetResponse, OperationMetadata> response = storageInsightsClient.LinkDataset(request);

// Poll until the returned long-running operation is complete
Operation<LinkDatasetResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
LinkDatasetResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LinkDatasetResponse, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceLinkDataset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LinkDatasetResponse retrievedResult = retrievedResponse.Result;
}

LinkDataset(string, CallSettings)

public virtual Operation<LinkDatasetResponse, OperationMetadata> LinkDataset(string name, CallSettings callSettings = null)

Links a dataset to BigQuery in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLinkDatasetResponseOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
Operation<LinkDatasetResponse, OperationMetadata> response = storageInsightsClient.LinkDataset(name);

// Poll until the returned long-running operation is complete
Operation<LinkDatasetResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
LinkDatasetResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LinkDatasetResponse, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceLinkDataset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LinkDatasetResponse retrievedResult = retrievedResponse.Result;
}

LinkDatasetAsync(DatasetConfigName, CallSettings)

public virtual Task<Operation<LinkDatasetResponse, OperationMetadata>> LinkDatasetAsync(DatasetConfigName name, CallSettings callSettings = null)

Links a dataset to BigQuery in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLinkDatasetResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
Operation<LinkDatasetResponse, OperationMetadata> response = await storageInsightsClient.LinkDatasetAsync(name);

// Poll until the returned long-running operation is complete
Operation<LinkDatasetResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
LinkDatasetResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LinkDatasetResponse, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceLinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LinkDatasetResponse retrievedResult = retrievedResponse.Result;
}

LinkDatasetAsync(DatasetConfigName, CancellationToken)

public virtual Task<Operation<LinkDatasetResponse, OperationMetadata>> LinkDatasetAsync(DatasetConfigName name, CancellationToken cancellationToken)

Links a dataset to BigQuery in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLinkDatasetResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
Operation<LinkDatasetResponse, OperationMetadata> response = await storageInsightsClient.LinkDatasetAsync(name);

// Poll until the returned long-running operation is complete
Operation<LinkDatasetResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
LinkDatasetResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LinkDatasetResponse, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceLinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LinkDatasetResponse retrievedResult = retrievedResponse.Result;
}

LinkDatasetAsync(LinkDatasetRequest, CallSettings)

public virtual Task<Operation<LinkDatasetResponse, OperationMetadata>> LinkDatasetAsync(LinkDatasetRequest request, CallSettings callSettings = null)

Links a dataset to BigQuery in a given project for a given location.

Parameters
Name Description
request LinkDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLinkDatasetResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
LinkDatasetRequest request = new LinkDatasetRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
};
// Make the request
Operation<LinkDatasetResponse, OperationMetadata> response = await storageInsightsClient.LinkDatasetAsync(request);

// Poll until the returned long-running operation is complete
Operation<LinkDatasetResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
LinkDatasetResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LinkDatasetResponse, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceLinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LinkDatasetResponse retrievedResult = retrievedResponse.Result;
}

LinkDatasetAsync(LinkDatasetRequest, CancellationToken)

public virtual Task<Operation<LinkDatasetResponse, OperationMetadata>> LinkDatasetAsync(LinkDatasetRequest request, CancellationToken cancellationToken)

Links a dataset to BigQuery in a given project for a given location.

Parameters
Name Description
request LinkDatasetRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLinkDatasetResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
LinkDatasetRequest request = new LinkDatasetRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
};
// Make the request
Operation<LinkDatasetResponse, OperationMetadata> response = await storageInsightsClient.LinkDatasetAsync(request);

// Poll until the returned long-running operation is complete
Operation<LinkDatasetResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
LinkDatasetResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LinkDatasetResponse, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceLinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LinkDatasetResponse retrievedResult = retrievedResponse.Result;
}

LinkDatasetAsync(string, CallSettings)

public virtual Task<Operation<LinkDatasetResponse, OperationMetadata>> LinkDatasetAsync(string name, CallSettings callSettings = null)

Links a dataset to BigQuery in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLinkDatasetResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
Operation<LinkDatasetResponse, OperationMetadata> response = await storageInsightsClient.LinkDatasetAsync(name);

// Poll until the returned long-running operation is complete
Operation<LinkDatasetResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
LinkDatasetResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LinkDatasetResponse, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceLinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LinkDatasetResponse retrievedResult = retrievedResponse.Result;
}

LinkDatasetAsync(string, CancellationToken)

public virtual Task<Operation<LinkDatasetResponse, OperationMetadata>> LinkDatasetAsync(string name, CancellationToken cancellationToken)

Links a dataset to BigQuery in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLinkDatasetResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
Operation<LinkDatasetResponse, OperationMetadata> response = await storageInsightsClient.LinkDatasetAsync(name);

// Poll until the returned long-running operation is complete
Operation<LinkDatasetResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
LinkDatasetResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LinkDatasetResponse, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceLinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LinkDatasetResponse retrievedResult = retrievedResponse.Result;
}

ListDatasetConfigs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListDatasetConfigsResponse, DatasetConfig> ListDatasetConfigs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the dataset configurations in a given project for a given location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListDatasetConfigsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListDatasetConfigsResponseDatasetConfig

A pageable sequence of DatasetConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDatasetConfigsResponse, DatasetConfig> response = storageInsightsClient.ListDatasetConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DatasetConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatasetConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatasetConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatasetConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatasetConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDatasetConfigs(ListDatasetConfigsRequest, CallSettings)

public virtual PagedEnumerable<ListDatasetConfigsResponse, DatasetConfig> ListDatasetConfigs(ListDatasetConfigsRequest request, CallSettings callSettings = null)

Lists the dataset configurations in a given project for a given location.

Parameters
Name Description
request ListDatasetConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListDatasetConfigsResponseDatasetConfig

A pageable sequence of DatasetConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
ListDatasetConfigsRequest request = new ListDatasetConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListDatasetConfigsResponse, DatasetConfig> response = storageInsightsClient.ListDatasetConfigs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (DatasetConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatasetConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatasetConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatasetConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatasetConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDatasetConfigs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListDatasetConfigsResponse, DatasetConfig> ListDatasetConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the dataset configurations in a given project for a given location.

Parameters
Name Description
parent string

Required. Parent value for ListDatasetConfigsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListDatasetConfigsResponseDatasetConfig

A pageable sequence of DatasetConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListDatasetConfigsResponse, DatasetConfig> response = storageInsightsClient.ListDatasetConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DatasetConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatasetConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatasetConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatasetConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatasetConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDatasetConfigsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDatasetConfigsResponse, DatasetConfig> ListDatasetConfigsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the dataset configurations in a given project for a given location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListDatasetConfigsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListDatasetConfigsResponseDatasetConfig

A pageable asynchronous sequence of DatasetConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDatasetConfigsResponse, DatasetConfig> response = storageInsightsClient.ListDatasetConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DatasetConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDatasetConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatasetConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatasetConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatasetConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDatasetConfigsAsync(ListDatasetConfigsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListDatasetConfigsResponse, DatasetConfig> ListDatasetConfigsAsync(ListDatasetConfigsRequest request, CallSettings callSettings = null)

Lists the dataset configurations in a given project for a given location.

Parameters
Name Description
request ListDatasetConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListDatasetConfigsResponseDatasetConfig

A pageable asynchronous sequence of DatasetConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ListDatasetConfigsRequest request = new ListDatasetConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListDatasetConfigsResponse, DatasetConfig> response = storageInsightsClient.ListDatasetConfigsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DatasetConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDatasetConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatasetConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatasetConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatasetConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListDatasetConfigsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDatasetConfigsResponse, DatasetConfig> ListDatasetConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the dataset configurations in a given project for a given location.

Parameters
Name Description
parent string

Required. Parent value for ListDatasetConfigsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListDatasetConfigsResponseDatasetConfig

A pageable asynchronous sequence of DatasetConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListDatasetConfigsResponse, DatasetConfig> response = storageInsightsClient.ListDatasetConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DatasetConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDatasetConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DatasetConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DatasetConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DatasetConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportConfigs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListReportConfigsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListReportConfigsResponseReportConfig

A pageable sequence of ReportConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListReportConfigsResponse, ReportConfig> response = storageInsightsClient.ListReportConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReportConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReportConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportConfigs(ListReportConfigsRequest, CallSettings)

public virtual PagedEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigs(ListReportConfigsRequest request, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
Name Description
request ListReportConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListReportConfigsResponseReportConfig

A pageable sequence of ReportConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
ListReportConfigsRequest request = new ListReportConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListReportConfigsResponse, ReportConfig> response = storageInsightsClient.ListReportConfigs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReportConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReportConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportConfigs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListReportConfigsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListReportConfigsResponseReportConfig

A pageable sequence of ReportConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListReportConfigsResponse, ReportConfig> response = storageInsightsClient.ListReportConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReportConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReportConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportConfigsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListReportConfigsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListReportConfigsResponseReportConfig

A pageable asynchronous sequence of ReportConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> response = storageInsightsClient.ListReportConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReportConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportConfigsAsync(ListReportConfigsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigsAsync(ListReportConfigsRequest request, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
Name Description
request ListReportConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListReportConfigsResponseReportConfig

A pageable asynchronous sequence of ReportConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ListReportConfigsRequest request = new ListReportConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> response = storageInsightsClient.ListReportConfigsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReportConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportConfigsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListReportConfigsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListReportConfigsResponseReportConfig

A pageable asynchronous sequence of ReportConfig resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> response = storageInsightsClient.ListReportConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReportConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportDetails(ListReportDetailsRequest, CallSettings)

public virtual PagedEnumerable<ListReportDetailsResponse, ReportDetail> ListReportDetails(ListReportDetailsRequest request, CallSettings callSettings = null)

Lists ReportDetails in a given project and location.

Parameters
Name Description
request ListReportDetailsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListReportDetailsResponseReportDetail

A pageable sequence of ReportDetail resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
ListReportDetailsRequest request = new ListReportDetailsRequest
{
    ParentAsReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListReportDetailsResponse, ReportDetail> response = storageInsightsClient.ListReportDetails(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReportDetail item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReportDetailsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportDetail> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportDetails(ReportConfigName, string, int?, CallSettings)

public virtual PagedEnumerable<ListReportDetailsResponse, ReportDetail> ListReportDetails(ReportConfigName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportDetails in a given project and location.

Parameters
Name Description
parent ReportConfigName

Required. Parent value for ListReportDetailsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListReportDetailsResponseReportDetail

A pageable sequence of ReportDetail resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
ReportConfigName parent = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
PagedEnumerable<ListReportDetailsResponse, ReportDetail> response = storageInsightsClient.ListReportDetails(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReportDetail item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReportDetailsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportDetail> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportDetails(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListReportDetailsResponse, ReportDetail> ListReportDetails(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportDetails in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListReportDetailsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListReportDetailsResponseReportDetail

A pageable sequence of ReportDetail resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
PagedEnumerable<ListReportDetailsResponse, ReportDetail> response = storageInsightsClient.ListReportDetails(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReportDetail item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReportDetailsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportDetail> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportDetailsAsync(ListReportDetailsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListReportDetailsResponse, ReportDetail> ListReportDetailsAsync(ListReportDetailsRequest request, CallSettings callSettings = null)

Lists ReportDetails in a given project and location.

Parameters
Name Description
request ListReportDetailsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListReportDetailsResponseReportDetail

A pageable asynchronous sequence of ReportDetail resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ListReportDetailsRequest request = new ListReportDetailsRequest
{
    ParentAsReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListReportDetailsResponse, ReportDetail> response = storageInsightsClient.ListReportDetailsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReportDetail item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportDetailsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportDetail> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportDetailsAsync(ReportConfigName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReportDetailsResponse, ReportDetail> ListReportDetailsAsync(ReportConfigName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportDetails in a given project and location.

Parameters
Name Description
parent ReportConfigName

Required. Parent value for ListReportDetailsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListReportDetailsResponseReportDetail

A pageable asynchronous sequence of ReportDetail resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName parent = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
PagedAsyncEnumerable<ListReportDetailsResponse, ReportDetail> response = storageInsightsClient.ListReportDetailsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReportDetail item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportDetailsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportDetail> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReportDetailsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReportDetailsResponse, ReportDetail> ListReportDetailsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportDetails in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListReportDetailsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListReportDetailsResponseReportDetail

A pageable asynchronous sequence of ReportDetail resources.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
PagedAsyncEnumerable<ListReportDetailsResponse, ReportDetail> response = storageInsightsClient.ListReportDetailsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReportDetail item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportDetailsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportDetail item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReportDetail> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReportDetail item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PollOnceCreateDatasetConfig(string, CallSettings)

public virtual Operation<DatasetConfig, OperationMetadata> PollOnceCreateDatasetConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateDatasetConfig .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationDatasetConfigOperationMetadata

The result of polling the operation.

PollOnceCreateDatasetConfigAsync(string, CallSettings)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> PollOnceCreateDatasetConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateDatasetConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteDatasetConfig(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteDatasetConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteDatasetConfig .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteDatasetConfigAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteDatasetConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteDatasetConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceLinkDataset(string, CallSettings)

public virtual Operation<LinkDatasetResponse, OperationMetadata> PollOnceLinkDataset(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of LinkDataset.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLinkDatasetResponseOperationMetadata

The result of polling the operation.

PollOnceLinkDatasetAsync(string, CallSettings)

public virtual Task<Operation<LinkDatasetResponse, OperationMetadata>> PollOnceLinkDatasetAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of LinkDataset.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLinkDatasetResponseOperationMetadata

A task representing the result of polling the operation.

PollOnceUnlinkDataset(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceUnlinkDataset(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UnlinkDataset.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceUnlinkDatasetAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceUnlinkDatasetAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UnlinkDataset.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateDatasetConfig(string, CallSettings)

public virtual Operation<DatasetConfig, OperationMetadata> PollOnceUpdateDatasetConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateDatasetConfig .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationDatasetConfigOperationMetadata

The result of polling the operation.

PollOnceUpdateDatasetConfigAsync(string, CallSettings)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> PollOnceUpdateDatasetConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateDatasetConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UnlinkDataset(DatasetConfigName, CallSettings)

public virtual Operation<Empty, OperationMetadata> UnlinkDataset(DatasetConfigName name, CallSettings callSettings = null)

Unlinks a dataset from BigQuery in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = storageInsightsClient.UnlinkDataset(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceUnlinkDataset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

UnlinkDataset(UnlinkDatasetRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> UnlinkDataset(UnlinkDatasetRequest request, CallSettings callSettings = null)

Unlinks a dataset from BigQuery in a given project for a given location.

Parameters
Name Description
request UnlinkDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
UnlinkDatasetRequest request = new UnlinkDatasetRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = storageInsightsClient.UnlinkDataset(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceUnlinkDataset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

UnlinkDataset(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> UnlinkDataset(string name, CallSettings callSettings = null)

Unlinks a dataset from BigQuery in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = storageInsightsClient.UnlinkDataset(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceUnlinkDataset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

UnlinkDatasetAsync(DatasetConfigName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> UnlinkDatasetAsync(DatasetConfigName name, CallSettings callSettings = null)

Unlinks a dataset from BigQuery in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.UnlinkDatasetAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceUnlinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

UnlinkDatasetAsync(DatasetConfigName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> UnlinkDatasetAsync(DatasetConfigName name, CancellationToken cancellationToken)

Unlinks a dataset from BigQuery in a given project for a given location.

Parameters
Name Description
name DatasetConfigName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DatasetConfigName name = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.UnlinkDatasetAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceUnlinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

UnlinkDatasetAsync(UnlinkDatasetRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> UnlinkDatasetAsync(UnlinkDatasetRequest request, CallSettings callSettings = null)

Unlinks a dataset from BigQuery in a given project for a given location.

Parameters
Name Description
request UnlinkDatasetRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
UnlinkDatasetRequest request = new UnlinkDatasetRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.UnlinkDatasetAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceUnlinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

UnlinkDatasetAsync(UnlinkDatasetRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> UnlinkDatasetAsync(UnlinkDatasetRequest request, CancellationToken cancellationToken)

Unlinks a dataset from BigQuery in a given project for a given location.

Parameters
Name Description
request UnlinkDatasetRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
UnlinkDatasetRequest request = new UnlinkDatasetRequest
{
    DatasetConfigName = DatasetConfigName.FromProjectLocationDatasetConfig("[PROJECT]", "[LOCATION]", "[DATASET_CONFIG]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.UnlinkDatasetAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceUnlinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

UnlinkDatasetAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> UnlinkDatasetAsync(string name, CallSettings callSettings = null)

Unlinks a dataset from BigQuery in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.UnlinkDatasetAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceUnlinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

UnlinkDatasetAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> UnlinkDatasetAsync(string name, CancellationToken cancellationToken)

Unlinks a dataset from BigQuery in a given project for a given location.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/datasetConfigs/[DATASET_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = await storageInsightsClient.UnlinkDatasetAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceUnlinkDatasetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

UpdateDatasetConfig(DatasetConfig, FieldMask, CallSettings)

public virtual Operation<DatasetConfig, OperationMetadata> UpdateDatasetConfig(DatasetConfig datasetConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates a dataset configuration in a given project for a given location.

Parameters
Name Description
datasetConfig DatasetConfig

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the DatasetConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not provide a mask then it returns an "Invalid Argument" error.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationDatasetConfigOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
DatasetConfig datasetConfig = new DatasetConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DatasetConfig, OperationMetadata> response = storageInsightsClient.UpdateDatasetConfig(datasetConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceUpdateDatasetConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

UpdateDatasetConfig(UpdateDatasetConfigRequest, CallSettings)

public virtual Operation<DatasetConfig, OperationMetadata> UpdateDatasetConfig(UpdateDatasetConfigRequest request, CallSettings callSettings = null)

Updates a dataset configuration in a given project for a given location.

Parameters
Name Description
request UpdateDatasetConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationDatasetConfigOperationMetadata

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
UpdateDatasetConfigRequest request = new UpdateDatasetConfigRequest
{
    UpdateMask = new FieldMask(),
    DatasetConfig = new DatasetConfig(),
    RequestId = "",
};
// Make the request
Operation<DatasetConfig, OperationMetadata> response = storageInsightsClient.UpdateDatasetConfig(request);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = storageInsightsClient.PollOnceUpdateDatasetConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

UpdateDatasetConfigAsync(DatasetConfig, FieldMask, CallSettings)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> UpdateDatasetConfigAsync(DatasetConfig datasetConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates a dataset configuration in a given project for a given location.

Parameters
Name Description
datasetConfig DatasetConfig

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the DatasetConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not provide a mask then it returns an "Invalid Argument" error.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DatasetConfig datasetConfig = new DatasetConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DatasetConfig, OperationMetadata> response = await storageInsightsClient.UpdateDatasetConfigAsync(datasetConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceUpdateDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

UpdateDatasetConfigAsync(DatasetConfig, FieldMask, CancellationToken)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> UpdateDatasetConfigAsync(DatasetConfig datasetConfig, FieldMask updateMask, CancellationToken cancellationToken)

Updates a dataset configuration in a given project for a given location.

Parameters
Name Description
datasetConfig DatasetConfig

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the DatasetConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not provide a mask then it returns an "Invalid Argument" error.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
DatasetConfig datasetConfig = new DatasetConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DatasetConfig, OperationMetadata> response = await storageInsightsClient.UpdateDatasetConfigAsync(datasetConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceUpdateDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

UpdateDatasetConfigAsync(UpdateDatasetConfigRequest, CallSettings)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> UpdateDatasetConfigAsync(UpdateDatasetConfigRequest request, CallSettings callSettings = null)

Updates a dataset configuration in a given project for a given location.

Parameters
Name Description
request UpdateDatasetConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
UpdateDatasetConfigRequest request = new UpdateDatasetConfigRequest
{
    UpdateMask = new FieldMask(),
    DatasetConfig = new DatasetConfig(),
    RequestId = "",
};
// Make the request
Operation<DatasetConfig, OperationMetadata> response = await storageInsightsClient.UpdateDatasetConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceUpdateDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

UpdateDatasetConfigAsync(UpdateDatasetConfigRequest, CancellationToken)

public virtual Task<Operation<DatasetConfig, OperationMetadata>> UpdateDatasetConfigAsync(UpdateDatasetConfigRequest request, CancellationToken cancellationToken)

Updates a dataset configuration in a given project for a given location.

Parameters
Name Description
request UpdateDatasetConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationDatasetConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
UpdateDatasetConfigRequest request = new UpdateDatasetConfigRequest
{
    UpdateMask = new FieldMask(),
    DatasetConfig = new DatasetConfig(),
    RequestId = "",
};
// Make the request
Operation<DatasetConfig, OperationMetadata> response = await storageInsightsClient.UpdateDatasetConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<DatasetConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DatasetConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DatasetConfig, OperationMetadata> retrievedResponse = await storageInsightsClient.PollOnceUpdateDatasetConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    DatasetConfig retrievedResult = retrievedResponse.Result;
}

UpdateReportConfig(ReportConfig, FieldMask, CallSettings)

public virtual ReportConfig UpdateReportConfig(ReportConfig reportConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single ReportConfig.

Parameters
Name Description
reportConfig ReportConfig

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the ReportConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReportConfig

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
ReportConfig reportConfig = new ReportConfig();
FieldMask updateMask = new FieldMask();
// Make the request
ReportConfig response = storageInsightsClient.UpdateReportConfig(reportConfig, updateMask);

UpdateReportConfig(UpdateReportConfigRequest, CallSettings)

public virtual ReportConfig UpdateReportConfig(UpdateReportConfigRequest request, CallSettings callSettings = null)

Updates the parameters of a single ReportConfig.

Parameters
Name Description
request UpdateReportConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReportConfig

The RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = StorageInsightsClient.Create();
// Initialize request argument(s)
UpdateReportConfigRequest request = new UpdateReportConfigRequest
{
    UpdateMask = new FieldMask(),
    ReportConfig = new ReportConfig(),
    RequestId = "",
};
// Make the request
ReportConfig response = storageInsightsClient.UpdateReportConfig(request);

UpdateReportConfigAsync(ReportConfig, FieldMask, CallSettings)

public virtual Task<ReportConfig> UpdateReportConfigAsync(ReportConfig reportConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single ReportConfig.

Parameters
Name Description
reportConfig ReportConfig

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the ReportConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ReportConfig reportConfig = new ReportConfig();
FieldMask updateMask = new FieldMask();
// Make the request
ReportConfig response = await storageInsightsClient.UpdateReportConfigAsync(reportConfig, updateMask);

UpdateReportConfigAsync(ReportConfig, FieldMask, CancellationToken)

public virtual Task<ReportConfig> UpdateReportConfigAsync(ReportConfig reportConfig, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single ReportConfig.

Parameters
Name Description
reportConfig ReportConfig

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the ReportConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
ReportConfig reportConfig = new ReportConfig();
FieldMask updateMask = new FieldMask();
// Make the request
ReportConfig response = await storageInsightsClient.UpdateReportConfigAsync(reportConfig, updateMask);

UpdateReportConfigAsync(UpdateReportConfigRequest, CallSettings)

public virtual Task<ReportConfig> UpdateReportConfigAsync(UpdateReportConfigRequest request, CallSettings callSettings = null)

Updates the parameters of a single ReportConfig.

Parameters
Name Description
request UpdateReportConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
UpdateReportConfigRequest request = new UpdateReportConfigRequest
{
    UpdateMask = new FieldMask(),
    ReportConfig = new ReportConfig(),
    RequestId = "",
};
// Make the request
ReportConfig response = await storageInsightsClient.UpdateReportConfigAsync(request);

UpdateReportConfigAsync(UpdateReportConfigRequest, CancellationToken)

public virtual Task<ReportConfig> UpdateReportConfigAsync(UpdateReportConfigRequest request, CancellationToken cancellationToken)

Updates the parameters of a single ReportConfig.

Parameters
Name Description
request UpdateReportConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
StorageInsightsClient storageInsightsClient = await StorageInsightsClient.CreateAsync();
// Initialize request argument(s)
UpdateReportConfigRequest request = new UpdateReportConfigRequest
{
    UpdateMask = new FieldMask(),
    ReportConfig = new ReportConfig(),
    RequestId = "",
};
// Make the request
ReportConfig response = await storageInsightsClient.UpdateReportConfigAsync(request);