ServerAzureADAdministratorResource IOperationSource <ServerAzureADAdministratorResource> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = ServerAzureADAdministratorData.DeserializeServerAzureADAdministratorData(document.RootElement);

            return(new ServerAzureADAdministratorResource(_client, data));
        }
        public async Task <Response <ServerAzureADAdministratorData> > GetAsync(string subscriptionId, string resourceGroupName, string serverName, AdministratorName administratorName, CancellationToken cancellationToken = default)
        {
            if (subscriptionId == null)
            {
                throw new ArgumentNullException(nameof(subscriptionId));
            }
            if (resourceGroupName == null)
            {
                throw new ArgumentNullException(nameof(resourceGroupName));
            }
            if (serverName == null)
            {
                throw new ArgumentNullException(nameof(serverName));
            }

            using var message = CreateGetRequest(subscriptionId, resourceGroupName, serverName, administratorName);
            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);

            switch (message.Response.Status)
            {
            case 200:
            {
                ServerAzureADAdministratorData value = default;
                using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);

                value = ServerAzureADAdministratorData.DeserializeServerAzureADAdministratorData(document.RootElement);
                return(Response.FromValue(value, message.Response));
            }