public async Task TimeSeriesInsightsClient_Construct() { TimeSeriesInsightsClient client = GetClient(); Response <Models.ModelSettingsResponse> response = await client.GetAsync().ConfigureAwait(false); response.GetRawResponse().Status.Should().Be(200); }
/// <summary> /// This sample is a placeholder to demo the snippet generation. /// </summary> public async Task RunSamplesAsync() { try { #region Snippet:TimeSeriesInsightsGetModelSettings // Get the model settings for the time series insights environment Response <Models.ModelSettingsResponse> response = await client.GetAsync().ConfigureAwait(false); Console.WriteLine($"Retrieved model {response.Value.ModelSettings.Name}."); #endregion Snippet:TimeSeriesInsightsGetModelSettings } catch (Exception ex) { FatalError($"Failed to create models due to:\n{ex}"); } }