public abstract class MonitoringClientReference documentation and code samples for the Cloud Security Compliance v1 API class MonitoringClient.
Monitoring client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.CloudSecurityCompliance.V1Assembly
Google.Cloud.CloudSecurityCompliance.V1.dll
Remarks
Service describing handlers for resources
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the Monitoring service, which is a host of "cloudsecuritycompliance.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default Monitoring scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default Monitoring scopes are:
GrpcClient
public virtual Monitoring.MonitoringClient GrpcClient { get; }The underlying gRPC Monitoring client
| Property Value | |
|---|---|
| Type | Description |
MonitoringMonitoringClient |
|
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 |
|
Methods
AggregateFrameworkComplianceReport(AggregateFrameworkComplianceReportRequest, CallSettings)
public virtual AggregateFrameworkComplianceReportResponse AggregateFrameworkComplianceReport(AggregateFrameworkComplianceReportRequest request, CallSettings callSettings = null)Gets the aggregated compliance report over time for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregateFrameworkComplianceReportRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
AggregateFrameworkComplianceReportResponse |
The RPC response. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
AggregateFrameworkComplianceReportRequest request = new AggregateFrameworkComplianceReportRequest
{
FrameworkComplianceReportName = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"),
Interval = new Interval(),
Filter = "",
};
// Make the request
AggregateFrameworkComplianceReportResponse response = monitoringClient.AggregateFrameworkComplianceReport(request);
AggregateFrameworkComplianceReport(FrameworkComplianceReportName, CallSettings)
public virtual AggregateFrameworkComplianceReportResponse AggregateFrameworkComplianceReport(FrameworkComplianceReportName name, CallSettings callSettings = null)Gets the aggregated compliance report over time for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
FrameworkComplianceReportNameRequired. The name of the aggregated compliance report over time to retrieve. The supported format is:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
AggregateFrameworkComplianceReportResponse |
The RPC response. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
FrameworkComplianceReportName name = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
// Make the request
AggregateFrameworkComplianceReportResponse response = monitoringClient.AggregateFrameworkComplianceReport(name);
AggregateFrameworkComplianceReport(string, CallSettings)
public virtual AggregateFrameworkComplianceReportResponse AggregateFrameworkComplianceReport(string name, CallSettings callSettings = null)Gets the aggregated compliance report over time for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the aggregated compliance report over time to retrieve. The supported format is:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
AggregateFrameworkComplianceReportResponse |
The RPC response. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/frameworkComplianceReports/[FRAMEWORK_COMPLIANCE_REPORT]";
// Make the request
AggregateFrameworkComplianceReportResponse response = monitoringClient.AggregateFrameworkComplianceReport(name);
AggregateFrameworkComplianceReportAsync(AggregateFrameworkComplianceReportRequest, CallSettings)
public virtual Task<AggregateFrameworkComplianceReportResponse> AggregateFrameworkComplianceReportAsync(AggregateFrameworkComplianceReportRequest request, CallSettings callSettings = null)Gets the aggregated compliance report over time for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregateFrameworkComplianceReportRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskAggregateFrameworkComplianceReportResponse |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
AggregateFrameworkComplianceReportRequest request = new AggregateFrameworkComplianceReportRequest
{
FrameworkComplianceReportName = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"),
Interval = new Interval(),
Filter = "",
};
// Make the request
AggregateFrameworkComplianceReportResponse response = await monitoringClient.AggregateFrameworkComplianceReportAsync(request);
AggregateFrameworkComplianceReportAsync(AggregateFrameworkComplianceReportRequest, CancellationToken)
public virtual Task<AggregateFrameworkComplianceReportResponse> AggregateFrameworkComplianceReportAsync(AggregateFrameworkComplianceReportRequest request, CancellationToken cancellationToken)Gets the aggregated compliance report over time for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregateFrameworkComplianceReportRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskAggregateFrameworkComplianceReportResponse |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
AggregateFrameworkComplianceReportRequest request = new AggregateFrameworkComplianceReportRequest
{
FrameworkComplianceReportName = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"),
Interval = new Interval(),
Filter = "",
};
// Make the request
AggregateFrameworkComplianceReportResponse response = await monitoringClient.AggregateFrameworkComplianceReportAsync(request);
AggregateFrameworkComplianceReportAsync(FrameworkComplianceReportName, CallSettings)
public virtual Task<AggregateFrameworkComplianceReportResponse> AggregateFrameworkComplianceReportAsync(FrameworkComplianceReportName name, CallSettings callSettings = null)Gets the aggregated compliance report over time for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
FrameworkComplianceReportNameRequired. The name of the aggregated compliance report over time to retrieve. The supported format is:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskAggregateFrameworkComplianceReportResponse |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
FrameworkComplianceReportName name = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
// Make the request
AggregateFrameworkComplianceReportResponse response = await monitoringClient.AggregateFrameworkComplianceReportAsync(name);
AggregateFrameworkComplianceReportAsync(FrameworkComplianceReportName, CancellationToken)
public virtual Task<AggregateFrameworkComplianceReportResponse> AggregateFrameworkComplianceReportAsync(FrameworkComplianceReportName name, CancellationToken cancellationToken)Gets the aggregated compliance report over time for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
FrameworkComplianceReportNameRequired. The name of the aggregated compliance report over time to retrieve. The supported format is:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskAggregateFrameworkComplianceReportResponse |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
FrameworkComplianceReportName name = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
// Make the request
AggregateFrameworkComplianceReportResponse response = await monitoringClient.AggregateFrameworkComplianceReportAsync(name);
AggregateFrameworkComplianceReportAsync(string, CallSettings)
public virtual Task<AggregateFrameworkComplianceReportResponse> AggregateFrameworkComplianceReportAsync(string name, CallSettings callSettings = null)Gets the aggregated compliance report over time for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the aggregated compliance report over time to retrieve. The supported format is:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskAggregateFrameworkComplianceReportResponse |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/frameworkComplianceReports/[FRAMEWORK_COMPLIANCE_REPORT]";
// Make the request
AggregateFrameworkComplianceReportResponse response = await monitoringClient.AggregateFrameworkComplianceReportAsync(name);
AggregateFrameworkComplianceReportAsync(string, CancellationToken)
public virtual Task<AggregateFrameworkComplianceReportResponse> AggregateFrameworkComplianceReportAsync(string name, CancellationToken cancellationToken)Gets the aggregated compliance report over time for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the aggregated compliance report over time to retrieve. The supported format is:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskAggregateFrameworkComplianceReportResponse |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/frameworkComplianceReports/[FRAMEWORK_COMPLIANCE_REPORT]";
// Make the request
AggregateFrameworkComplianceReportResponse response = await monitoringClient.AggregateFrameworkComplianceReportAsync(name);
Create()
public static MonitoringClient Create()Synchronously creates a MonitoringClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use MonitoringClientBuilder.
| Returns | |
|---|---|
| Type | Description |
MonitoringClient |
The created MonitoringClient. |
CreateAsync(CancellationToken)
public static Task<MonitoringClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a MonitoringClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use MonitoringClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskMonitoringClient |
The task representing the created MonitoringClient. |
FetchFrameworkComplianceReport(FetchFrameworkComplianceReportRequest, CallSettings)
public virtual FrameworkComplianceReport FetchFrameworkComplianceReport(FetchFrameworkComplianceReportRequest request, CallSettings callSettings = null)Fetches the framework compliance report for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
FetchFrameworkComplianceReportRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FrameworkComplianceReport |
The RPC response. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
FetchFrameworkComplianceReportRequest request = new FetchFrameworkComplianceReportRequest
{
FrameworkComplianceReportName = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"),
EndTime = new Timestamp(),
};
// Make the request
FrameworkComplianceReport response = monitoringClient.FetchFrameworkComplianceReport(request);
FetchFrameworkComplianceReport(FrameworkComplianceReportName, CallSettings)
public virtual FrameworkComplianceReport FetchFrameworkComplianceReport(FrameworkComplianceReportName name, CallSettings callSettings = null)Fetches the framework compliance report for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
FrameworkComplianceReportNameRequired. The name of the framework compliance report to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FrameworkComplianceReport |
The RPC response. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
FrameworkComplianceReportName name = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
// Make the request
FrameworkComplianceReport response = monitoringClient.FetchFrameworkComplianceReport(name);
FetchFrameworkComplianceReport(string, CallSettings)
public virtual FrameworkComplianceReport FetchFrameworkComplianceReport(string name, CallSettings callSettings = null)Fetches the framework compliance report for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the framework compliance report to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FrameworkComplianceReport |
The RPC response. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/frameworkComplianceReports/[FRAMEWORK_COMPLIANCE_REPORT]";
// Make the request
FrameworkComplianceReport response = monitoringClient.FetchFrameworkComplianceReport(name);
FetchFrameworkComplianceReportAsync(FetchFrameworkComplianceReportRequest, CallSettings)
public virtual Task<FrameworkComplianceReport> FetchFrameworkComplianceReportAsync(FetchFrameworkComplianceReportRequest request, CallSettings callSettings = null)Fetches the framework compliance report for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
FetchFrameworkComplianceReportRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFrameworkComplianceReport |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
FetchFrameworkComplianceReportRequest request = new FetchFrameworkComplianceReportRequest
{
FrameworkComplianceReportName = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"),
EndTime = new Timestamp(),
};
// Make the request
FrameworkComplianceReport response = await monitoringClient.FetchFrameworkComplianceReportAsync(request);
FetchFrameworkComplianceReportAsync(FetchFrameworkComplianceReportRequest, CancellationToken)
public virtual Task<FrameworkComplianceReport> FetchFrameworkComplianceReportAsync(FetchFrameworkComplianceReportRequest request, CancellationToken cancellationToken)Fetches the framework compliance report for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
FetchFrameworkComplianceReportRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFrameworkComplianceReport |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
FetchFrameworkComplianceReportRequest request = new FetchFrameworkComplianceReportRequest
{
FrameworkComplianceReportName = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"),
EndTime = new Timestamp(),
};
// Make the request
FrameworkComplianceReport response = await monitoringClient.FetchFrameworkComplianceReportAsync(request);
FetchFrameworkComplianceReportAsync(FrameworkComplianceReportName, CallSettings)
public virtual Task<FrameworkComplianceReport> FetchFrameworkComplianceReportAsync(FrameworkComplianceReportName name, CallSettings callSettings = null)Fetches the framework compliance report for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
FrameworkComplianceReportNameRequired. The name of the framework compliance report to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFrameworkComplianceReport |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
FrameworkComplianceReportName name = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
// Make the request
FrameworkComplianceReport response = await monitoringClient.FetchFrameworkComplianceReportAsync(name);
FetchFrameworkComplianceReportAsync(FrameworkComplianceReportName, CancellationToken)
public virtual Task<FrameworkComplianceReport> FetchFrameworkComplianceReportAsync(FrameworkComplianceReportName name, CancellationToken cancellationToken)Fetches the framework compliance report for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
FrameworkComplianceReportNameRequired. The name of the framework compliance report to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFrameworkComplianceReport |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
FrameworkComplianceReportName name = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
// Make the request
FrameworkComplianceReport response = await monitoringClient.FetchFrameworkComplianceReportAsync(name);
FetchFrameworkComplianceReportAsync(string, CallSettings)
public virtual Task<FrameworkComplianceReport> FetchFrameworkComplianceReportAsync(string name, CallSettings callSettings = null)Fetches the framework compliance report for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the framework compliance report to retrieve. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFrameworkComplianceReport |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/frameworkComplianceReports/[FRAMEWORK_COMPLIANCE_REPORT]";
// Make the request
FrameworkComplianceReport response = await monitoringClient.FetchFrameworkComplianceReportAsync(name);
FetchFrameworkComplianceReportAsync(string, CancellationToken)
public virtual Task<FrameworkComplianceReport> FetchFrameworkComplianceReportAsync(string name, CancellationToken cancellationToken)Fetches the framework compliance report for a given scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the framework compliance report to retrieve. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFrameworkComplianceReport |
A Task containing the RPC response. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/frameworkComplianceReports/[FRAMEWORK_COMPLIANCE_REPORT]";
// Make the request
FrameworkComplianceReport response = await monitoringClient.FetchFrameworkComplianceReportAsync(name);
ListControlComplianceSummaries(FrameworkComplianceReportName, string, int?, CallSettings)
public virtual PagedEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> ListControlComplianceSummaries(FrameworkComplianceReportName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the control compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
FrameworkComplianceReportNameRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListControlComplianceSummariesResponseControlComplianceSummary |
A pageable sequence of ControlComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
FrameworkComplianceReportName parent = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
// Make the request
PagedEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> response = monitoringClient.ListControlComplianceSummaries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ControlComplianceSummary 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 (ListControlComplianceSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ControlComplianceSummary 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<ControlComplianceSummary> 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 (ControlComplianceSummary 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;
ListControlComplianceSummaries(ListControlComplianceSummariesRequest, CallSettings)
public virtual PagedEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> ListControlComplianceSummaries(ListControlComplianceSummariesRequest request, CallSettings callSettings = null)Lists the control compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
ListControlComplianceSummariesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListControlComplianceSummariesResponseControlComplianceSummary |
A pageable sequence of ControlComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
ListControlComplianceSummariesRequest request = new ListControlComplianceSummariesRequest
{
ParentAsFrameworkComplianceReportName = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> response = monitoringClient.ListControlComplianceSummaries(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ControlComplianceSummary 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 (ListControlComplianceSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ControlComplianceSummary 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<ControlComplianceSummary> 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 (ControlComplianceSummary 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;
ListControlComplianceSummaries(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> ListControlComplianceSummaries(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the control compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListControlComplianceSummariesResponseControlComplianceSummary |
A pageable sequence of ControlComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/frameworkComplianceReports/[FRAMEWORK_COMPLIANCE_REPORT]";
// Make the request
PagedEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> response = monitoringClient.ListControlComplianceSummaries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ControlComplianceSummary 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 (ListControlComplianceSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ControlComplianceSummary 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<ControlComplianceSummary> 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 (ControlComplianceSummary 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;
ListControlComplianceSummariesAsync(FrameworkComplianceReportName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> ListControlComplianceSummariesAsync(FrameworkComplianceReportName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the control compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
FrameworkComplianceReportNameRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListControlComplianceSummariesResponseControlComplianceSummary |
A pageable asynchronous sequence of ControlComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
FrameworkComplianceReportName parent = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]");
// Make the request
PagedAsyncEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> response = monitoringClient.ListControlComplianceSummariesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ControlComplianceSummary 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((ListControlComplianceSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ControlComplianceSummary 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<ControlComplianceSummary> 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 (ControlComplianceSummary 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;
ListControlComplianceSummariesAsync(ListControlComplianceSummariesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> ListControlComplianceSummariesAsync(ListControlComplianceSummariesRequest request, CallSettings callSettings = null)Lists the control compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
ListControlComplianceSummariesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListControlComplianceSummariesResponseControlComplianceSummary |
A pageable asynchronous sequence of ControlComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
ListControlComplianceSummariesRequest request = new ListControlComplianceSummariesRequest
{
ParentAsFrameworkComplianceReportName = FrameworkComplianceReportName.FromProjectLocationFrameworkComplianceReport("[PROJECT]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> response = monitoringClient.ListControlComplianceSummariesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ControlComplianceSummary 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((ListControlComplianceSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ControlComplianceSummary 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<ControlComplianceSummary> 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 (ControlComplianceSummary 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;
ListControlComplianceSummariesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> ListControlComplianceSummariesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the control compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListControlComplianceSummariesResponseControlComplianceSummary |
A pageable asynchronous sequence of ControlComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/frameworkComplianceReports/[FRAMEWORK_COMPLIANCE_REPORT]";
// Make the request
PagedAsyncEnumerable<ListControlComplianceSummariesResponse, ControlComplianceSummary> response = monitoringClient.ListControlComplianceSummariesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ControlComplianceSummary 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((ListControlComplianceSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ControlComplianceSummary 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<ControlComplianceSummary> 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 (ControlComplianceSummary 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;
ListFindingSummaries(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFindingSummariesResponse, FindingSummary> ListFindingSummaries(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the finding summary by category for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFindingSummariesResponseFindingSummary |
A pageable sequence of FindingSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFindingSummariesResponse, FindingSummary> response = monitoringClient.ListFindingSummaries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FindingSummary 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 (ListFindingSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FindingSummary 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<FindingSummary> 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 (FindingSummary 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;
ListFindingSummaries(FolderLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFindingSummariesResponse, FindingSummary> ListFindingSummaries(FolderLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the finding summary by category for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
FolderLocationNameRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFindingSummariesResponseFindingSummary |
A pageable sequence of FindingSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFindingSummariesResponse, FindingSummary> response = monitoringClient.ListFindingSummaries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FindingSummary 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 (ListFindingSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FindingSummary 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<FindingSummary> 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 (FindingSummary 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;
ListFindingSummaries(ListFindingSummariesRequest, CallSettings)
public virtual PagedEnumerable<ListFindingSummariesResponse, FindingSummary> ListFindingSummaries(ListFindingSummariesRequest request, CallSettings callSettings = null)Lists the finding summary by category for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFindingSummariesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFindingSummariesResponseFindingSummary |
A pageable sequence of FindingSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
ListFindingSummariesRequest request = new ListFindingSummariesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListFindingSummariesResponse, FindingSummary> response = monitoringClient.ListFindingSummaries(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (FindingSummary 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 (ListFindingSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FindingSummary 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<FindingSummary> 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 (FindingSummary 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;
ListFindingSummaries(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFindingSummariesResponse, FindingSummary> ListFindingSummaries(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the finding summary by category for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFindingSummariesResponseFindingSummary |
A pageable sequence of FindingSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFindingSummariesResponse, FindingSummary> response = monitoringClient.ListFindingSummaries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FindingSummary 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 (ListFindingSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FindingSummary 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<FindingSummary> 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 (FindingSummary 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;
ListFindingSummaries(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListFindingSummariesResponse, FindingSummary> ListFindingSummaries(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the finding summary by category for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFindingSummariesResponseFindingSummary |
A pageable sequence of FindingSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListFindingSummariesResponse, FindingSummary> response = monitoringClient.ListFindingSummaries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FindingSummary 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 (ListFindingSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FindingSummary 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<FindingSummary> 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 (FindingSummary 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;
ListFindingSummariesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFindingSummariesResponse, FindingSummary> ListFindingSummariesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the finding summary by category for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFindingSummariesResponseFindingSummary |
A pageable asynchronous sequence of FindingSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFindingSummariesResponse, FindingSummary> response = monitoringClient.ListFindingSummariesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FindingSummary 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((ListFindingSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FindingSummary 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<FindingSummary> 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 (FindingSummary 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;
ListFindingSummariesAsync(FolderLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFindingSummariesResponse, FindingSummary> ListFindingSummariesAsync(FolderLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the finding summary by category for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
FolderLocationNameRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFindingSummariesResponseFindingSummary |
A pageable asynchronous sequence of FindingSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFindingSummariesResponse, FindingSummary> response = monitoringClient.ListFindingSummariesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FindingSummary 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((ListFindingSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FindingSummary 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<FindingSummary> 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 (FindingSummary 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;
ListFindingSummariesAsync(ListFindingSummariesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFindingSummariesResponse, FindingSummary> ListFindingSummariesAsync(ListFindingSummariesRequest request, CallSettings callSettings = null)Lists the finding summary by category for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFindingSummariesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFindingSummariesResponseFindingSummary |
A pageable asynchronous sequence of FindingSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
ListFindingSummariesRequest request = new ListFindingSummariesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListFindingSummariesResponse, FindingSummary> response = monitoringClient.ListFindingSummariesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FindingSummary 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((ListFindingSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FindingSummary 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<FindingSummary> 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 (FindingSummary 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;
ListFindingSummariesAsync(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFindingSummariesResponse, FindingSummary> ListFindingSummariesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the finding summary by category for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFindingSummariesResponseFindingSummary |
A pageable asynchronous sequence of FindingSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFindingSummariesResponse, FindingSummary> response = monitoringClient.ListFindingSummariesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FindingSummary 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((ListFindingSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FindingSummary 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<FindingSummary> 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 (FindingSummary 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;
ListFindingSummariesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFindingSummariesResponse, FindingSummary> ListFindingSummariesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the finding summary by category for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent scope for the framework overview page. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFindingSummariesResponseFindingSummary |
A pageable asynchronous sequence of FindingSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListFindingSummariesResponse, FindingSummary> response = monitoringClient.ListFindingSummariesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FindingSummary 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((ListFindingSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FindingSummary 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<FindingSummary> 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 (FindingSummary 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;
ListFrameworkComplianceSummaries(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> ListFrameworkComplianceSummaries(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the framework compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent scope for the framework compliance summary. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFrameworkComplianceSummariesResponseFrameworkComplianceSummary |
A pageable sequence of FrameworkComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> response = monitoringClient.ListFrameworkComplianceSummaries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FrameworkComplianceSummary 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 (ListFrameworkComplianceSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FrameworkComplianceSummary 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<FrameworkComplianceSummary> 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 (FrameworkComplianceSummary 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;
ListFrameworkComplianceSummaries(FolderLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> ListFrameworkComplianceSummaries(FolderLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the framework compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
FolderLocationNameRequired. The parent scope for the framework compliance summary. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFrameworkComplianceSummariesResponseFrameworkComplianceSummary |
A pageable sequence of FrameworkComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> response = monitoringClient.ListFrameworkComplianceSummaries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FrameworkComplianceSummary 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 (ListFrameworkComplianceSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FrameworkComplianceSummary 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<FrameworkComplianceSummary> 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 (FrameworkComplianceSummary 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;
ListFrameworkComplianceSummaries(ListFrameworkComplianceSummariesRequest, CallSettings)
public virtual PagedEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> ListFrameworkComplianceSummaries(ListFrameworkComplianceSummariesRequest request, CallSettings callSettings = null)Lists the framework compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFrameworkComplianceSummariesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFrameworkComplianceSummariesResponseFrameworkComplianceSummary |
A pageable sequence of FrameworkComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
ListFrameworkComplianceSummariesRequest request = new ListFrameworkComplianceSummariesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> response = monitoringClient.ListFrameworkComplianceSummaries(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (FrameworkComplianceSummary 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 (ListFrameworkComplianceSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FrameworkComplianceSummary 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<FrameworkComplianceSummary> 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 (FrameworkComplianceSummary 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;
ListFrameworkComplianceSummaries(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> ListFrameworkComplianceSummaries(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the framework compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The parent scope for the framework compliance summary. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFrameworkComplianceSummariesResponseFrameworkComplianceSummary |
A pageable sequence of FrameworkComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> response = monitoringClient.ListFrameworkComplianceSummaries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FrameworkComplianceSummary 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 (ListFrameworkComplianceSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FrameworkComplianceSummary 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<FrameworkComplianceSummary> 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 (FrameworkComplianceSummary 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;
ListFrameworkComplianceSummaries(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> ListFrameworkComplianceSummaries(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the framework compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent scope for the framework compliance summary. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFrameworkComplianceSummariesResponseFrameworkComplianceSummary |
A pageable sequence of FrameworkComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = MonitoringClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> response = monitoringClient.ListFrameworkComplianceSummaries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FrameworkComplianceSummary 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 (ListFrameworkComplianceSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FrameworkComplianceSummary 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<FrameworkComplianceSummary> 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 (FrameworkComplianceSummary 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;
ListFrameworkComplianceSummariesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> ListFrameworkComplianceSummariesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the framework compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent scope for the framework compliance summary. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFrameworkComplianceSummariesResponseFrameworkComplianceSummary |
A pageable asynchronous sequence of FrameworkComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> response = monitoringClient.ListFrameworkComplianceSummariesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FrameworkComplianceSummary 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((ListFrameworkComplianceSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FrameworkComplianceSummary 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<FrameworkComplianceSummary> 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 (FrameworkComplianceSummary 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;
ListFrameworkComplianceSummariesAsync(FolderLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> ListFrameworkComplianceSummariesAsync(FolderLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the framework compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
FolderLocationNameRequired. The parent scope for the framework compliance summary. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFrameworkComplianceSummariesResponseFrameworkComplianceSummary |
A pageable asynchronous sequence of FrameworkComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> response = monitoringClient.ListFrameworkComplianceSummariesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FrameworkComplianceSummary 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((ListFrameworkComplianceSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FrameworkComplianceSummary 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<FrameworkComplianceSummary> 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 (FrameworkComplianceSummary 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;
ListFrameworkComplianceSummariesAsync(ListFrameworkComplianceSummariesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> ListFrameworkComplianceSummariesAsync(ListFrameworkComplianceSummariesRequest request, CallSettings callSettings = null)Lists the framework compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFrameworkComplianceSummariesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFrameworkComplianceSummariesResponseFrameworkComplianceSummary |
A pageable asynchronous sequence of FrameworkComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
ListFrameworkComplianceSummariesRequest request = new ListFrameworkComplianceSummariesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> response = monitoringClient.ListFrameworkComplianceSummariesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FrameworkComplianceSummary 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((ListFrameworkComplianceSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FrameworkComplianceSummary 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<FrameworkComplianceSummary> 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 (FrameworkComplianceSummary 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;
ListFrameworkComplianceSummariesAsync(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> ListFrameworkComplianceSummariesAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the framework compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
OrganizationLocationNameRequired. The parent scope for the framework compliance summary. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFrameworkComplianceSummariesResponseFrameworkComplianceSummary |
A pageable asynchronous sequence of FrameworkComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> response = monitoringClient.ListFrameworkComplianceSummariesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FrameworkComplianceSummary 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((ListFrameworkComplianceSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FrameworkComplianceSummary 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<FrameworkComplianceSummary> 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 (FrameworkComplianceSummary 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;
ListFrameworkComplianceSummariesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> ListFrameworkComplianceSummariesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the framework compliance summary for a given scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent scope for the framework compliance summary. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFrameworkComplianceSummariesResponseFrameworkComplianceSummary |
A pageable asynchronous sequence of FrameworkComplianceSummary resources. |
// Create client
MonitoringClient monitoringClient = await MonitoringClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> response = monitoringClient.ListFrameworkComplianceSummariesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FrameworkComplianceSummary 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((ListFrameworkComplianceSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FrameworkComplianceSummary 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<FrameworkComplianceSummary> 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 (FrameworkComplianceSummary 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 | |
|---|---|
| Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
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.