internal ListWorkspaceKeysResult(string userStorageKey, string userStorageResourceId, string appInsightsInstrumentationKey, RegistryListCredentialsResult containerRegistryCredentials, ListNotebookKeysResult notebookAccessKeys) { UserStorageKey = userStorageKey; UserStorageResourceId = userStorageResourceId; AppInsightsInstrumentationKey = appInsightsInstrumentationKey; ContainerRegistryCredentials = containerRegistryCredentials; NotebookAccessKeys = notebookAccessKeys; }
public async Task <Response <ListNotebookKeysResult> > ListKeysAsync(string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { if (resourceGroupName == null) { throw new ArgumentNullException(nameof(resourceGroupName)); } if (workspaceName == null) { throw new ArgumentNullException(nameof(workspaceName)); } using var message = CreateListKeysRequest(resourceGroupName, workspaceName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { ListNotebookKeysResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); value = ListNotebookKeysResult.DeserializeListNotebookKeysResult(document.RootElement); return(Response.FromValue(value, message.Response)); }