public virtual Response <ScriptLog> Get(int?tail = null, CancellationToken cancellationToken = default) { using var scope = _scriptLogDeploymentScriptsClientDiagnostics.CreateScope("ScriptLog.Get"); scope.Start(); try { var response = _scriptLogDeploymentScriptsRestClient.GetLogsDefault(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, tail, cancellationToken); if (response.Value == null) { throw new RequestFailedException(response.GetRawResponse()); } return(Response.FromValue(new ScriptLog(Client, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }