def list_key_credentials(object_id, custom_headers:nil)
      response = list_key_credentials_async(object_id, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def list_key_credentials(object_id, custom_headers:nil)
      response = list_key_credentials_async(object_id, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Get the keyCredentials associated with the specified service principal.

 @param object_id [String] The object ID of the service principal for which to
 get keyCredentials.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [KeyCredentialListResult] operation results.