transferOwnership method
Transfers ownership of the tuned model. This is the only way to change ownership of the tuned model. The current owner will be downgraded to writer role.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Implementation
Future<TransferOwnershipResponse> transferOwnership(
TransferOwnershipRequest request,
) async {
final url = Uri.https(_host, '/v1beta/${request.name}:transferOwnership');
final response = await _client.post(url, body: request);
return TransferOwnershipResponse.fromJson(response);
}