queryContentTransfersBreakdowns method

Future<GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse> queryContentTransfersBreakdowns(
  1. String customer, {
  2. String? breakdown,
  3. String? filter,
  4. String? fixedTimeRange,
  5. String? metric,
  6. int? pageSize,
  7. String? pageToken,
  8. String? $fields,
})

Returns summaries of content transfers for a given metric and breakdown dimension.

Request parameters:

customer - Required. The customer ID in the format "customers/{customer_id}". Value must have pattern ^customers/\[^/\]+$.

breakdown - Optional. The dimension to break down the content transfers by. Defaults to USER. Possible string values are:

  • "CONTENT_TRANSFERS_BREAKDOWN_DIMENSION_UNSPECIFIED" : Unspecified breakdown dimension. Defaults to USER.
  • "USER" : Breakdown by user.
  • "EVENT_DOMAIN" : Breakdown by event domain.
  • "CONTENT_CATEGORY" : Breakdown by content category.

filter - Optional. The filter to apply to the request. For syntax, see AIP-160. Data is not available for events older than 180 days or more recent than 48 hours ago. If event_time is not specified, results will end 48 hours ago. Supported fields for filtering: - user - event_domain - content_category - event_time Filtering by user or event_domain requires the breakdown dimension to be set to the corresponding value (e.g., you must set breakdown = USER to filter by user). Supported operators: - = for user, event_domain, and content_category. - <= for event_time. Supported conjunctions: - AND Example: user = "testuser" AND event_time <= "2024-01-02T00:00:00Z"

fixedTimeRange - Optional. The fixed time range to return the breakdowns for. Defaults to FIXED_TIME_RANGE_FOUR_WEEKS. Fixed time ranges are used to allow for precomputation and optimize response times. Possible string values are:

  • "FIXED_TIME_RANGE_UNSPECIFIED" : Unspecified fixed time range. Defaults to FIXED_TIME_RANGE_FOUR_WEEKS.
  • "FIXED_TIME_RANGE_FOUR_HOURS" : Four hours.
  • "FIXED_TIME_RANGE_ONE_DAY" : One day.
  • "FIXED_TIME_RANGE_ONE_WEEK" : One week.
  • "FIXED_TIME_RANGE_FOUR_WEEKS" : Four weeks.

metric - Optional. The metric to return the breakdowns for. Defaults to CONTENT_TRANSFERS_METRIC_TOTAL_TRANSFERS. Possible string values are:

  • "CONTENT_TRANSFERS_METRIC_UNSPECIFIED" : Unspecified content transfers metric. Defaults to CONTENT_TRANSFERS_METRIC_TOTAL_TRANSFERS.
  • "CONTENT_TRANSFERS_METRIC_TOTAL_TRANSFERS" : The total number of content transfers (sensitive and non-sensitive). This is the sum of the total_uploads, total_downloads, and total_prints.
  • "CONTENT_TRANSFERS_METRIC_TOTAL_UPLOADS" : The total number of content uploads (sensitive and non-sensitive).
  • "CONTENT_TRANSFERS_METRIC_TOTAL_DOWNLOADS" : The total number of content downloads (sensitive and non-sensitive).
  • "CONTENT_TRANSFERS_METRIC_TOTAL_PRINTS" : The total number of content prints (sensitive and non-sensitive).
  • "CONTENT_TRANSFERS_METRIC_TOTAL_SENSITIVE_TRANSFERS" : The total number of sensitive content transfers. This is the sum of the sensitive_uploads, sensitive_downloads, and sensitive_prints.
  • "CONTENT_TRANSFERS_METRIC_SENSITIVE_UPLOADS" : The number of sensitive content uploads.
  • "CONTENT_TRANSFERS_METRIC_SENSITIVE_DOWNLOADS" : The number of sensitive content downloads.
  • "CONTENT_TRANSFERS_METRIC_SENSITIVE_PRINTS" : The number of sensitive content prints.

pageSize - Optional. The maximum number of breakdowns to return. The service may return fewer than this value. If unspecified, at most 50 breakdowns will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

pageToken - Optional. A page token, received from a previous QueryContentTransfersBreakdowns call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to QueryContentTransfersBreakdowns must match the call that provided the page token.

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

Completes with a GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse.

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<
  GoogleChromeManagementVersionsV1QueryContentTransfersBreakdownsResponse
>
queryContentTransfersBreakdowns(
  core.String customer, {
  core.String? breakdown,
  core.String? filter,
  core.String? fixedTimeRange,
  core.String? metric,
  core.int? pageSize,
  core.String? pageToken,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    'breakdown': ?breakdown == null ? null : [breakdown],
    'filter': ?filter == null ? null : [filter],
    'fixedTimeRange': ?fixedTimeRange == null ? null : [fixedTimeRange],
    'metric': ?metric == null ? null : [metric],
    'pageSize': ?pageSize == null ? null : ['${pageSize}'],
    'pageToken': ?pageToken == null ? null : [pageToken],
    'fields': ?$fields == null ? null : [$fields],
  };

  final url_ =
      'v1/' +
      core.Uri.encodeFull('$customer') +
      '/enterprise/securityInsights:queryContentTransfersBreakdowns';

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