list method

Future<GoogleCloudResourcesettingsV1ListSettingsResponse> list(
  1. String parent, {
  2. int? pageSize,
  3. String? pageToken,
  4. String? view,
  5. String? $fields,
})

Lists all the settings that are available on the Cloud resource parent.

Request parameters:

parent - Required. The project, folder, or organization that is the parent resource for this setting. Must be in one of the following forms: * projects/{project_number} * projects/{project_id} * folders/{folder_id} * organizations/{organization_id} Value must have pattern ^projects/\[^/\]+$.

pageSize - Unused. The size of the page to be returned.

pageToken - Unused. A page token used to retrieve the next page.

view - The SettingView for this request. Possible string values are:

  • "SETTING_VIEW_UNSPECIFIED" : The default / unset value. The API will default to the SETTING_VIEW_BASIC view.
  • "SETTING_VIEW_BASIC" : Include Setting.metadata, but nothing else. This is the default value (for both ListSettings and GetSetting).
  • "SETTING_VIEW_EFFECTIVE_VALUE" : Include Setting.effective_value, but nothing else.
  • "SETTING_VIEW_LOCAL_VALUE" : Include Setting.local_value, but nothing else.

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

Completes with a GoogleCloudResourcesettingsV1ListSettingsResponse.

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<GoogleCloudResourcesettingsV1ListSettingsResponse> list(
  core.String parent, {
  core.int? pageSize,
  core.String? pageToken,
  core.String? view,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if (view != null) 'view': [view],
    if ($fields != null) 'fields': [$fields],
  };

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

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