patch method
Updates the specified Application resource.
You can update the following fields: auth_domain - Google authentication domain for controlling user access to the application. default_cookie_expiration - Cookie expiration policy for the application. iap - Identity-Aware Proxy properties for the application.
request
- The metadata request object.
Request parameters:
projectsId
- Part of name
. Required. Name of the Application resource
to update. Example: apps/myapp.
locationsId
- Part of name
. See documentation of projectsId
.
applicationsId
- Part of name
. See documentation of projectsId
.
updateMask
- Required. Standard field mask for the set of fields to be
updated.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a Operation.
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<Operation> patch(
Application request,
core.String projectsId,
core.String locationsId,
core.String applicationsId, {
core.String? updateMask,
core.String? $fields,
}) async {
final body_ = convert.json.encode(request);
final queryParams_ = <core.String, core.List<core.String>>{
if (updateMask != null) 'updateMask': [updateMask],
if ($fields != null) 'fields': [$fields],
};
final url_ =
'v1/projects/' +
commons.escapeVariable('$projectsId') +
'/locations/' +
commons.escapeVariable('$locationsId') +
'/applications/' +
commons.escapeVariable('$applicationsId');
final response_ = await _requester.request(
url_,
'PATCH',
body: body_,
queryParams: queryParams_,
);
return Operation.fromJson(response_ as core.Map<core.String, core.dynamic>);
}