get method

Future<Css> get(
  1. String cssGroupId,
  2. String cssDomainId, {
  3. String? $fields,
})

Retrieves a single CSS domain by ID.

Request parameters:

cssGroupId - Required. The ID of the managing account. If this parameter is not the same as [cssDomainId](#cssDomainId), then this ID must be a CSS group ID and cssDomainId must be the ID of a CSS domain affiliated with this group.

cssDomainId - Required. The ID of the CSS domain to return.

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

Completes with a Css.

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

  final url_ = commons.escapeVariable('$cssGroupId') +
      '/csses/' +
      commons.escapeVariable('$cssDomainId');

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