get method

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

Gets a Floodlight group.

Request parameters:

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

partnerId - Required. The partner context by which the Floodlight group is being accessed.

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

Completes with a FloodlightGroup.

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<FloodlightGroup> get(
  core.String floodlightGroupId, {
  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_ =
      'v3/floodlightGroups/' + core.Uri.encodeFull('$floodlightGroupId');

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