public async virtual Task <Response <ApplicationGatewayAvailableSslOptions> > GetAsync(CancellationToken cancellationToken = default) { using var scope = _applicationGatewayAvailableSslOptionsApplicationGatewaysClientDiagnostics.CreateScope("ApplicationGatewayAvailableSslOptions.Get"); scope.Start(); try { var response = await _applicationGatewayAvailableSslOptionsApplicationGatewaysRestClient.ListAvailableSslOptionsAsync(Id.SubscriptionId, cancellationToken).ConfigureAwait(false); if (response.Value == null) { throw await _applicationGatewayAvailableSslOptionsApplicationGatewaysClientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); } return(Response.FromValue(new ApplicationGatewayAvailableSslOptions(Client, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }