showEffectiveFlowLogsConfigs method

Future<ShowEffectiveFlowLogsConfigsResponse> showEffectiveFlowLogsConfigs(
  1. String parent, {
  2. String? filter,
  3. int? pageSize,
  4. String? pageToken,
  5. String? resource,
  6. String? $fields,
})

ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a specified resource.

Request parameters:

parent - Required. The parent resource of the VpcFlowLogsConfig, specified in the following format: projects/{project_id}/locations/global Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$.

filter - Optional. Lists the EffectiveVpcFlowLogsConfigs that match the filter expression. A filter expression must use the supported CEL logic operators.

pageSize - Optional. Number of EffectiveVpcFlowLogsConfigs to return. Default is 30.

pageToken - Optional. Page token from an earlier query, as returned in next_page_token.

resource - Required. The resource to get the effective VPC Flow Logs configuration for. The resource must belong to the same project as the parent. The resource must be a network, subnetwork, interconnect attachment, VPN tunnel, or a project.

$fields - Selector specifying which fields to include in a partial response.

Completes with a ShowEffectiveFlowLogsConfigsResponse.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.

Implementation

async.Future<ShowEffectiveFlowLogsConfigsResponse>
showEffectiveFlowLogsConfigs(
  core.String parent, {
  core.String? filter,
  core.int? pageSize,
  core.String? pageToken,
  core.String? resource,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (filter != null) 'filter': [filter],
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if (resource != null) 'resource': [resource],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ =
      'v1/' +
      core.Uri.encodeFull('$parent') +
      '/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return ShowEffectiveFlowLogsConfigsResponse.fromJson(
    response_ as core.Map<core.String, core.dynamic>,
  );
}