public string AddServicePublicKey(Guid serviceId, string publicKeyPem, bool active, DateTime?expires) { var request = new ServiceKeysPostRequest( serviceId, publicKeyPem, expires?.ToUniversalTime(), active ); var response = _transport.DirectoryV3ServiceKeysPost(request, _directoryId); return(response.Id); }