From 66609b0ef80e4971167ce9cd2841191b59194543 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 28 Sep 2023 13:52:13 +0000 Subject: [PATCH 1/4] Update Generator Version 3.0.0-beta.20230928.1 --- eng/Packages.Data.props | 2 +- eng/emitter-package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 664ea12836886..6d46578a7c6f5 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -174,7 +174,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 80c9993819d17..baea717ce990b 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,6 +1,6 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20230927.3" + "@azure-tools/typespec-csharp": "0.2.0-beta.20230928.1" } } From 343d5a586a7a48b67468642a1206e3487362cdcd Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 28 Sep 2023 14:03:39 +0000 Subject: [PATCH 2/4] Update SDK codes --- .../Generated/Docs/CancerProfilingClient.xml | 106 --------- .../Generated/Docs/ClinicalMatchingClient.xml | 202 ------------------ 2 files changed, 308 deletions(-) diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Docs/CancerProfilingClient.xml b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Docs/CancerProfilingClient.xml index da0a1e9cc5ed6..e6b5b30dfdd48 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Docs/CancerProfilingClient.xml +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/Docs/CancerProfilingClient.xml @@ -141,19 +141,6 @@ Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); Console.WriteLine(result.GetProperty("lastUpdateDateTime").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call InferCancerProfileAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -CancerProfilingClient client = new CancerProfilingClient(endpoint, credential); - -OncoPhenotypeData oncoPhenotypeData = new OncoPhenotypeData(new PatientRecord[] -{ - new PatientRecord("") -}); -Operation operation = await client.InferCancerProfileAsync(WaitUntil.Completed, oncoPhenotypeData); -OncoPhenotypeResult responseData = operation.Value; -]]> This sample shows how to call InferCancerProfileAsync with all parameters and request content and parse the result. "); @@ -240,46 +227,6 @@ Console.WriteLine(result.GetProperty("results").GetProperty("patients")[0].GetPr Console.WriteLine(result.GetProperty("results").GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); Console.WriteLine(result.GetProperty("results").GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("caseId").ToString()); Console.WriteLine(result.GetProperty("results").GetProperty("modelVersion").ToString()); -]]> -This sample shows how to call InferCancerProfileAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -CancerProfilingClient client = new CancerProfilingClient(endpoint, credential); - -OncoPhenotypeData oncoPhenotypeData = new OncoPhenotypeData(new PatientRecord[] -{ - new PatientRecord("") - { - Info = new PatientInfo - { - Sex = PatientInfoSex.Female, - BirthDate = DateTimeOffset.Parse("2022-05-10"), - ClinicalInfo = {new ClinicalCodedElement("", "") - { - Name = "", - Value = "", - }}, - }, - Data = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) - { - ClinicalType = ClinicalDocumentType.Consultation, - Language = "", - CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), - }}, - } -}) -{ - Configuration = new OncoPhenotypeModelConfiguration - { - Verbose = true, - IncludeEvidence = true, - InferenceTypes = { OncoPhenotypeInferenceType.TumorSite }, - CheckForCancerCase = true, - }, -}; -Operation operation = await client.InferCancerProfileAsync(WaitUntil.Completed, oncoPhenotypeData); -OncoPhenotypeResult responseData = operation.Value; ]]> @@ -310,19 +257,6 @@ Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); Console.WriteLine(result.GetProperty("lastUpdateDateTime").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call InferCancerProfile. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -CancerProfilingClient client = new CancerProfilingClient(endpoint, credential); - -OncoPhenotypeData oncoPhenotypeData = new OncoPhenotypeData(new PatientRecord[] -{ - new PatientRecord("") -}); -Operation operation = client.InferCancerProfile(WaitUntil.Completed, oncoPhenotypeData); -OncoPhenotypeResult responseData = operation.Value; -]]> This sample shows how to call InferCancerProfile with all parameters and request content and parse the result. "); @@ -409,46 +343,6 @@ Console.WriteLine(result.GetProperty("results").GetProperty("patients")[0].GetPr Console.WriteLine(result.GetProperty("results").GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("evidence")[0].GetProperty("importance").ToString()); Console.WriteLine(result.GetProperty("results").GetProperty("patients")[0].GetProperty("inferences")[0].GetProperty("caseId").ToString()); Console.WriteLine(result.GetProperty("results").GetProperty("modelVersion").ToString()); -]]> -This sample shows how to call InferCancerProfile with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -CancerProfilingClient client = new CancerProfilingClient(endpoint, credential); - -OncoPhenotypeData oncoPhenotypeData = new OncoPhenotypeData(new PatientRecord[] -{ - new PatientRecord("") - { - Info = new PatientInfo - { - Sex = PatientInfoSex.Female, - BirthDate = DateTimeOffset.Parse("2022-05-10"), - ClinicalInfo = {new ClinicalCodedElement("", "") - { - Name = "", - Value = "", - }}, - }, - Data = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) - { - ClinicalType = ClinicalDocumentType.Consultation, - Language = "", - CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), - }}, - } -}) -{ - Configuration = new OncoPhenotypeModelConfiguration - { - Verbose = true, - IncludeEvidence = true, - InferenceTypes = { OncoPhenotypeInferenceType.TumorSite }, - CheckForCancerCase = true, - }, -}; -Operation operation = client.InferCancerProfile(WaitUntil.Completed, oncoPhenotypeData); -OncoPhenotypeResult responseData = operation.Value; ]]> diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml index 026da23559da4..61ebd64fc0001 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml @@ -237,19 +237,6 @@ Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); Console.WriteLine(result.GetProperty("lastUpdateDateTime").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call MatchTrialsAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ClinicalMatchingClient client = new ClinicalMatchingClient(endpoint, credential); - -TrialMatcherData trialMatcherData = new TrialMatcherData(new PatientRecord[] -{ - new PatientRecord("") -}); -Operation operation = await client.MatchTrialsAsync(WaitUntil.Completed, trialMatcherData); -TrialMatcherResult responseData = operation.Value; -]]> This sample shows how to call MatchTrialsAsync with all parameters and request content and parse the result. "); @@ -482,94 +469,6 @@ Console.WriteLine(result.GetProperty("results").GetProperty("patients")[0].GetPr Console.WriteLine(result.GetProperty("results").GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("category").ToString()); Console.WriteLine(result.GetProperty("results").GetProperty("modelVersion").ToString()); Console.WriteLine(result.GetProperty("results").GetProperty("knowledgeGraphLastUpdateDate").ToString()); -]]> -This sample shows how to call MatchTrialsAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ClinicalMatchingClient client = new ClinicalMatchingClient(endpoint, credential); - -TrialMatcherData trialMatcherData = new TrialMatcherData(new PatientRecord[] -{ - new PatientRecord("") - { - Info = new PatientInfo - { - Sex = PatientInfoSex.Female, - BirthDate = DateTimeOffset.Parse("2022-05-10"), - ClinicalInfo = {new ClinicalCodedElement("", "") - { - Name = "", - Value = "", - }}, - }, - Data = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) - { - ClinicalType = ClinicalDocumentType.Consultation, - Language = "", - CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), - }}, - } -}) -{ - Configuration = new TrialMatcherModelConfiguration(new ClinicalTrials - { - CustomTrials = {new ClinicalTrialDetails("", new ClinicalTrialMetadata(new string[]{""}) - { - Phases = {ClinicalTrialPhase.NotApplicable}, - StudyType = ClinicalTrialStudyType.Interventional, - RecruitmentStatus = ClinicalTrialRecruitmentStatus.UnknownStatus, - Sponsors = {""}, - Contacts = {new ContactDetails - { - Name = "", - Email = "", - Phone = "", - }}, - Facilities = {new ClinicalTrialResearchFacility("", "") - { - City = "", - State = "", - }}, - }) - { - EligibilityCriteriaText = "", - Demographics = new ClinicalTrialDemographics - { - AcceptedSex = ClinicalTrialAcceptedSex.All, - AcceptedAgeRange = new AcceptedAgeRange - { - MinimumAge = new AcceptedAge(AgeUnit.Years, 123.45F), - MaximumAge = default, - }, - }, - }}, - RegistryFilters = {new ClinicalTrialRegistryFilter - { - Conditions = {""}, - StudyTypes = {ClinicalTrialStudyType.Interventional}, - RecruitmentStatuses = {ClinicalTrialRecruitmentStatus.UnknownStatus}, - Sponsors = {""}, - Phases = {ClinicalTrialPhase.NotApplicable}, - Purposes = {ClinicalTrialPurpose.NotApplicable}, - Ids = {""}, - Sources = {ClinicalTrialSource.Custom}, - FacilityNames = {""}, - FacilityLocations = {new GeographicLocation("") - { - City = "", - State = "", - }}, - FacilityAreas = {new GeographicArea(GeoJsonType.Feature, new AreaGeometry(GeoJsonGeometryType.Point, new float[]{123.45F}), new AreaProperties(GeoJsonPropertiesSubType.Circle, 123.45))}, - }}, - }) - { - Verbose = true, - IncludeEvidence = true, - }, -}; -Operation operation = await client.MatchTrialsAsync(WaitUntil.Completed, trialMatcherData); -TrialMatcherResult responseData = operation.Value; ]]> @@ -600,19 +499,6 @@ Console.WriteLine(result.GetProperty("expirationDateTime").ToString()); Console.WriteLine(result.GetProperty("lastUpdateDateTime").ToString()); Console.WriteLine(result.GetProperty("status").ToString()); ]]> -This sample shows how to call MatchTrials. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ClinicalMatchingClient client = new ClinicalMatchingClient(endpoint, credential); - -TrialMatcherData trialMatcherData = new TrialMatcherData(new PatientRecord[] -{ - new PatientRecord("") -}); -Operation operation = client.MatchTrials(WaitUntil.Completed, trialMatcherData); -TrialMatcherResult responseData = operation.Value; -]]> This sample shows how to call MatchTrials with all parameters and request content and parse the result. "); @@ -845,94 +731,6 @@ Console.WriteLine(result.GetProperty("results").GetProperty("patients")[0].GetPr Console.WriteLine(result.GetProperty("results").GetProperty("patients")[0].GetProperty("neededClinicalInfo")[0].GetProperty("category").ToString()); Console.WriteLine(result.GetProperty("results").GetProperty("modelVersion").ToString()); Console.WriteLine(result.GetProperty("results").GetProperty("knowledgeGraphLastUpdateDate").ToString()); -]]> -This sample shows how to call MatchTrials with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ClinicalMatchingClient client = new ClinicalMatchingClient(endpoint, credential); - -TrialMatcherData trialMatcherData = new TrialMatcherData(new PatientRecord[] -{ - new PatientRecord("") - { - Info = new PatientInfo - { - Sex = PatientInfoSex.Female, - BirthDate = DateTimeOffset.Parse("2022-05-10"), - ClinicalInfo = {new ClinicalCodedElement("", "") - { - Name = "", - Value = "", - }}, - }, - Data = {new PatientDocument(DocumentType.Note, "", new DocumentContent(DocumentContentSourceType.Inline, "")) - { - ClinicalType = ClinicalDocumentType.Consultation, - Language = "", - CreatedDateTime = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), - }}, - } -}) -{ - Configuration = new TrialMatcherModelConfiguration(new ClinicalTrials - { - CustomTrials = {new ClinicalTrialDetails("", new ClinicalTrialMetadata(new string[]{""}) - { - Phases = {ClinicalTrialPhase.NotApplicable}, - StudyType = ClinicalTrialStudyType.Interventional, - RecruitmentStatus = ClinicalTrialRecruitmentStatus.UnknownStatus, - Sponsors = {""}, - Contacts = {new ContactDetails - { - Name = "", - Email = "", - Phone = "", - }}, - Facilities = {new ClinicalTrialResearchFacility("", "") - { - City = "", - State = "", - }}, - }) - { - EligibilityCriteriaText = "", - Demographics = new ClinicalTrialDemographics - { - AcceptedSex = ClinicalTrialAcceptedSex.All, - AcceptedAgeRange = new AcceptedAgeRange - { - MinimumAge = new AcceptedAge(AgeUnit.Years, 123.45F), - MaximumAge = default, - }, - }, - }}, - RegistryFilters = {new ClinicalTrialRegistryFilter - { - Conditions = {""}, - StudyTypes = {ClinicalTrialStudyType.Interventional}, - RecruitmentStatuses = {ClinicalTrialRecruitmentStatus.UnknownStatus}, - Sponsors = {""}, - Phases = {ClinicalTrialPhase.NotApplicable}, - Purposes = {ClinicalTrialPurpose.NotApplicable}, - Ids = {""}, - Sources = {ClinicalTrialSource.Custom}, - FacilityNames = {""}, - FacilityLocations = {new GeographicLocation("") - { - City = "", - State = "", - }}, - FacilityAreas = {new GeographicArea(GeoJsonType.Feature, new AreaGeometry(GeoJsonGeometryType.Point, new float[]{123.45F}), new AreaProperties(GeoJsonPropertiesSubType.Circle, 123.45))}, - }}, - }) - { - Verbose = true, - IncludeEvidence = true, - }, -}; -Operation operation = client.MatchTrials(WaitUntil.Completed, trialMatcherData); -TrialMatcherResult responseData = operation.Value; ]]> From 5a0d3ecf4cd33a4ff5a5e14b27cf3c788af203b1 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 28 Sep 2023 14:14:54 +0000 Subject: [PATCH 3/4] Update SDK codes --- .../Generated/Docs/AnomalyDetectorClient.xml | 396 ------------------ 1 file changed, 396 deletions(-) diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/AnomalyDetectorClient.xml b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/AnomalyDetectorClient.xml index b1714c02ff61b..dad9eedf33d49 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/AnomalyDetectorClient.xml +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/Docs/AnomalyDetectorClient.xml @@ -241,18 +241,6 @@ Console.WriteLine(result.GetProperty("isAnomaly").ToString()); Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString()); Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString()); ]]> -This sample shows how to call DetectUnivariateLastPointAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[] -{ - new TimeSeriesPoint(123.45F) -}); -Response response = await client.DetectUnivariateLastPointAsync(options); -]]> This sample shows how to call DetectUnivariateLastPointAsync with all request content and parse the result. "); @@ -289,30 +277,6 @@ Console.WriteLine(result.GetProperty("isAnomaly").ToString()); Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString()); Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString()); Console.WriteLine(result.GetProperty("severity").ToString()); -]]> -This sample shows how to call DetectUnivariateLastPointAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[] -{ - new TimeSeriesPoint(123.45F) - { - Timestamp = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), - } -}) -{ - Granularity = TimeGranularity.Yearly, - CustomInterval = 1234, - Period = 1234, - MaxAnomalyRatio = 123.45F, - Sensitivity = 1234, - ImputeMode = ImputeMode.Auto, - ImputeFixedValue = 123.45F, -}; -Response response = await client.DetectUnivariateLastPointAsync(options); ]]> @@ -345,18 +309,6 @@ Console.WriteLine(result.GetProperty("isAnomaly").ToString()); Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString()); Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString()); ]]> -This sample shows how to call DetectUnivariateLastPoint. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[] -{ - new TimeSeriesPoint(123.45F) -}); -Response response = client.DetectUnivariateLastPoint(options); -]]> This sample shows how to call DetectUnivariateLastPoint with all request content and parse the result. "); @@ -393,30 +345,6 @@ Console.WriteLine(result.GetProperty("isAnomaly").ToString()); Console.WriteLine(result.GetProperty("isNegativeAnomaly").ToString()); Console.WriteLine(result.GetProperty("isPositiveAnomaly").ToString()); Console.WriteLine(result.GetProperty("severity").ToString()); -]]> -This sample shows how to call DetectUnivariateLastPoint with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -UnivariateDetectionOptions options = new UnivariateDetectionOptions(new TimeSeriesPoint[] -{ - new TimeSeriesPoint(123.45F) - { - Timestamp = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), - } -}) -{ - Granularity = TimeGranularity.Yearly, - CustomInterval = 1234, - Period = 1234, - MaxAnomalyRatio = 123.45F, - Sensitivity = 1234, - ImputeMode = ImputeMode.Auto, - ImputeFixedValue = 123.45F, -}; -Response response = client.DetectUnivariateLastPoint(options); ]]> @@ -515,18 +443,6 @@ Response response = await client.DetectUnivariateChangePointAsync(content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call DetectUnivariateChangePointAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[] -{ - new TimeSeriesPoint(123.45F) -}, TimeGranularity.Yearly); -Response response = await client.DetectUnivariateChangePointAsync(options); -]]> This sample shows how to call DetectUnivariateChangePointAsync with all request content and parse the result. "); @@ -555,27 +471,6 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("period").ToString()); Console.WriteLine(result.GetProperty("isChangePoint")[0].ToString()); Console.WriteLine(result.GetProperty("confidenceScores")[0].ToString()); -]]> -This sample shows how to call DetectUnivariateChangePointAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[] -{ - new TimeSeriesPoint(123.45F) - { - Timestamp = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), - } -}, TimeGranularity.Yearly) -{ - CustomInterval = 1234, - Period = 1234, - StableTrendWindow = 1234, - Threshold = 123.45F, -}; -Response response = await client.DetectUnivariateChangePointAsync(options); ]]> @@ -602,18 +497,6 @@ Response response = client.DetectUnivariateChangePoint(content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call DetectUnivariateChangePoint. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[] -{ - new TimeSeriesPoint(123.45F) -}, TimeGranularity.Yearly); -Response response = client.DetectUnivariateChangePoint(options); -]]> This sample shows how to call DetectUnivariateChangePoint with all request content and parse the result. "); @@ -642,27 +525,6 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("period").ToString()); Console.WriteLine(result.GetProperty("isChangePoint")[0].ToString()); Console.WriteLine(result.GetProperty("confidenceScores")[0].ToString()); -]]> -This sample shows how to call DetectUnivariateChangePoint with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -UnivariateChangePointDetectionOptions options = new UnivariateChangePointDetectionOptions(new TimeSeriesPoint[] -{ - new TimeSeriesPoint(123.45F) - { - Timestamp = DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), - } -}, TimeGranularity.Yearly) -{ - CustomInterval = 1234, - Period = 1234, - StableTrendWindow = 1234, - Threshold = 123.45F, -}; -Response response = client.DetectUnivariateChangePoint(options); ]]> @@ -721,14 +583,6 @@ Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProp Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString()); ]]> -This sample shows how to call GetMultivariateBatchDetectionResultAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a")); -]]> This sample shows how to call GetMultivariateBatchDetectionResultAsync with all parameters and parse the result. "); @@ -760,14 +614,6 @@ Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetPrope Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString()); -]]> -This sample shows how to call GetMultivariateBatchDetectionResultAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -Response response = await client.GetMultivariateBatchDetectionResultAsync(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a")); ]]> @@ -788,14 +634,6 @@ Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProp Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString()); ]]> -This sample shows how to call GetMultivariateBatchDetectionResult. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a")); -]]> This sample shows how to call GetMultivariateBatchDetectionResult with all parameters and parse the result. "); @@ -827,14 +665,6 @@ Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetPrope Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString()); -]]> -This sample shows how to call GetMultivariateBatchDetectionResult with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -Response response = client.GetMultivariateBatchDetectionResult(Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a")); ]]> @@ -922,15 +752,6 @@ Console.WriteLine(result.GetProperty("modelId").ToString()); Console.WriteLine(result.GetProperty("createdTime").ToString()); Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString()); ]]> -This sample shows how to call TrainMultivariateModelAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -ModelInfo modelInfo = new ModelInfo(new Uri("http://localhost:3000"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00")); -Response response = await client.TrainMultivariateModelAsync(modelInfo); -]]> This sample shows how to call TrainMultivariateModelAsync with all request content and parse the result. "); @@ -979,26 +800,6 @@ Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo") Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString()); Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString()); Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString()); -]]> -This sample shows how to call TrainMultivariateModelAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -ModelInfo modelInfo = new ModelInfo(new Uri("http://localhost:3000"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00")) -{ - DataSchema = DataSchema.OneTable, - DisplayName = "", - SlidingWindow = 1234, - AlignPolicy = new AlignPolicy - { - AlignMode = AlignMode.Inner, - FillNAMethod = FillNAMethod.Previous, - PaddingValue = 123.45F, - }, -}; -Response response = await client.TrainMultivariateModelAsync(modelInfo); ]]> @@ -1022,15 +823,6 @@ Console.WriteLine(result.GetProperty("modelId").ToString()); Console.WriteLine(result.GetProperty("createdTime").ToString()); Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString()); ]]> -This sample shows how to call TrainMultivariateModel. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -ModelInfo modelInfo = new ModelInfo(new Uri("http://localhost:3000"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00")); -Response response = client.TrainMultivariateModel(modelInfo); -]]> This sample shows how to call TrainMultivariateModel with all request content and parse the result. "); @@ -1079,26 +871,6 @@ Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo") Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString()); Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString()); Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString()); -]]> -This sample shows how to call TrainMultivariateModel with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -ModelInfo modelInfo = new ModelInfo(new Uri("http://localhost:3000"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00")) -{ - DataSchema = DataSchema.OneTable, - DisplayName = "", - SlidingWindow = 1234, - AlignPolicy = new AlignPolicy - { - AlignMode = AlignMode.Inner, - FillNAMethod = FillNAMethod.Previous, - PaddingValue = 123.45F, - }, -}; -Response response = client.TrainMultivariateModel(modelInfo); ]]> @@ -1200,14 +972,6 @@ Console.WriteLine(result.GetProperty("modelId").ToString()); Console.WriteLine(result.GetProperty("createdTime").ToString()); Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString()); ]]> -This sample shows how to call GetMultivariateModelAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -Response response = await client.GetMultivariateModelAsync(""); -]]> This sample shows how to call GetMultivariateModelAsync with all parameters and parse the result. "); @@ -1241,14 +1005,6 @@ Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo") Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString()); Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString()); Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString()); -]]> -This sample shows how to call GetMultivariateModelAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -Response response = await client.GetMultivariateModelAsync(""); ]]> @@ -1266,14 +1022,6 @@ Console.WriteLine(result.GetProperty("modelId").ToString()); Console.WriteLine(result.GetProperty("createdTime").ToString()); Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString()); ]]> -This sample shows how to call GetMultivariateModel. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -Response response = client.GetMultivariateModel(""); -]]> This sample shows how to call GetMultivariateModel with all parameters and parse the result. "); @@ -1307,14 +1055,6 @@ Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo") Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("effectiveCount").ToString()); Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString()); Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString()); -]]> -This sample shows how to call GetMultivariateModel with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -Response response = client.GetMultivariateModel(""); ]]> @@ -1389,15 +1129,6 @@ Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProp Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString()); ]]> -This sample shows how to call DetectMultivariateBatchAnomalyAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00")); -Response response = await client.DetectMultivariateBatchAnomalyAsync("", options); -]]> This sample shows how to call DetectMultivariateBatchAnomalyAsync with all parameters and request content and parse the result. "); @@ -1436,18 +1167,6 @@ Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetPrope Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString()); -]]> -This sample shows how to call DetectMultivariateBatchAnomalyAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00")) -{ - TopContributorCount = 1234, -}; -Response response = await client.DetectMultivariateBatchAnomalyAsync("", options); ]]> @@ -1474,15 +1193,6 @@ Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProp Console.WriteLine(result.GetProperty("summary").GetProperty("setupInfo").GetProperty("endTime").ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("timestamp").ToString()); ]]> -This sample shows how to call DetectMultivariateBatchAnomaly. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00")); -Response response = client.DetectMultivariateBatchAnomaly("", options); -]]> This sample shows how to call DetectMultivariateBatchAnomaly with all parameters and request content and parse the result. "); @@ -1521,18 +1231,6 @@ Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetPrope Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString()); -]]> -This sample shows how to call DetectMultivariateBatchAnomaly with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -MultivariateBatchDetectionOptions options = new MultivariateBatchDetectionOptions(new Uri("http://localhost:3000"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00"), DateTimeOffset.Parse("2022-05-10T14:57:31.2311892-04:00")) -{ - TopContributorCount = 1234, -}; -Response response = client.DetectMultivariateBatchAnomaly("", options); ]]> @@ -1626,18 +1324,6 @@ Response response = await client.DetectMultivariateLastAnomalyAsync("", JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call DetectMultivariateLastAnomalyAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[] -{ - new VariableValues("", new string[]{""}, new float[]{123.45F}) -}); -Response response = await client.DetectMultivariateLastAnomalyAsync("", options); -]]> This sample shows how to call DetectMultivariateLastAnomalyAsync with all parameters and request content and parse the result. "); @@ -1680,21 +1366,6 @@ Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetPrope Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString()); -]]> -This sample shows how to call DetectMultivariateLastAnomalyAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[] -{ - new VariableValues("", new string[]{""}, new float[]{123.45F}) -}) -{ - TopContributorCount = 1234, -}; -Response response = await client.DetectMultivariateLastAnomalyAsync("", options); ]]> @@ -1728,18 +1399,6 @@ Response response = client.DetectMultivariateLastAnomaly("", content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call DetectMultivariateLastAnomaly. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[] -{ - new VariableValues("", new string[]{""}, new float[]{123.45F}) -}); -Response response = client.DetectMultivariateLastAnomaly("", options); -]]> This sample shows how to call DetectMultivariateLastAnomaly with all parameters and request content and parse the result. "); @@ -1782,21 +1441,6 @@ Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetPrope Console.WriteLine(result.GetProperty("results")[0].GetProperty("value").GetProperty("interpretation")[0].GetProperty("correlationChanges").GetProperty("changedVariables")[0].ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("code").ToString()); Console.WriteLine(result.GetProperty("results")[0].GetProperty("errors")[0].GetProperty("message").ToString()); -]]> -This sample shows how to call DetectMultivariateLastAnomaly with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -MultivariateLastDetectionOptions options = new MultivariateLastDetectionOptions(new VariableValues[] -{ - new VariableValues("", new string[]{""}, new float[]{123.45F}) -}) -{ - TopContributorCount = 1234, -}; -Response response = client.DetectMultivariateLastAnomaly("", options); ]]> @@ -1861,16 +1505,6 @@ await foreach (BinaryData item in client.GetMultivariateModelsAsync(null, null, Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString()); } ]]> -This sample shows how to call GetMultivariateModelsAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -await foreach (AnomalyDetectionModel item in client.GetMultivariateModelsAsync()) -{ -} -]]> This sample shows how to call GetMultivariateModelsAsync with all parameters and parse the result. "); @@ -1905,16 +1539,6 @@ await foreach (BinaryData item in client.GetMultivariateModelsAsync(1234, 1234, Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString()); Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString()); } -]]> -This sample shows how to call GetMultivariateModelsAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -await foreach (AnomalyDetectionModel item in client.GetMultivariateModelsAsync(skip: 1234, maxCount: 1234)) -{ -} ]]> @@ -1933,16 +1557,6 @@ foreach (BinaryData item in client.GetMultivariateModels(null, null, null)) Console.WriteLine(result.GetProperty("lastUpdatedTime").ToString()); } ]]> -This sample shows how to call GetMultivariateModels. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -foreach (AnomalyDetectionModel item in client.GetMultivariateModels()) -{ -} -]]> This sample shows how to call GetMultivariateModels with all parameters and parse the result. "); @@ -1977,16 +1591,6 @@ foreach (BinaryData item in client.GetMultivariateModels(1234, 1234, null)) Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("firstTimestamp").ToString()); Console.WriteLine(result.GetProperty("modelInfo").GetProperty("diagnosticsInfo").GetProperty("variableStates")[0].GetProperty("lastTimestamp").ToString()); } -]]> -This sample shows how to call GetMultivariateModels with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -AnomalyDetectorClient client = new AnomalyDetectorClient(endpoint, credential); - -foreach (AnomalyDetectionModel item in client.GetMultivariateModels(skip: 1234, maxCount: 1234)) -{ -} ]]> From fd22d70a0d7dd8c6d78fe6a006eda3299b301e35 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 28 Sep 2023 14:29:14 +0000 Subject: [PATCH 4/4] Update SDK codes --- .../Generated/Docs/ContentSafetyClient.xml | 330 ------------------ 1 file changed, 330 deletions(-) diff --git a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Docs/ContentSafetyClient.xml b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Docs/ContentSafetyClient.xml index c8be628993a0b..02beccfefd8bb 100644 --- a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Docs/ContentSafetyClient.xml +++ b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Docs/ContentSafetyClient.xml @@ -70,15 +70,6 @@ Response response = await client.AnalyzeTextAsync(content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call AnalyzeTextAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AnalyzeTextOptions body = new AnalyzeTextOptions(""); -Response response = await client.AnalyzeTextAsync(body); -]]> This sample shows how to call AnalyzeTextAsync with all request content and parse the result. "); @@ -114,20 +105,6 @@ Console.WriteLine(result.GetProperty("sexualResult").GetProperty("category").ToS Console.WriteLine(result.GetProperty("sexualResult").GetProperty("severity").ToString()); Console.WriteLine(result.GetProperty("violenceResult").GetProperty("category").ToString()); Console.WriteLine(result.GetProperty("violenceResult").GetProperty("severity").ToString()); -]]> -This sample shows how to call AnalyzeTextAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AnalyzeTextOptions body = new AnalyzeTextOptions("") -{ - Categories = { TextCategory.Hate }, - BlocklistNames = { "" }, - BreakByBlocklists = true, -}; -Response response = await client.AnalyzeTextAsync(body); ]]> @@ -147,15 +124,6 @@ Response response = client.AnalyzeText(content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call AnalyzeText. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AnalyzeTextOptions body = new AnalyzeTextOptions(""); -Response response = client.AnalyzeText(body); -]]> This sample shows how to call AnalyzeText with all request content and parse the result. "); @@ -191,20 +159,6 @@ Console.WriteLine(result.GetProperty("sexualResult").GetProperty("category").ToS Console.WriteLine(result.GetProperty("sexualResult").GetProperty("severity").ToString()); Console.WriteLine(result.GetProperty("violenceResult").GetProperty("category").ToString()); Console.WriteLine(result.GetProperty("violenceResult").GetProperty("severity").ToString()); -]]> -This sample shows how to call AnalyzeText with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AnalyzeTextOptions body = new AnalyzeTextOptions("") -{ - Categories = { TextCategory.Hate }, - BlocklistNames = { "" }, - BreakByBlocklists = true, -}; -Response response = client.AnalyzeText(body); ]]> @@ -280,15 +234,6 @@ Response response = await client.AnalyzeImageAsync(content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call AnalyzeImageAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AnalyzeImageOptions body = new AnalyzeImageOptions(new ContentSafetyImageData()); -Response response = await client.AnalyzeImageAsync(body); -]]> This sample shows how to call AnalyzeImageAsync with all request content and parse the result. "); @@ -318,22 +263,6 @@ Console.WriteLine(result.GetProperty("sexualResult").GetProperty("category").ToS Console.WriteLine(result.GetProperty("sexualResult").GetProperty("severity").ToString()); Console.WriteLine(result.GetProperty("violenceResult").GetProperty("category").ToString()); Console.WriteLine(result.GetProperty("violenceResult").GetProperty("severity").ToString()); -]]> -This sample shows how to call AnalyzeImageAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AnalyzeImageOptions body = new AnalyzeImageOptions(new ContentSafetyImageData -{ - Content = BinaryData.FromObjectAsJson(new object()), - BlobUrl = new Uri("http://localhost:3000"), -}) -{ - Categories = { ImageCategory.Hate }, -}; -Response response = await client.AnalyzeImageAsync(body); ]]> @@ -353,15 +282,6 @@ Response response = client.AnalyzeImage(content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call AnalyzeImage. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AnalyzeImageOptions body = new AnalyzeImageOptions(new ContentSafetyImageData()); -Response response = client.AnalyzeImage(body); -]]> This sample shows how to call AnalyzeImage with all request content and parse the result. "); @@ -391,22 +311,6 @@ Console.WriteLine(result.GetProperty("sexualResult").GetProperty("category").ToS Console.WriteLine(result.GetProperty("sexualResult").GetProperty("severity").ToString()); Console.WriteLine(result.GetProperty("violenceResult").GetProperty("category").ToString()); Console.WriteLine(result.GetProperty("violenceResult").GetProperty("severity").ToString()); -]]> -This sample shows how to call AnalyzeImage with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AnalyzeImageOptions body = new AnalyzeImageOptions(new ContentSafetyImageData -{ - Content = BinaryData.FromObjectAsJson(new object()), - BlobUrl = new Uri("http://localhost:3000"), -}) -{ - Categories = { ImageCategory.Hate }, -}; -Response response = client.AnalyzeImage(body); ]]> @@ -460,14 +364,6 @@ Response response = await client.GetTextBlocklistAsync("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("blocklistName").ToString()); ]]> -This sample shows how to call GetTextBlocklistAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -Response response = await client.GetTextBlocklistAsync(""); -]]> This sample shows how to call GetTextBlocklistAsync with all parameters and parse the result. "); @@ -479,14 +375,6 @@ Response response = await client.GetTextBlocklistAsync("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("blocklistName").ToString()); Console.WriteLine(result.GetProperty("description").ToString()); -]]> -This sample shows how to call GetTextBlocklistAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -Response response = await client.GetTextBlocklistAsync(""); ]]> @@ -502,14 +390,6 @@ Response response = client.GetTextBlocklist("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("blocklistName").ToString()); ]]> -This sample shows how to call GetTextBlocklist. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -Response response = client.GetTextBlocklist(""); -]]> This sample shows how to call GetTextBlocklist with all parameters and parse the result. "); @@ -521,14 +401,6 @@ Response response = client.GetTextBlocklist("", null); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("blocklistName").ToString()); Console.WriteLine(result.GetProperty("description").ToString()); -]]> -This sample shows how to call GetTextBlocklist with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -Response response = client.GetTextBlocklist(""); ]]> @@ -730,18 +602,6 @@ Response response = await client.AddBlockItemsAsync("", content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call AddBlockItemsAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AddBlockItemsOptions addBlockItemsOptions = new AddBlockItemsOptions(new TextBlockItemInfo[] -{ - new TextBlockItemInfo("") -}); -Response response = await client.AddBlockItemsAsync("", addBlockItemsOptions); -]]> This sample shows how to call AddBlockItemsAsync with all parameters and request content and parse the result. "); @@ -765,21 +625,6 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("blockItemId").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("description").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("text").ToString()); -]]> -This sample shows how to call AddBlockItemsAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AddBlockItemsOptions addBlockItemsOptions = new AddBlockItemsOptions(new TextBlockItemInfo[] -{ - new TextBlockItemInfo("") - { - Description = "", - } -}); -Response response = await client.AddBlockItemsAsync("", addBlockItemsOptions); ]]> @@ -805,18 +650,6 @@ Response response = client.AddBlockItems("", content); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call AddBlockItems. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AddBlockItemsOptions addBlockItemsOptions = new AddBlockItemsOptions(new TextBlockItemInfo[] -{ - new TextBlockItemInfo("") -}); -Response response = client.AddBlockItems("", addBlockItemsOptions); -]]> This sample shows how to call AddBlockItems with all parameters and request content and parse the result. "); @@ -840,21 +673,6 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("value")[0].GetProperty("blockItemId").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("description").ToString()); Console.WriteLine(result.GetProperty("value")[0].GetProperty("text").ToString()); -]]> -This sample shows how to call AddBlockItems with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -AddBlockItemsOptions addBlockItemsOptions = new AddBlockItemsOptions(new TextBlockItemInfo[] -{ - new TextBlockItemInfo("") - { - Description = "", - } -}); -Response response = client.AddBlockItems("", addBlockItemsOptions); ]]> @@ -918,15 +736,6 @@ Response response = await client.RemoveBlockItemsAsync("", conten Console.WriteLine(response.Status); ]]> -This sample shows how to call RemoveBlockItemsAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -RemoveBlockItemsOptions removeBlockItemsOptions = new RemoveBlockItemsOptions(new string[] { "" }); -Response response = await client.RemoveBlockItemsAsync("", removeBlockItemsOptions); -]]> This sample shows how to call RemoveBlockItemsAsync with all parameters and request content. "); @@ -943,15 +752,6 @@ RequestContent content = RequestContent.Create(new Response response = await client.RemoveBlockItemsAsync("", content); Console.WriteLine(response.Status); -]]> -This sample shows how to call RemoveBlockItemsAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -RemoveBlockItemsOptions removeBlockItemsOptions = new RemoveBlockItemsOptions(new string[] { "" }); -Response response = await client.RemoveBlockItemsAsync("", removeBlockItemsOptions); ]]> @@ -973,15 +773,6 @@ Response response = client.RemoveBlockItems("", content); Console.WriteLine(response.Status); ]]> -This sample shows how to call RemoveBlockItems. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -RemoveBlockItemsOptions removeBlockItemsOptions = new RemoveBlockItemsOptions(new string[] { "" }); -Response response = client.RemoveBlockItems("", removeBlockItemsOptions); -]]> This sample shows how to call RemoveBlockItems with all parameters and request content. "); @@ -998,15 +789,6 @@ RequestContent content = RequestContent.Create(new Response response = client.RemoveBlockItems("", content); Console.WriteLine(response.Status); -]]> -This sample shows how to call RemoveBlockItems with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -RemoveBlockItemsOptions removeBlockItemsOptions = new RemoveBlockItemsOptions(new string[] { "" }); -Response response = client.RemoveBlockItems("", removeBlockItemsOptions); ]]> @@ -1061,14 +843,6 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("blockItemId").ToString()); Console.WriteLine(result.GetProperty("text").ToString()); ]]> -This sample shows how to call GetTextBlocklistItemAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -Response response = await client.GetTextBlocklistItemAsync("", ""); -]]> This sample shows how to call GetTextBlocklistItemAsync with all parameters and parse the result. "); @@ -1081,14 +855,6 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("blockItemId").ToString()); Console.WriteLine(result.GetProperty("description").ToString()); Console.WriteLine(result.GetProperty("text").ToString()); -]]> -This sample shows how to call GetTextBlocklistItemAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -Response response = await client.GetTextBlocklistItemAsync("", ""); ]]> @@ -1105,14 +871,6 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("blockItemId").ToString()); Console.WriteLine(result.GetProperty("text").ToString()); ]]> -This sample shows how to call GetTextBlocklistItem. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -Response response = client.GetTextBlocklistItem("", ""); -]]> This sample shows how to call GetTextBlocklistItem with all parameters and parse the result. "); @@ -1125,14 +883,6 @@ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("blockItemId").ToString()); Console.WriteLine(result.GetProperty("description").ToString()); Console.WriteLine(result.GetProperty("text").ToString()); -]]> -This sample shows how to call GetTextBlocklistItem with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -Response response = client.GetTextBlocklistItem("", ""); ]]> @@ -1195,16 +945,6 @@ await foreach (BinaryData item in client.GetTextBlocklistsAsync(null)) Console.WriteLine(result.GetProperty("blocklistName").ToString()); } ]]> -This sample shows how to call GetTextBlocklistsAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -await foreach (TextBlocklist item in client.GetTextBlocklistsAsync()) -{ -} -]]> This sample shows how to call GetTextBlocklistsAsync with all parameters and parse the result. "); @@ -1217,16 +957,6 @@ await foreach (BinaryData item in client.GetTextBlocklistsAsync(null)) Console.WriteLine(result.GetProperty("blocklistName").ToString()); Console.WriteLine(result.GetProperty("description").ToString()); } -]]> -This sample shows how to call GetTextBlocklistsAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -await foreach (TextBlocklist item in client.GetTextBlocklistsAsync()) -{ -} ]]> @@ -1243,16 +973,6 @@ foreach (BinaryData item in client.GetTextBlocklists(null)) Console.WriteLine(result.GetProperty("blocklistName").ToString()); } ]]> -This sample shows how to call GetTextBlocklists. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -foreach (TextBlocklist item in client.GetTextBlocklists()) -{ -} -]]> This sample shows how to call GetTextBlocklists with all parameters and parse the result. "); @@ -1265,16 +985,6 @@ foreach (BinaryData item in client.GetTextBlocklists(null)) Console.WriteLine(result.GetProperty("blocklistName").ToString()); Console.WriteLine(result.GetProperty("description").ToString()); } -]]> -This sample shows how to call GetTextBlocklists with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -foreach (TextBlocklist item in client.GetTextBlocklists()) -{ -} ]]> @@ -1338,16 +1048,6 @@ await foreach (BinaryData item in client.GetTextBlocklistItemsAsync(" -This sample shows how to call GetTextBlocklistItemsAsync. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -await foreach (TextBlockItem item in client.GetTextBlocklistItemsAsync("")) -{ -} -]]> This sample shows how to call GetTextBlocklistItemsAsync with all parameters and parse the result. "); @@ -1361,16 +1061,6 @@ await foreach (BinaryData item in client.GetTextBlocklistItemsAsync(" -This sample shows how to call GetTextBlocklistItemsAsync with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -await foreach (TextBlockItem item in client.GetTextBlocklistItemsAsync("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) -{ -} ]]> @@ -1388,16 +1078,6 @@ foreach (BinaryData item in client.GetTextBlocklistItems("", null Console.WriteLine(result.GetProperty("text").ToString()); } ]]> -This sample shows how to call GetTextBlocklistItems. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -foreach (TextBlockItem item in client.GetTextBlocklistItems("")) -{ -} -]]> This sample shows how to call GetTextBlocklistItems with all parameters and parse the result. "); @@ -1411,16 +1091,6 @@ foreach (BinaryData item in client.GetTextBlocklistItems("", 1234 Console.WriteLine(result.GetProperty("description").ToString()); Console.WriteLine(result.GetProperty("text").ToString()); } -]]> -This sample shows how to call GetTextBlocklistItems with all parameters. -"); -AzureKeyCredential credential = new AzureKeyCredential(""); -ContentSafetyClient client = new ContentSafetyClient(endpoint, credential); - -foreach (TextBlockItem item in client.GetTextBlocklistItems("", maxCount: 1234, skip: 1234, maxpagesize: 1234)) -{ -} ]]>