patch method
Future<GlobalFrontendSettingsPatchResponse>
patch(
- GlobalFrontendSettings request,
- String project, {
- String? requestId,
- String? updateMask,
- String? $fields,
Updates the Global Frontend Billing Bundle Settings for a project.
request - The metadata request object.
Request parameters:
project - Required. Project ID for this request.
requestId - An optional request ID to identify requests.
updateMask - Field mask to support patch. E.g., "type".
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GlobalFrontendSettingsPatchResponse.
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<GlobalFrontendSettingsPatchResponse> patch(
GlobalFrontendSettings request,
core.String project, {
core.String? requestId,
core.String? updateMask,
core.String? $fields,
}) async {
final body_ = convert.json.encode(request);
final queryParams_ = <core.String, core.List<core.String>>{
'requestId': ?requestId == null ? null : [requestId],
'updateMask': ?updateMask == null ? null : [updateMask],
'fields': ?$fields == null ? null : [$fields],
};
final url_ =
'projects/' +
commons.escapeVariable('$project') +
'/global/globalFrontendSettings';
final response_ = await _requester.request(
url_,
'PATCH',
body: body_,
queryParams: queryParams_,
);
return GlobalFrontendSettingsPatchResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}