get method

Future<FloodlightActivity> get(
  1. String floodlightGroupId,
  2. String floodlightActivityId, {
  3. String? partnerId,
  4. String? $fields,
})

Gets a Floodlight activity.

Request parameters:

floodlightGroupId - Required. The ID of the parent Floodlight group to which the requested Floodlight activity belongs. Value must have pattern ^\[^/\]+$.

floodlightActivityId - Required. The ID of the Floodlight activity to fetch. Value must have pattern ^\[^/\]+$.

partnerId - Required. The ID of the partner through which the Floodlight activity is being accessed.

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

Completes with a FloodlightActivity.

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<FloodlightActivity> get(
  core.String floodlightGroupId,
  core.String floodlightActivityId, {
  core.String? partnerId,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (partnerId != null) 'partnerId': [partnerId],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v2/floodlightGroups/' +
      core.Uri.encodeFull('$floodlightGroupId') +
      '/floodlightActivities/' +
      core.Uri.encodeFull('$floodlightActivityId');

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