Google Cloud Storage Insights v1 API - Class StorageInsightsClient (1.0.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

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
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default StorageInsights scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default StorageInsights scopes are:

GrpcClient

public virtual StorageInsights.StorageInsightsClient GrpcClient { get; }

The underlying gRPC StorageInsights client

Property Value
TypeDescription
StorageInsightsStorageInsightsClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

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
TypeDescription
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
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskStorageInsightsClient

The task representing the created StorageInsightsClient.

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
NameDescription
parentLocationName

Required. Value for parent.

reportConfigReportConfig

Required. The resource being created

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

reportConfigReportConfig

Required. The resource being created

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

Required. Value for parent.

reportConfigReportConfig

Required. The resource being created

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

Required. Value for parent.

reportConfigReportConfig

Required. The resource being created

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreateReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateReportConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

reportConfigReportConfig

Required. The resource being created

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

reportConfigReportConfig

Required. The resource being created

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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);

DeleteReportConfig(DeleteReportConfigRequest, CallSettings)

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

Deletes a single ReportConfig.

Parameters
NameDescription
requestDeleteReportConfigRequest

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

callSettingsCallSettings

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
NameDescription
nameReportConfigName

Required. Name of the resource

callSettingsCallSettings

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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

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
NameDescription
requestDeleteReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteReportConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameReportConfigName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameReportConfigName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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);

GetReportConfig(GetReportConfigRequest, CallSettings)

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

Gets details of a single ReportConfig.

Parameters
NameDescription
requestGetReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameReportConfigName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetReportConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameReportConfigName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameReportConfigName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetReportDetailRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameReportDetailName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetReportDetailRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetReportDetailRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameReportDetailName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameReportDetailName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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);

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
NameDescription
parentLocationName

Required. Parent value for ListReportConfigsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListReportConfigsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListReportConfigsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

Required. Parent value for ListReportConfigsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListReportConfigsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListReportConfigsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListReportDetailsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentReportConfigName

Required. Parent value for ListReportDetailsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListReportDetailsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListReportDetailsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentReportConfigName

Required. Parent value for ListReportDetailsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListReportDetailsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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;

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
TypeDescription
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.

UpdateReportConfig(ReportConfig, FieldMask, CallSettings)

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

Updates the parameters of a single ReportConfig.

Parameters
NameDescription
reportConfigReportConfig

Required. The resource being updated

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
reportConfigReportConfig

Required. The resource being updated

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
reportConfigReportConfig

Required. The resource being updated

updateMaskFieldMask

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestUpdateReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateReportConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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);