updateBackendAuth method
Updates an existing backend authentication resource.
May throw BadRequestException.
May throw GatewayTimeoutException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter appId :
The app ID.
Parameter backendEnvironmentName :
The name of the backend environment.
Parameter resourceConfig :
The resource configuration for this request object.
Parameter resourceName :
The name of this resource.
Implementation
Future<UpdateBackendAuthResponse> updateBackendAuth({
required String appId,
required String backendEnvironmentName,
required UpdateBackendAuthResourceConfig resourceConfig,
required String resourceName,
}) async {
final $payload = <String, dynamic>{
'resourceConfig': resourceConfig,
'resourceName': resourceName,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/backend/${Uri.encodeComponent(appId)}/auth/${Uri.encodeComponent(backendEnvironmentName)}',
exceptionFnMap: _exceptionFns,
);
return UpdateBackendAuthResponse.fromJson(response);
}