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 StatusException if the API failed with a
Status message. Throws a ServiceException for any other failure.
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);
}