diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index e0d265df0cc6..d3fa17f513e7 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -173,7 +173,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 9bc9df53b51f..112aaef2e03f 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.20230723.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20230724.1" } } diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Attachments.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Attachments.cs index 877d0ac0be2f..303bdf5a6c0c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Attachments.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Attachments.cs @@ -143,7 +143,7 @@ public virtual Response GetAttachment(string partyId, string attachmentId, Reque /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task CreateOrUpdateAsync(string partyId, string attachmentId, RequestContent content, RequestContext context) + public virtual async Task CreateOrUpdateAsync(string partyId, string attachmentId, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(attachmentId, nameof(attachmentId)); @@ -181,7 +181,7 @@ public virtual async Task CreateOrUpdateAsync(string partyId, string a /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response CreateOrUpdate(string partyId, string attachmentId, RequestContent content, RequestContext context) + public virtual Response CreateOrUpdate(string partyId, string attachmentId, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(attachmentId, nameof(attachmentId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Attachments.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Attachments.xml index c170b8619513..a53dbfb6ad3a 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Attachments.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/Attachments.xml @@ -64,7 +64,7 @@ var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-pr var data = File.OpenRead(""); -Response response = await client.CreateOrUpdateAsync("", "", RequestContent.Create(data), new RequestContext()); +Response response = await client.CreateOrUpdateAsync("", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); @@ -93,7 +93,7 @@ var client = new FarmBeatsClient(credential).GetAttachmentsClient("2022-11-01-pr var data = File.OpenRead(""); -Response response = client.CreateOrUpdate("", "", RequestContent.Create(data), new RequestContext()); +Response response = client.CreateOrUpdate("", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/InsightAttachments.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/InsightAttachments.xml index 0a57ab75df50..1471ead8d9ec 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/InsightAttachments.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/InsightAttachments.xml @@ -10,7 +10,7 @@ var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-1 var data = File.OpenRead(""); -Response response = await client.CreateOrUpdateAsync("", "", "", "", "", RequestContent.Create(data), new RequestContext()); +Response response = await client.CreateOrUpdateAsync("", "", "", "", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -41,7 +41,7 @@ var client = new FarmBeatsClient(credential).GetInsightAttachmentsClient("2022-1 var data = File.OpenRead(""); -Response response = client.CreateOrUpdate("", "", "", "", "", RequestContent.Create(data), new RequestContext()); +Response response = client.CreateOrUpdate("", "", "", "", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/InsightAttachments.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/InsightAttachments.cs index f6f92e9d17fb..ccc739310cc2 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/InsightAttachments.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/InsightAttachments.cs @@ -75,7 +75,7 @@ internal InsightAttachments(ClientDiagnostics clientDiagnostics, HttpPipeline pi /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task CreateOrUpdateAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContent content, RequestContext context) + public virtual async Task CreateOrUpdateAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); @@ -122,7 +122,7 @@ public virtual async Task CreateOrUpdateAsync(string partyId, string m /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response CreateOrUpdate(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContent content, RequestContext context) + public virtual Response CreateOrUpdate(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(partyId, nameof(partyId)); Argument.AssertNotNullOrEmpty(modelId, nameof(modelId)); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Attachments.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Attachments.cs index 0051ec005d3f..1c7cd08baa11 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Attachments.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_Attachments.cs @@ -106,7 +106,7 @@ public void Example_CreateOrUpdate() var data = File.OpenRead(""); - Response response = client.CreateOrUpdate("", "", RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdate("", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -121,7 +121,7 @@ public void Example_CreateOrUpdate_AllParameters() var data = File.OpenRead(""); - Response response = client.CreateOrUpdate("", "", RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdate("", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); @@ -149,7 +149,7 @@ public async Task Example_CreateOrUpdate_Async() var data = File.OpenRead(""); - Response response = await client.CreateOrUpdateAsync("", "", RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateAsync("", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -164,7 +164,7 @@ public async Task Example_CreateOrUpdate_AllParameters_Async() var data = File.OpenRead(""); - Response response = await client.CreateOrUpdateAsync("", "", RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateAsync("", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("resourceId").ToString()); diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_InsightAttachments.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_InsightAttachments.cs index 90170112e9de..78a84fa4485e 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_InsightAttachments.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_InsightAttachments.cs @@ -28,7 +28,7 @@ public void Example_CreateOrUpdate() var data = File.OpenRead(""); - Response response = client.CreateOrUpdate("", "", "", "", "", RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdate("", "", "", "", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -43,7 +43,7 @@ public void Example_CreateOrUpdate_AllParameters() var data = File.OpenRead(""); - Response response = client.CreateOrUpdate("", "", "", "", "", RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdate("", "", "", "", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -73,7 +73,7 @@ public async Task Example_CreateOrUpdate_Async() var data = File.OpenRead(""); - Response response = await client.CreateOrUpdateAsync("", "", "", "", "", RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateAsync("", "", "", "", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); @@ -88,7 +88,7 @@ public async Task Example_CreateOrUpdate_AllParameters_Async() var data = File.OpenRead(""); - Response response = await client.CreateOrUpdateAsync("", "", "", "", "", RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateAsync("", "", "", "", "", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("insightId").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewMetadataPolicyClient.xml b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewMetadataPolicyClient.xml index c09e8cd3b4c7..b9cd48ec0000 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewMetadataPolicyClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewMetadataPolicyClient.xml @@ -11,7 +11,7 @@ var client = new PurviewMetadataPolicyClient(endpoint, "", crede var data = new {}; -Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data), new RequestContext()); +Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -76,7 +76,7 @@ var data = new { }, }; -Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data), new RequestContext()); +Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -114,7 +114,7 @@ var client = new PurviewMetadataPolicyClient(endpoint, "", crede var data = new {}; -Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data), new RequestContext()); +Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -179,7 +179,7 @@ var data = new { }, }; -Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data), new RequestContext()); +Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewMetadataPolicyClient.cs b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewMetadataPolicyClient.cs index 01cf738b1825..61a0eb14d984 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewMetadataPolicyClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/PurviewMetadataPolicyClient.cs @@ -52,7 +52,7 @@ protected PurviewMetadataPolicyClient() /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task UpdateMetadataPolicyAsync(string policyId, RequestContent content, RequestContext context) + public virtual async Task UpdateMetadataPolicyAsync(string policyId, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(policyId, nameof(policyId)); @@ -88,7 +88,7 @@ public virtual async Task UpdateMetadataPolicyAsync(string policyId, R /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response UpdateMetadataPolicy(string policyId, RequestContent content, RequestContext context) + public virtual Response UpdateMetadataPolicy(string policyId, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(policyId, nameof(policyId)); diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewMetadataPolicyClient.cs b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewMetadataPolicyClient.cs index f46c858a84cd..0236594e989d 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewMetadataPolicyClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewMetadataPolicyClient.cs @@ -29,7 +29,7 @@ public void Example_UpdateMetadataPolicy() var data = new { }; - Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data), new RequestContext()); + Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -100,7 +100,7 @@ public void Example_UpdateMetadataPolicy_AllParameters() }, }; - Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data), new RequestContext()); + Response response = client.UpdateMetadataPolicy("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); @@ -137,7 +137,7 @@ public async Task Example_UpdateMetadataPolicy_Async() var data = new { }; - Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -208,7 +208,7 @@ public async Task Example_UpdateMetadataPolicy_AllParameters_Async() }, }; - Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.UpdateMetadataPolicyAsync("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("name").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewEntities.xml b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewEntities.xml index 99bb61749f9d..0053ea79c7d7 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewEntities.xml +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewEntities.xml @@ -3613,7 +3613,7 @@ var data = new { key = new {}, }; -Response response = await client.DeleteBusinessMetadataAsync("", RequestContent.Create(data), new RequestContext()); +Response response = await client.DeleteBusinessMetadataAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3630,7 +3630,7 @@ var data = new { key = new {}, }; -Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data), new RequestContext()); +Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3647,7 +3647,20 @@ var data = new { key = new {}, }; -Response response = await client.AddOrUpdateBusinessMetadataAsync("", RequestContent.Create(data), true, new RequestContext()); +Response response = await client.AddOrUpdateBusinessMetadataAsync("", RequestContent.Create(data)); +Console.WriteLine(response.Status); +]]> +This sample shows how to call AddOrUpdateBusinessMetadataAsync with all parameters and request content. +"); +var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); + +var data = new { + key = new {}, +}; + +Response response = await client.AddOrUpdateBusinessMetadataAsync("", RequestContent.Create(data), true); Console.WriteLine(response.Status); ]]> @@ -3664,7 +3677,20 @@ var data = new { key = new {}, }; -Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data), true, new RequestContext()); +Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data)); +Console.WriteLine(response.Status); +]]> +This sample shows how to call AddOrUpdateBusinessMetadata with all parameters and request content. +"); +var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); + +var data = new { + key = new {}, +}; + +Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data), true); Console.WriteLine(response.Status); ]]> @@ -3681,7 +3707,7 @@ var data = new { key = new {}, }; -Response response = await client.DeleteBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); +Response response = await client.DeleteBusinessMetadataAttributesAsync("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3698,7 +3724,7 @@ var data = new { key = new {}, }; -Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); +Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3715,7 +3741,7 @@ var data = new { key = new {}, }; -Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); +Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3732,7 +3758,7 @@ var data = new { key = new {}, }; -Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); +Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3777,7 +3803,7 @@ if (response.ContentStream != null) -This sample shows how to call ImportBusinessMetadataAsync with required parameters and request content and parse the result. +This sample shows how to call ImportBusinessMetadataAsync with required request content and parse the result. "); @@ -3785,7 +3811,7 @@ var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesCl var data = File.OpenRead(""); -Response response = await client.ImportBusinessMetadataAsync(RequestContent.Create(data), new RequestContext()); +Response response = await client.ImportBusinessMetadataAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("failedImportInfoList")[0].GetProperty("childObjectName").ToString()); @@ -3801,7 +3827,7 @@ Console.WriteLine(result.GetProperty("successImportInfoList")[0].GetProperty("re -This sample shows how to call ImportBusinessMetadata with required parameters and request content and parse the result. +This sample shows how to call ImportBusinessMetadata with required request content and parse the result. "); @@ -3809,7 +3835,7 @@ var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesCl var data = File.OpenRead(""); -Response response = client.ImportBusinessMetadata(RequestContent.Create(data), new RequestContext()); +Response response = client.ImportBusinessMetadata(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("failedImportInfoList")[0].GetProperty("childObjectName").ToString()); @@ -3835,7 +3861,7 @@ var data = new[] { "" }; -Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data), new RequestContext()); +Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3852,7 +3878,7 @@ var data = new[] { "" }; -Response response = client.DeleteLabels("", RequestContent.Create(data), new RequestContext()); +Response response = client.DeleteLabels("", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3869,7 +3895,7 @@ var data = new[] { "" }; -Response response = await client.SetLabelsAsync("", RequestContent.Create(data), new RequestContext()); +Response response = await client.SetLabelsAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3886,7 +3912,7 @@ var data = new[] { "" }; -Response response = client.SetLabels("", RequestContent.Create(data), new RequestContext()); +Response response = client.SetLabels("", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3903,7 +3929,7 @@ var data = new[] { "" }; -Response response = await client.AddLabelAsync("", RequestContent.Create(data), new RequestContext()); +Response response = await client.AddLabelAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3920,7 +3946,7 @@ var data = new[] { "" }; -Response response = client.AddLabel("", RequestContent.Create(data), new RequestContext()); +Response response = client.AddLabel("", RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> @@ -3937,7 +3963,20 @@ var data = new[] { "" }; -Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); +Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data)); +Console.WriteLine(response.Status); +]]> +This sample shows how to call DeleteLabelsByUniqueAttributeAsync with all parameters and request content. +"); +var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); + +var data = new[] { + "" +}; + +Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); ]]> @@ -3954,7 +3993,20 @@ var data = new[] { "" }; -Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); +Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data)); +Console.WriteLine(response.Status); +]]> +This sample shows how to call DeleteLabelsByUniqueAttribute with all parameters and request content. +"); +var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); + +var data = new[] { + "" +}; + +Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); ]]> @@ -3971,7 +4023,20 @@ var data = new[] { "" }; -Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); +Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data)); +Console.WriteLine(response.Status); +]]> +This sample shows how to call SetLabelsByUniqueAttributeAsync with all parameters and request content. +"); +var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); + +var data = new[] { + "" +}; + +Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); ]]> @@ -3988,7 +4053,20 @@ var data = new[] { "" }; -Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); +Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data)); +Console.WriteLine(response.Status); +]]> +This sample shows how to call SetLabelsByUniqueAttribute with all parameters and request content. +"); +var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); + +var data = new[] { + "" +}; + +Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); ]]> @@ -4005,7 +4083,20 @@ var data = new[] { "" }; -Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); +Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data)); +Console.WriteLine(response.Status); +]]> +This sample shows how to call AddLabelsByUniqueAttributeAsync with all parameters and request content. +"); +var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); + +var data = new[] { + "" +}; + +Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); ]]> @@ -4022,7 +4113,20 @@ var data = new[] { "" }; -Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); +Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data)); +Console.WriteLine(response.Status); +]]> +This sample shows how to call AddLabelsByUniqueAttribute with all parameters and request content. +"); +var client = new PurviewCatalogClient(endpoint, credential).GetPurviewEntitiesClient(); + +var data = new[] { + "" +}; + +Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); ]]> diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs index 35000a6bfe5d..dc78f259227d 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs @@ -1733,7 +1733,7 @@ public virtual Response GetHeader(string guid, RequestContext context) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteBusinessMetadataAsync(string guid, RequestContent content, RequestContext context) + public virtual async Task DeleteBusinessMetadataAsync(string guid, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -1769,7 +1769,7 @@ public virtual async Task DeleteBusinessMetadataAsync(string guid, Req /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DeleteBusinessMetadata(string guid, RequestContent content, RequestContext context) + public virtual Response DeleteBusinessMetadata(string guid, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -1806,7 +1806,7 @@ public virtual Response DeleteBusinessMetadata(string guid, RequestContent conte /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task AddOrUpdateBusinessMetadataAsync(string guid, RequestContent content, bool? isOverwrite, RequestContext context) + public virtual async Task AddOrUpdateBusinessMetadataAsync(string guid, RequestContent content, bool? isOverwrite = null, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -1843,7 +1843,7 @@ public virtual async Task AddOrUpdateBusinessMetadataAsync(string guid /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response AddOrUpdateBusinessMetadata(string guid, RequestContent content, bool? isOverwrite, RequestContext context) + public virtual Response AddOrUpdateBusinessMetadata(string guid, RequestContent content, bool? isOverwrite = null, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -1880,7 +1880,7 @@ public virtual Response AddOrUpdateBusinessMetadata(string guid, RequestContent /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteBusinessMetadataAttributesAsync(string guid, string bmName, RequestContent content, RequestContext context) + public virtual async Task DeleteBusinessMetadataAttributesAsync(string guid, string bmName, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNullOrEmpty(bmName, nameof(bmName)); @@ -1918,7 +1918,7 @@ public virtual async Task DeleteBusinessMetadataAttributesAsync(string /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DeleteBusinessMetadataAttributes(string guid, string bmName, RequestContent content, RequestContext context) + public virtual Response DeleteBusinessMetadataAttributes(string guid, string bmName, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNullOrEmpty(bmName, nameof(bmName)); @@ -1956,7 +1956,7 @@ public virtual Response DeleteBusinessMetadataAttributes(string guid, string bmN /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task AddOrUpdateBusinessMetadataAttributesAsync(string guid, string bmName, RequestContent content, RequestContext context) + public virtual async Task AddOrUpdateBusinessMetadataAttributesAsync(string guid, string bmName, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNullOrEmpty(bmName, nameof(bmName)); @@ -1994,7 +1994,7 @@ public virtual async Task AddOrUpdateBusinessMetadataAttributesAsync(s /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response AddOrUpdateBusinessMetadataAttributes(string guid, string bmName, RequestContent content, RequestContext context) + public virtual Response AddOrUpdateBusinessMetadataAttributes(string guid, string bmName, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); Argument.AssertNotNullOrEmpty(bmName, nameof(bmName)); @@ -2088,7 +2088,7 @@ public virtual Response GetSampleBusinessMetadataTemplate(RequestContext context /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task ImportBusinessMetadataAsync(RequestContent content, RequestContext context) + public virtual async Task ImportBusinessMetadataAsync(RequestContent content, RequestContext context = null) { using var scope = ClientDiagnostics.CreateScope("PurviewEntities.ImportBusinessMetadata"); scope.Start(); @@ -2119,7 +2119,7 @@ public virtual async Task ImportBusinessMetadataAsync(RequestContent c /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response ImportBusinessMetadata(RequestContent content, RequestContext context) + public virtual Response ImportBusinessMetadata(RequestContent content, RequestContext context = null) { using var scope = ClientDiagnostics.CreateScope("PurviewEntities.ImportBusinessMetadata"); scope.Start(); @@ -2153,7 +2153,7 @@ public virtual Response ImportBusinessMetadata(RequestContent content, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteLabelsAsync(string guid, RequestContent content, RequestContext context) + public virtual async Task DeleteLabelsAsync(string guid, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -2189,7 +2189,7 @@ public virtual async Task DeleteLabelsAsync(string guid, RequestConten /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DeleteLabels(string guid, RequestContent content, RequestContext context) + public virtual Response DeleteLabels(string guid, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -2225,7 +2225,7 @@ public virtual Response DeleteLabels(string guid, RequestContent content, Reques /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task SetLabelsAsync(string guid, RequestContent content, RequestContext context) + public virtual async Task SetLabelsAsync(string guid, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -2261,7 +2261,7 @@ public virtual async Task SetLabelsAsync(string guid, RequestContent c /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response SetLabels(string guid, RequestContent content, RequestContext context) + public virtual Response SetLabels(string guid, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -2297,7 +2297,7 @@ public virtual Response SetLabels(string guid, RequestContent content, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task AddLabelAsync(string guid, RequestContent content, RequestContext context) + public virtual async Task AddLabelAsync(string guid, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -2333,7 +2333,7 @@ public virtual async Task AddLabelAsync(string guid, RequestContent co /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response AddLabel(string guid, RequestContent content, RequestContext context) + public virtual Response AddLabel(string guid, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(guid, nameof(guid)); @@ -2370,7 +2370,7 @@ public virtual Response AddLabel(string guid, RequestContent content, RequestCon /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task DeleteLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) + public virtual async Task DeleteLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attrQualifiedName = null, RequestContext context = null) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); @@ -2407,7 +2407,7 @@ public virtual async Task DeleteLabelsByUniqueAttributeAsync(string ty /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response DeleteLabelsByUniqueAttribute(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) + public virtual Response DeleteLabelsByUniqueAttribute(string typeName, RequestContent content, string attrQualifiedName = null, RequestContext context = null) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); @@ -2444,7 +2444,7 @@ public virtual Response DeleteLabelsByUniqueAttribute(string typeName, RequestCo /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task SetLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) + public virtual async Task SetLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attrQualifiedName = null, RequestContext context = null) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); @@ -2481,7 +2481,7 @@ public virtual async Task SetLabelsByUniqueAttributeAsync(string typeN /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response SetLabelsByUniqueAttribute(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) + public virtual Response SetLabelsByUniqueAttribute(string typeName, RequestContent content, string attrQualifiedName = null, RequestContext context = null) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); @@ -2518,7 +2518,7 @@ public virtual Response SetLabelsByUniqueAttribute(string typeName, RequestConte /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task AddLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) + public virtual async Task AddLabelsByUniqueAttributeAsync(string typeName, RequestContent content, string attrQualifiedName = null, RequestContext context = null) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); @@ -2555,7 +2555,7 @@ public virtual async Task AddLabelsByUniqueAttributeAsync(string typeN /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response AddLabelsByUniqueAttribute(string typeName, RequestContent content, string attrQualifiedName, RequestContext context) + public virtual Response AddLabelsByUniqueAttribute(string typeName, RequestContent content, string attrQualifiedName = null, RequestContext context = null) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewEntities.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewEntities.cs index 220b38f87b3b..85ffef3d79b4 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewEntities.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewEntities.cs @@ -4134,7 +4134,7 @@ public void Example_DeleteBusinessMetadata() key = new { }, }; - Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data), new RequestContext()); + Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4151,7 +4151,7 @@ public void Example_DeleteBusinessMetadata_AllParameters() key = new { }, }; - Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data), new RequestContext()); + Response response = client.DeleteBusinessMetadata("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4168,7 +4168,7 @@ public async Task Example_DeleteBusinessMetadata_Async() key = new { }, }; - Response response = await client.DeleteBusinessMetadataAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.DeleteBusinessMetadataAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4185,7 +4185,7 @@ public async Task Example_DeleteBusinessMetadata_AllParameters_Async() key = new { }, }; - Response response = await client.DeleteBusinessMetadataAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.DeleteBusinessMetadataAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4202,7 +4202,7 @@ public void Example_AddOrUpdateBusinessMetadata() key = new { }, }; - Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data), true, new RequestContext()); + Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4219,7 +4219,7 @@ public void Example_AddOrUpdateBusinessMetadata_AllParameters() key = new { }, }; - Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data), true, new RequestContext()); + Response response = client.AddOrUpdateBusinessMetadata("", RequestContent.Create(data), true); Console.WriteLine(response.Status); } @@ -4236,7 +4236,7 @@ public async Task Example_AddOrUpdateBusinessMetadata_Async() key = new { }, }; - Response response = await client.AddOrUpdateBusinessMetadataAsync("", RequestContent.Create(data), true, new RequestContext()); + Response response = await client.AddOrUpdateBusinessMetadataAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4253,7 +4253,7 @@ public async Task Example_AddOrUpdateBusinessMetadata_AllParameters_Async() key = new { }, }; - Response response = await client.AddOrUpdateBusinessMetadataAsync("", RequestContent.Create(data), true, new RequestContext()); + Response response = await client.AddOrUpdateBusinessMetadataAsync("", RequestContent.Create(data), true); Console.WriteLine(response.Status); } @@ -4270,7 +4270,7 @@ public void Example_DeleteBusinessMetadataAttributes() key = new { }, }; - Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); + Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4287,7 +4287,7 @@ public void Example_DeleteBusinessMetadataAttributes_AllParameters() key = new { }, }; - Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); + Response response = client.DeleteBusinessMetadataAttributes("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4304,7 +4304,7 @@ public async Task Example_DeleteBusinessMetadataAttributes_Async() key = new { }, }; - Response response = await client.DeleteBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); + Response response = await client.DeleteBusinessMetadataAttributesAsync("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4321,7 +4321,7 @@ public async Task Example_DeleteBusinessMetadataAttributes_AllParameters_Async() key = new { }, }; - Response response = await client.DeleteBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); + Response response = await client.DeleteBusinessMetadataAttributesAsync("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4338,7 +4338,7 @@ public void Example_AddOrUpdateBusinessMetadataAttributes() key = new { }, }; - Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); + Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4355,7 +4355,7 @@ public void Example_AddOrUpdateBusinessMetadataAttributes_AllParameters() key = new { }, }; - Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data), new RequestContext()); + Response response = client.AddOrUpdateBusinessMetadataAttributes("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4372,7 +4372,7 @@ public async Task Example_AddOrUpdateBusinessMetadataAttributes_Async() key = new { }, }; - Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); + Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4389,7 +4389,7 @@ public async Task Example_AddOrUpdateBusinessMetadataAttributes_AllParameters_As key = new { }, }; - Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("", "", RequestContent.Create(data), new RequestContext()); + Response response = await client.AddOrUpdateBusinessMetadataAttributesAsync("", "", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4475,7 +4475,7 @@ public void Example_ImportBusinessMetadata() var data = File.OpenRead(""); - Response response = client.ImportBusinessMetadata(RequestContent.Create(data), new RequestContext()); + Response response = client.ImportBusinessMetadata(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -4491,7 +4491,7 @@ public void Example_ImportBusinessMetadata_AllParameters() var data = File.OpenRead(""); - Response response = client.ImportBusinessMetadata(RequestContent.Create(data), new RequestContext()); + Response response = client.ImportBusinessMetadata(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("failedImportInfoList")[0].GetProperty("childObjectName").ToString()); @@ -4514,7 +4514,7 @@ public async Task Example_ImportBusinessMetadata_Async() var data = File.OpenRead(""); - Response response = await client.ImportBusinessMetadataAsync(RequestContent.Create(data), new RequestContext()); + Response response = await client.ImportBusinessMetadataAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -4530,7 +4530,7 @@ public async Task Example_ImportBusinessMetadata_AllParameters_Async() var data = File.OpenRead(""); - Response response = await client.ImportBusinessMetadataAsync(RequestContent.Create(data), new RequestContext()); + Response response = await client.ImportBusinessMetadataAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("failedImportInfoList")[0].GetProperty("childObjectName").ToString()); @@ -4555,7 +4555,7 @@ public void Example_DeleteLabels() "" }; - Response response = client.DeleteLabels("", RequestContent.Create(data), new RequestContext()); + Response response = client.DeleteLabels("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4571,7 +4571,7 @@ public void Example_DeleteLabels_AllParameters() "" }; - Response response = client.DeleteLabels("", RequestContent.Create(data), new RequestContext()); + Response response = client.DeleteLabels("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4587,7 +4587,7 @@ public async Task Example_DeleteLabels_Async() "" }; - Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4603,7 +4603,7 @@ public async Task Example_DeleteLabels_AllParameters_Async() "" }; - Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.DeleteLabelsAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4619,7 +4619,7 @@ public void Example_SetLabels() "" }; - Response response = client.SetLabels("", RequestContent.Create(data), new RequestContext()); + Response response = client.SetLabels("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4635,7 +4635,7 @@ public void Example_SetLabels_AllParameters() "" }; - Response response = client.SetLabels("", RequestContent.Create(data), new RequestContext()); + Response response = client.SetLabels("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4651,7 +4651,7 @@ public async Task Example_SetLabels_Async() "" }; - Response response = await client.SetLabelsAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.SetLabelsAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4667,7 +4667,7 @@ public async Task Example_SetLabels_AllParameters_Async() "" }; - Response response = await client.SetLabelsAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.SetLabelsAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4683,7 +4683,7 @@ public void Example_AddLabel() "" }; - Response response = client.AddLabel("", RequestContent.Create(data), new RequestContext()); + Response response = client.AddLabel("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4699,7 +4699,7 @@ public void Example_AddLabel_AllParameters() "" }; - Response response = client.AddLabel("", RequestContent.Create(data), new RequestContext()); + Response response = client.AddLabel("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4715,7 +4715,7 @@ public async Task Example_AddLabel_Async() "" }; - Response response = await client.AddLabelAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.AddLabelAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4731,7 +4731,7 @@ public async Task Example_AddLabel_AllParameters_Async() "" }; - Response response = await client.AddLabelAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.AddLabelAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4747,7 +4747,7 @@ public void Example_DeleteLabelsByUniqueAttribute() "" }; - Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); + Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4763,7 +4763,7 @@ public void Example_DeleteLabelsByUniqueAttribute_AllParameters() "" }; - Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); + Response response = client.DeleteLabelsByUniqueAttribute("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); } @@ -4779,7 +4779,7 @@ public async Task Example_DeleteLabelsByUniqueAttribute_Async() "" }; - Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); + Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4795,7 +4795,7 @@ public async Task Example_DeleteLabelsByUniqueAttribute_AllParameters_Async() "" }; - Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); + Response response = await client.DeleteLabelsByUniqueAttributeAsync("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); } @@ -4811,7 +4811,7 @@ public void Example_SetLabelsByUniqueAttribute() "" }; - Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); + Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4827,7 +4827,7 @@ public void Example_SetLabelsByUniqueAttribute_AllParameters() "" }; - Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); + Response response = client.SetLabelsByUniqueAttribute("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); } @@ -4843,7 +4843,7 @@ public async Task Example_SetLabelsByUniqueAttribute_Async() "" }; - Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); + Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4859,7 +4859,7 @@ public async Task Example_SetLabelsByUniqueAttribute_AllParameters_Async() "" }; - Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); + Response response = await client.SetLabelsByUniqueAttributeAsync("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); } @@ -4875,7 +4875,7 @@ public void Example_AddLabelsByUniqueAttribute() "" }; - Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); + Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4891,7 +4891,7 @@ public void Example_AddLabelsByUniqueAttribute_AllParameters() "" }; - Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data), "", new RequestContext()); + Response response = client.AddLabelsByUniqueAttribute("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); } @@ -4907,7 +4907,7 @@ public async Task Example_AddLabelsByUniqueAttribute_Async() "" }; - Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); + Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data)); Console.WriteLine(response.Status); } @@ -4923,7 +4923,7 @@ public async Task Example_AddLabelsByUniqueAttribute_AllParameters_Async() "" }; - Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data), "", new RequestContext()); + Response response = await client.AddLabelsByUniqueAttributeAsync("", RequestContent.Create(data), ""); Console.WriteLine(response.Status); } } diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewClassificationRuleClient.xml b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewClassificationRuleClient.xml index 0563624e240d..859071d589cc 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewClassificationRuleClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewClassificationRuleClient.xml @@ -37,7 +37,7 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call CreateOrUpdateAsync with required parameters and request content, and how to parse the result. +This sample shows how to call CreateOrUpdateAsync with required request content, and how to parse the result. "); @@ -47,13 +47,13 @@ var data = new { kind = "System", }; -Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); +Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); Console.WriteLine(result.ToString()); ]]> -This sample shows how to call CreateOrUpdateAsync with all parameters and request content, and how to parse the result. +This sample shows how to call CreateOrUpdateAsync with all request content, and how to parse the result. "); @@ -68,7 +68,7 @@ var data = new { kind = "System", }; -Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); +Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -79,7 +79,7 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call CreateOrUpdate with required parameters and request content, and how to parse the result. +This sample shows how to call CreateOrUpdate with required request content, and how to parse the result. "); @@ -89,13 +89,13 @@ var data = new { kind = "System", }; -Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); +Response response = client.CreateOrUpdate(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); Console.WriteLine(result.ToString()); ]]> -This sample shows how to call CreateOrUpdate with all parameters and request content, and how to parse the result. +This sample shows how to call CreateOrUpdate with all request content, and how to parse the result. "); @@ -110,7 +110,7 @@ var data = new { kind = "System", }; -Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); +Response response = client.CreateOrUpdate(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewDataSourceClient.xml b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewDataSourceClient.xml index feb9f844be8f..d134c7397e63 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewDataSourceClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewDataSourceClient.xml @@ -3,7 +3,7 @@ -This sample shows how to call CreateOrUpdateAsync with required parameters and request content, and how to parse the result. +This sample shows how to call CreateOrUpdateAsync with required request content, and how to parse the result. "); @@ -13,13 +13,13 @@ var data = new { kind = "AzureSubscription", }; -Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); +Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); Console.WriteLine(result.ToString()); ]]> -This sample shows how to call CreateOrUpdateAsync with all parameters and request content, and how to parse the result. +This sample shows how to call CreateOrUpdateAsync with all request content, and how to parse the result. "); @@ -35,7 +35,7 @@ var data = new { kind = "AzureSubscription", }; -Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); +Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -74,7 +74,7 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call CreateOrUpdate with required parameters and request content, and how to parse the result. +This sample shows how to call CreateOrUpdate with required request content, and how to parse the result. "); @@ -84,13 +84,13 @@ var data = new { kind = "AzureSubscription", }; -Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); +Response response = client.CreateOrUpdate(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); Console.WriteLine(result.ToString()); ]]> -This sample shows how to call CreateOrUpdate with all parameters and request content, and how to parse the result. +This sample shows how to call CreateOrUpdate with all request content, and how to parse the result. "); @@ -106,7 +106,7 @@ var data = new { kind = "AzureSubscription", }; -Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); +Response response = client.CreateOrUpdate(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanClient.xml b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanClient.xml index 1fb02e63a7e7..7c2c462b2b49 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanClient.xml @@ -39,7 +39,7 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call CreateOrUpdateFilterAsync with required parameters and parse the result. +This sample shows how to call CreateOrUpdateFilterAsync and parse the result. "); @@ -47,12 +47,12 @@ var client = new PurviewScanClient(endpoint, "", "", c var data = new {}; -Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data), new RequestContext()); +Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call CreateOrUpdateFilterAsync with all parameters and request content, and how to parse the result. +This sample shows how to call CreateOrUpdateFilterAsync with all request content, and how to parse the result. "); @@ -69,7 +69,7 @@ var data = new { }, }; -Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data), new RequestContext()); +Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("excludeUriPrefixes")[0].ToString()); @@ -81,7 +81,7 @@ Console.WriteLine(result.GetProperty("name").ToString()); -This sample shows how to call CreateOrUpdateFilter with required parameters and parse the result. +This sample shows how to call CreateOrUpdateFilter and parse the result. "); @@ -89,12 +89,12 @@ var client = new PurviewScanClient(endpoint, "", "", c var data = new {}; -Response response = client.CreateOrUpdateFilter(RequestContent.Create(data), new RequestContext()); +Response response = client.CreateOrUpdateFilter(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); ]]> -This sample shows how to call CreateOrUpdateFilter with all parameters and request content, and how to parse the result. +This sample shows how to call CreateOrUpdateFilter with all request content, and how to parse the result. "); @@ -111,7 +111,7 @@ var data = new { }, }; -Response response = client.CreateOrUpdateFilter(RequestContent.Create(data), new RequestContext()); +Response response = client.CreateOrUpdateFilter(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("excludeUriPrefixes")[0].ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanningServiceClient.xml b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanningServiceClient.xml index 871c6f3cc81d..6f123fabf49c 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanningServiceClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanningServiceClient.xml @@ -201,7 +201,7 @@ var data = new { kind = "AzureSubscription", }; -Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data), new RequestContext()); +Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -227,7 +227,7 @@ var data = new { scanRulesetType = "Custom", }; -Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data), new RequestContext()); +Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -251,7 +251,7 @@ var data = new { kind = "AzureSubscription", }; -Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data), new RequestContext()); +Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -277,7 +277,7 @@ var data = new { scanRulesetType = "Custom", }; -Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data), new RequestContext()); +Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs index 38b40070b8ac..e382a8664c54 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs @@ -142,7 +142,7 @@ public virtual Response GetProperties(RequestContext context) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task CreateOrUpdateAsync(RequestContent content, RequestContext context) + public virtual async Task CreateOrUpdateAsync(RequestContent content, RequestContext context = null) { using var scope = ClientDiagnostics.CreateScope("PurviewClassificationRuleClient.CreateOrUpdate"); scope.Start(); @@ -173,7 +173,7 @@ public virtual async Task CreateOrUpdateAsync(RequestContent content, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response CreateOrUpdate(RequestContent content, RequestContext context) + public virtual Response CreateOrUpdate(RequestContent content, RequestContext context = null) { using var scope = ClientDiagnostics.CreateScope("PurviewClassificationRuleClient.CreateOrUpdate"); scope.Start(); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs index 76c4796b17e0..02147d2dc0e1 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs @@ -82,7 +82,7 @@ public PurviewDataSourceClient(Uri endpoint, string dataSourceName, TokenCredent /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task CreateOrUpdateAsync(RequestContent content, RequestContext context) + public virtual async Task CreateOrUpdateAsync(RequestContent content, RequestContext context = null) { using var scope = ClientDiagnostics.CreateScope("PurviewDataSourceClient.CreateOrUpdate"); scope.Start(); @@ -113,7 +113,7 @@ public virtual async Task CreateOrUpdateAsync(RequestContent content, /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response CreateOrUpdate(RequestContent content, RequestContext context) + public virtual Response CreateOrUpdate(RequestContent content, RequestContext context = null) { using var scope = ClientDiagnostics.CreateScope("PurviewDataSourceClient.CreateOrUpdate"); scope.Start(); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs index 420f380ec606..395ce54b68e3 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs @@ -147,7 +147,7 @@ public virtual Response GetFilter(RequestContext context) /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task CreateOrUpdateFilterAsync(RequestContent content, RequestContext context) + public virtual async Task CreateOrUpdateFilterAsync(RequestContent content, RequestContext context = null) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.CreateOrUpdateFilter"); scope.Start(); @@ -178,7 +178,7 @@ public virtual async Task CreateOrUpdateFilterAsync(RequestContent con /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response CreateOrUpdateFilter(RequestContent content, RequestContext context) + public virtual Response CreateOrUpdateFilter(RequestContent content, RequestContext context = null) { using var scope = ClientDiagnostics.CreateScope("PurviewScanClient.CreateOrUpdateFilter"); scope.Start(); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs index 472bafe23fd0..3d5ac782cee2 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs @@ -362,7 +362,7 @@ public virtual Response GetScanRuleset(string scanRulesetName, RequestContext co /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual async Task CreateOrUpdateScanRulesetAsync(string scanRulesetName, RequestContent content, RequestContext context) + public virtual async Task CreateOrUpdateScanRulesetAsync(string scanRulesetName, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(scanRulesetName, nameof(scanRulesetName)); @@ -398,7 +398,7 @@ public virtual async Task CreateOrUpdateScanRulesetAsync(string scanRu /// Service returned a non-success status code. /// The response returned from the service. /// - public virtual Response CreateOrUpdateScanRuleset(string scanRulesetName, RequestContent content, RequestContext context) + public virtual Response CreateOrUpdateScanRuleset(string scanRulesetName, RequestContent content, RequestContext context = null) { Argument.AssertNotNullOrEmpty(scanRulesetName, nameof(scanRulesetName)); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewClassificationRuleClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewClassificationRuleClient.cs index 160f9145ef6b..e53a45bfba02 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewClassificationRuleClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewClassificationRuleClient.cs @@ -94,7 +94,7 @@ public void Example_CreateOrUpdate() kind = "System", }; - Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdate(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -120,7 +120,7 @@ public void Example_CreateOrUpdate_AllParameters() kind = "System", }; - Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdate(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -141,7 +141,7 @@ public async Task Example_CreateOrUpdate_Async() kind = "System", }; - Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -167,7 +167,7 @@ public async Task Example_CreateOrUpdate_AllParameters_Async() kind = "System", }; - Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewDataSourceClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewDataSourceClient.cs index ef5f8a217082..1c11b3f9b6da 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewDataSourceClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewDataSourceClient.cs @@ -32,7 +32,7 @@ public void Example_CreateOrUpdate() kind = "AzureSubscription", }; - Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdate(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -60,7 +60,7 @@ public void Example_CreateOrUpdate_AllParameters() kind = "AzureSubscription", }; - Response response = client.CreateOrUpdate(RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdate(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -109,7 +109,7 @@ public async Task Example_CreateOrUpdate_Async() kind = "AzureSubscription", }; - Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -137,7 +137,7 @@ public async Task Example_CreateOrUpdate_AllParameters_Async() kind = "AzureSubscription", }; - Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanClient.cs index d28a30e49571..e2377a489554 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanClient.cs @@ -91,7 +91,7 @@ public void Example_CreateOrUpdateFilter() var data = new { }; - Response response = client.CreateOrUpdateFilter(RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdateFilter(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -118,7 +118,7 @@ public void Example_CreateOrUpdateFilter_AllParameters() }, }; - Response response = client.CreateOrUpdateFilter(RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdateFilter(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("excludeUriPrefixes")[0].ToString()); @@ -137,7 +137,7 @@ public async Task Example_CreateOrUpdateFilter_Async() var data = new { }; - Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.ToString()); @@ -164,7 +164,7 @@ public async Task Example_CreateOrUpdateFilter_AllParameters_Async() }, }; - Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateFilterAsync(RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("properties").GetProperty("excludeUriPrefixes")[0].ToString()); diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanningServiceClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanningServiceClient.cs index dde32bbc0456..ae33ec38e88e 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanningServiceClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanningServiceClient.cs @@ -308,7 +308,7 @@ public void Example_CreateOrUpdateScanRuleset() kind = "AzureSubscription", }; - Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -339,7 +339,7 @@ public void Example_CreateOrUpdateScanRuleset_AllParameters() scanRulesetType = "Custom", }; - Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data), new RequestContext()); + Response response = client.CreateOrUpdateScanRuleset("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -363,7 +363,7 @@ public async Task Example_CreateOrUpdateScanRuleset_Async() kind = "AzureSubscription", }; - Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString()); @@ -394,7 +394,7 @@ public async Task Example_CreateOrUpdateScanRuleset_AllParameters_Async() scanRulesetType = "Custom", }; - Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data), new RequestContext()); + Response response = await client.CreateOrUpdateScanRulesetAsync("", RequestContent.Create(data)); JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement; Console.WriteLine(result.GetProperty("kind").ToString());